Solved

inserting page break while printing datagrid

Posted on 2004-04-06
2
337 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
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

867 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now