Solved

inserting page break while printing datagrid

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

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Welcome my friends to the second instalment and follow-up to our Minify and Concatenate Your Scripts and Stylesheets (http://www.experts-exchange.com/Programming/Languages/.NET/ASP.NET/A_4334-Minify-and-Concatenate-Your-Scripts-and-Stylesheets.html)…
This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
This video discusses moving either the default database or any database to a new volume.
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 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

13 Experts available now in Live!

Get 1:1 Help Now