How can I clear a portion of a page in a printdocument
-
Hi, I want after printing on a location erase all graphics(lines, tekst, circles,...); Write now I use comething like this:
e.Graphics.FillRectangle(Brushes.White, 300, 80, 220, 200)
Is there a beter solution to do something like this. E.Graphics.clear clears everything. Jan
-
Hi, I want after printing on a location erase all graphics(lines, tekst, circles,...); Write now I use comething like this:
e.Graphics.FillRectangle(Brushes.White, 300, 80, 220, 200)
Is there a beter solution to do something like this. E.Graphics.clear clears everything. Jan
Don't draw them in the first place?? If they are already on the "page", then you either have to draw those object exactly as before, only in white, or you have to do what you did here.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
Don't draw them in the first place?? If they are already on the "page", then you either have to draw those object exactly as before, only in white, or you have to do what you did here.
A guide to posting questions on CodeProject[^]
Dave KreskowiakThanks Dave, I keep it this way. I clarify why. I had a report and now I want to add something. I’m to lazy to add some condition do I print the old or new info. So If I want the new info. I clear the already printed info and write on top of the clear portion Jan
-
Thanks Dave, I keep it this way. I clarify why. I had a report and now I want to add something. I’m to lazy to add some condition do I print the old or new info. So If I want the new info. I clear the already printed info and write on top of the clear portion Jan
That doesn't change the answer. I've already given you what your options are.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
That doesn't change the answer. I've already given you what your options are.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
Hi, I want after printing on a location erase all graphics(lines, tekst, circles,...); Write now I use comething like this:
e.Graphics.FillRectangle(Brushes.White, 300, 80, 220, 200)
Is there a beter solution to do something like this. E.Graphics.clear clears everything. Jan
If you're able to edit the code that renders the content you want to clear, perhaps you could adjust the clip rect before the 'content to be cleared' is drawn - thus in effect not drawing it (but leaving the paint method relatively unchanged)?
-
If you're able to edit the code that renders the content you want to clear, perhaps you could adjust the clip rect before the 'content to be cleared' is drawn - thus in effect not drawing it (but leaving the paint method relatively unchanged)?