By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
429,189 Members | 2,167 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 429,189 IT Pros & Developers. It's quick & easy.

print preview bug when printing

P: n/a
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?
Nov 15 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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)?

--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Martin" <ma******@globalnet.hr> wrote in message
news:bn**********@ls219.htnet.hr...
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?

Nov 15 '05 #2

P: n/a
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
"Martin" <ma******@globalnet.hr> wrote in message
news:bn**********@ls219.htnet.hr...
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?

Nov 15 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.