943,822 Members | Top Members by Rank

Ad:
  • C# Discussion Thread
  • Marked Solved
  • Views: 3897
  • C# RSS
Aug 1st, 2008
0

PrintPreviewDialog Control Problem

Expand Post »
I want to use the printPreviewDialog control to view the print preview of a document.
I am using this code

Dim oPD As New PrintDocument
oPD.DocumentName = TextBox1.Text
PrintPreviewDialog1.PrintPreviewControl.Document = oPD
PrintPreviewDialog1.ShowDialog()

TextBox1 contains the file name to be opened with print preview control. Problem is that it only show the empty print preview control . If someone can tell me what's wrong with my code. I am using vb.net.
Reputation Points: 8
Solved Threads: 0
Junior Poster in Training
FaridMasood is offline Offline
59 posts
since Mar 2007
Aug 3rd, 2008
0

Re: PrintPreviewDialog Control Problem

Reputation Points: 10
Solved Threads: 1
Newbie Poster
KMikeT is offline Offline
1 posts
since Aug 2008
Aug 4th, 2008
0

Re: PrintPreviewDialog Control Problem

Thanks, KMikeT
This is really helpful and contains all the basic concepts i was looking for. Thanks again.
Reputation Points: 8
Solved Threads: 0
Junior Poster in Training
FaridMasood is offline Offline
59 posts
since Mar 2007

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C# Forum Timeline: how to read a property of disposed object
Next Thread in C# Forum Timeline: Convert from String to Decimal and insert into SQL





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC