?
Solved

inserting page break while printing datagrid

Posted on 2004-04-06
2
Medium Priority
?
342 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 1000 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

Ready to improve network connectivity? Watch this webinar to learn how SD-WANs and a one-click instant connect tool can boost provisions, deployment, and management of your cloud connection.

Question has a verified solution.

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

Summary Displaying images in RichTextBox is a common requirement with limited solutions available. Pasting through clipboard or embedding into RTF content only support static images.  This article describes how to insert Windows control objects int…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

801 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