Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm General / February 2004

Tip: Looking for answers? Try searching our database.

PrintPreviewDialog problem?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Todd - 27 Feb 2004 19:41 GMT
I'm attempting to print graphics to a printer using a PrintPreviewDialog.  The PrintPreviewDialog correctly displays what I intend to print, but when I press the Print button on the PrintPreviewDialog the printer spits out a single blank page regardless of how many pages are displayed in the dialog

Below is my button click event.  The PrintDocument object has not been modified after dropping it onto the form

private void mniPrint_Click(object sender, System.EventArgs e

    tr
   
        PrintPreviewDialog ppd = new PrintPreviewDialog()
        ppd.Document = printDocument
        ppd.ShowDialog()
   
    catch (Exception ex
   
        // error handle
   

Are there any known issues with this control

Thanks
Todd
Herfried K. Wagner [MVP] - 28 Feb 2004 00:55 GMT
* "=?Utf-8?B?VG9kZA==?=" <anonymous@discussions.microsoft.com> scripsit:
> I'm attempting to print graphics to a printer using a PrintPreviewDialog.  The PrintPreviewDialog correctly displays what I intend to print, but when I press the Print button on the PrintPreviewDialog the printer spits out a single blank page regardless of how many pages are displayed in the dialog.

Didn't the suggestions I posted some days ago work?!

Signature

Herfried K. Wagner [MVP]
<http://dotnet.mvps.org/>
Website Address Changed!


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.