Groups | Blog | Home
all groups > asp.net > july 2004 >

asp.net : Printing in A4 size...


Vinayaka
7/12/2004 7:47:39 PM
I am using ASP.Net and .net 1.1

I have created some web based report which will be displayed in ASPX page
and user has to select the browser File Print to take print outs.
Requirement for all these report is, "all reports should fit into A4 size".
The general rule I am following in all the reports is that the data will not
be displayed in browser with horizontal scroll bar to make sure the report
will be printed with A4. How to make sure that reports are A4 size only.

Thanks for your suggestions.

Vin

Tampa .NET Koder
7/12/2004 8:02:01 PM
I really don't think this is an Asp.NET issue as your code is rendered to the browser as html. So, maybe with some <div> tags and some css should do the trick for you

[quoted text, click to view]
Ersin Gençtürk
7/13/2004 1:04:09 PM
hi,

you can use style sheets to guide printing.For example you can control page
breaks and some stuff like that.You can find some information in this
address :
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dynstyle/printing.asp

but i will suggest you that you should export your reports to pdf for
printing especially if you use crystal reports that came with visual studio
to generate reports.

regards,
ersin


[quoted text, click to view]

AddThis Social Bookmark Button