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 / Languages / Managed C++ / June 2005

Tip: Looking for answers? Try searching our database.

Printing multiple pages

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marcelo - 27 Jun 2005 15:50 GMT
Greetings.
I develop a multiple forms applications with Microsoft Visual Studio
C++ .NET 2003 and I'd like to know how can I print more than one page
in my application. For printing one page, I do:

private: System::Void button1_Click(System::Object *  sender,
System::EventArgs *  e){
  if(printDialog1->ShowDialog() == DialogResult::OK){
    printDocument1->PrintPage += new PrintPageEventHandler(this,
&Form1::printDocument1_PrintPage);
    printDocument1->Print();
  }
}

private: System::Void printDocument1_PrintPage(Object* sender,
PrintPageEventArgs* ev){
    ev->Graphics->Draw...//I make the drawings to print
    ev->HasMorePages = false
}
It works perfectly. But I want to print two graphics pages, one after
another. Any help will be very appreciated.
Marcelo - 30 Jun 2005 09:13 GMT
In the MSDN they tell me to use the SetMaxPage method in an override
CView::OnPreparePrinting function to print
more than one page. How could I do this? And must both pages be drawn
in the printDocument1_PrintPage event?

Rate this thread:







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.