print preview bug when printing

  • Thread starter Thread starter Martin
  • Start date Start date
M

Martin

I have encountered a bug in print preview:

In my program, data for printing is taken from arrays. When print preview is
invoked or page is printed directly, it is ok, but when user prints from
print preview, any data that was in array is not draw, so only thing printed
is header and footer.
Arrays with data are in the same scope as variables holding header and
footer data.
They do not loose data and they are not reset as I can access them after
print preview.

What could this be?
 
Martin,

Without posting a working example of your code it's hard to tell if it
is a bug in the framework, or a bug in your code. Can you post a working
example (or what should work)?
 
Martin,
I'd guess that you don't have anything in the OnBeginPrint event that
resets the index(s) you access the arrays with so they are left at their
ending position.

Ron Allen
 
Back
Top