PrintPreviewDialog Control Problem

Please support our C# advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Mar 2007
Posts: 59
Reputation: FaridMasood is an unknown quantity at this point 
Solved Threads: 0
FaridMasood's Avatar
FaridMasood FaridMasood is offline Offline
Junior Poster in Training

PrintPreviewDialog Control Problem

 
0
  #1
Aug 1st, 2008
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.
Thanks and Best of Lusk,

Farid ud din Masood
MS.c (CS)
University of Agriculture, Faisalabad
Reply With Quote Quick reply to this message  
Join Date: Aug 2008
Posts: 1
Reputation: KMikeT is an unknown quantity at this point 
Solved Threads: 1
KMikeT KMikeT is offline Offline
Newbie Poster

Re: PrintPreviewDialog Control Problem

 
0
  #2
Aug 3rd, 2008
Reply With Quote Quick reply to this message  
Join Date: Mar 2007
Posts: 59
Reputation: FaridMasood is an unknown quantity at this point 
Solved Threads: 0
FaridMasood's Avatar
FaridMasood FaridMasood is offline Offline
Junior Poster in Training

Re: PrintPreviewDialog Control Problem

 
0
  #3
Aug 4th, 2008
Originally Posted by KMikeT View Post
Hi,
perhaps it helps:
http://msdn.microsoft.com/en-us/magazine/cc188767.aspx
Thanks, KMikeT
This is really helpful and contains all the basic concepts i was looking for. Thanks again.
Thanks and Best of Lusk,

Farid ud din Masood
MS.c (CS)
University of Agriculture, Faisalabad
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C#
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC