Hi every one!
Does any one know how to use the prop. hasMorePages with rectangle and text format?
i have this cod
int xRecEpicriza = Int32.Parse(xDescrAliniat.ToString());
int yRecEpicriza = (int)y+(int)lineHeight;
int recEpiLungimeLinie = (int)lungimeLinie;
Rectangle recEpicriza = new Rectangle(new Point((int)x, yRecEpicriza+15),
new Size(recEpiLungimeLinie+80, 590));
e.Graphics.DrawString("EPICRIZA ", fontDescriere, myBrush, x, y);
y = y + lineHeight+10;
e.Graphics.DrawString(epcrz, font, myBrush, (RectangleF)recEpicriza, format1);
y = y + lineHeight;
if the variable epcrz contains more than 1 pag text , the nex page is not printing.
Do you have any ideeas how can i resolve this problem!
thanks in advance!
david

1 answers
My guess is that you are not indicating that there are more pages and if you are then your not telling it what to draw.
I posted a working program here just a few weeks back specifically about printing multiple pages. Copy the code into a new project (win form app), build it, run it and start inserting break points to see whats going on where.
It's <a target="_new" href="http://www.csharpfriends.com/Forums/ShowPost.aspx?PostID=70374">here</a>.
Hope that helps.
answered 2 years ago by:
30
This post was imported from csharpfriends, if you have a similiar question please ask it again.
All previous members have been migrated, hope you enjoy the new platform!