Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Printing Paging .NET WInforms

ajaycse503ajaycse503 Member Posts: 1
Hi All,

I have a Winforms Application where I am priniting aroung 1500 lines of text to the printer, I am able to take care of the margin settings and print settings through the PrintDocument. I am using e.HasMorePages to handle the page in which the content is printed.

Here is the pseduo code


Dim currentpage as new integer
currentpage =0
if(currentpage =0)
{
--print the firstpage
PrintPageHeader ()
PrintText_Section1()
PrintFooter()
currentpage = currentpage+1
e.hasmorepages = true
}
if currentpage =1
{
--print the secondpage
PrintPageHeader ()
PrintText_Section2()
PrintFooter()
e.hasmoerpages = false
}

I need to automate this process instead of specifically mentioning which text to be present in which page.

Please get back as this is a very urgent requiremment for me.
Sign In or Register to comment.