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

Problem with PrintPreview control

P: n/a
Hi everyone,

I' m trying to programmatically set the document property of a print preview
control. Here is the code:

Private Sub btnPrintPreview_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnPrintPreview.Click
PrintPreviewControl1.Document = MyPrintDocument
PrintPreviewControl1.Zoom = 1
PrintPreviewControl1.StartPage = 0
End Sub

When i used to program in 2002, this code worked. Now i program in 2005 and the print preview control remains empty. However,when i set
all the above properties in design-time, everything goes ok.
Does anyone have any idea about this? Is this a bug of 2005?
Thank u 4 your time
Feb 10 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.