1 / 17

Printing - Help

Printing - Help. OBJECTIVES. System.Drawing.Printing. Step to Print. Must have PrintDocument object Invoke the Print() method This will raise PrintPage event which takes an object PrintPageEventArgs Pages Setting by PageSetupDialog. PrintDocument.

jola
Download Presentation

Printing - Help

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Printing - Help

  2. OBJECTIVES

  3. System.Drawing.Printing

  4. Step to Print • Must have PrintDocument object • Invoke the Print() method • This will raise PrintPage event which takes an object PrintPageEventArgs • Pages Setting by PageSetupDialog

  5. PrintDocument • Provides ability to print documents : .txt , .pdf … • Two main purpose : • Single print job • Complex print job

  6. Method - Event

  7. PrintController class • Regulates printing process of PrinDocument • This class is abstract • Derived class : StandardPrintController , PreviewPrintController, PrintControllerWithStatusDialog

  8. PrinterSettings class Specifies how a document is printed, including the printer You can access this class by PrintDocument.PrinterSettings or PageSettings.PrinterSettings

  9. Dialog Boxes and Component Controls

  10. Help in Application Help class : used to display content of .chm file

  11. ShowHelp() method - Software • This method takes 3 parameters : control , “.chm” , and element need display • Some option : HelpNavigator.Index , HelpNavigator.TableOfContents • There are many software to create .chm file … But HTML Help WorkShop is the software to be provided by Microsoft • It helps to create .hhp file(help system) - .hhc (Table of Contents) and Index (.hhk) files.

  12. Type of Help- Step to create .chm

  13. HelpProvider Component Link the help file to Application – Press F1 on control will invoke help file HelpProvider hp = new HelpProvider(); hp.HelpNamespace = “C:/demo.chm”; hp.SetShowHelp(txtName , true);

  14. HelpButton property - Form

  15. ToolTip

  16. Method and Event

  17. Summary

More Related