Solved

inserting page break while printing datagrid

Posted on 2004-04-06
2
340 Views
Last Modified: 2012-06-27
i am trying to print out a datagrid.  the datagrid is listing out card orders ordered by value.  i need each card value to be on a different page. ie page 1 will list out 25 $49 cards, page 2 will list out 50 $29 card, etc....

my initial approach was to use the word com object to build a new word doc and the redirect the user to the doc.  however, once i came across System.Drawing.Printing i figured there should be a way to do it right from the web page.

any ideas?
0
Comment
Question by:meyerc74
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 28

Accepted Solution

by:
mmarinov earned 250 total points
ID: 10772442
Because the web page is at the client the only way of printing pages is with client script. There is a way of inserting page breaks with style sheets
take a look at this solution
http://www.experts-exchange.com/Programming/Programming_Languages/Dot_Net/Q_20847122.html

HTH
B..M
0
 
LVL 1

Author Comment

by:meyerc74
ID: 10815547
thanks...that works...i just parse out a html string with <br style="page-break-before: always">
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The object model of .Net can be overwhelming at times – so overwhelming that quite trivial tasks often take hours of research. In this case, the task at hand was to populate the datagrid from SQL Server database in Visual Studio 2008 Windows applica…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question