home *** CD-ROM | disk | FTP | other *** search
/ C/C++ User's Journal & Wi…eveloper's Journal Tools / C-C__Users_Journal_and_Windows_Developers_Journal_Tools_1997.iso / vbdemos / vbdemos.lzh / PRTHOWTO.TXT < prev    next >
Text File  |  1993-07-14  |  5KB  |  116 lines

  1. This demo demonstrates the use of the Printer control
  2. in VBLite.  The demo allows you to select any printer to
  3. print to, change the print settings, print text, graphical
  4. shapes and bitmaps displayed on the screen and in a .bmp
  5. file.  It will also allow you to configure the print
  6. dialog and select the font to use when printing text.  In
  7. addition, it will display the current printer settings, the
  8. values of various properties associated with the printer
  9. device context, the current font settings, and will allow
  10. you to select the default printer as the current printer.
  11.  
  12. The Printer Control has the following capabilities:
  13.  
  14. (1) Selection of any printer installed in your system.
  15.  
  16. (2) Printer setup and configuration, even on the fly within
  17.     a print job.
  18.  
  19. (3) Printing of text using any available font that the
  20.     printer supports and will also pick the closest matching
  21.     font for those fonts that are not directly supported
  22.     by the printer.
  23.  
  24. (4) Printing of bitmaps stored in memory or in a file, 
  25.     including .bmp and .dib files.
  26.  
  27. (5) Printing of points, lines, rectangles, rounded
  28.     rectangles, arcs, circles, ellipses, pies, and polygons.
  29.  
  30. (6) Implements an abort dialog and uses an abort procedure
  31.     while the print job is in progress just like all major
  32.     Windows applications.
  33.  
  34. All capabilities are implemented as properties and a couple
  35. of events are available to trap errors that may occur
  36. during the configuration or printing process.
  37.  
  38. Here is a step by step procedure for running this demo:
  39.  
  40. (1) Check to make sure that the current printer is the
  41.     printer that you want to print to by selecting
  42.     Print Setup.. from the File menu.  This will display
  43.     the standard print setup dialog that you see in most
  44.     Windows applications.  Here you can select the printer
  45.     you want to print to and any initial settings that you
  46.     want to use.
  47.  
  48. (2) In order to print text, graphical shapes or bitmap images
  49.     to the printer, go to the Print menu and select Text to
  50.     print text, Shapes to print shapes, DIB to print a .bmp
  51.     file or Bitmap to print a bitmap stored in memory.  The
  52.     selection that you make will have a check mark beside it.
  53.  
  54. (3) Select Print... from the File menu to print what you have
  55.     selected from Step 2 above.  This will display a standard
  56.     print dialog box that you see in most Windows applications
  57.     and select OK to start the print job.  When the print
  58.     job starts, a print abort dialog box will appear which
  59.     allows you to cancel the print job in the middle of a 
  60.     print job.  Once the print job is done, the abort dialog
  61.     box will disappear and you can continue with running the
  62.     demo.
  63.  
  64. (4) When you are done with the demo, you can exit the program
  65.     by selecting Exit from the File menu.
  66.  
  67. (5) You can get help with running the demo by selecting How
  68.     To Run Demo... from the Help menu and will display this
  69.     text in a text box for you to view.
  70.  
  71. Other things that you can do with this demo include the
  72. following:
  73.  
  74. (1) You can select the default settings for the controls in
  75.     the print dialog box by selecting Print Dialog... from 
  76.     the Settings menu.  This dialog will allow you to set
  77.     the settings of the print dialog box before displaying
  78.     it so you can limit what the user can select from the
  79.     print dialog box.  You can set the default setting of the
  80.     Print What control to either All Pages, Selection, or 
  81.     Range of Pages.  The Selection control can be set, not
  82.     set, or disabled.  The Page Numbers control can also be
  83.     set, not set, or disabled, the Print To File check box
  84.     can be disabled, hidden, checked, or not checked.  And
  85.     the collate control can be set or not set.  The FromPage
  86.     and ToPage text boxes allow you to set the beginning and
  87.     ending pages to print if the Range Of Pages button is
  88.     set in the print dialog box.  The MinPage and MaxPages
  89.     text boxes allow you to set the minimum and maximum pages
  90.     that the document can have.  And the NumberOfCopies text
  91.     box allows you to set the number of copies to print if 
  92.     multiple copies are supported by the current printer.
  93.  
  94. (2) By selecting Printer from the Settings menu, you can 
  95.     see what the current settings are for the selected 
  96.     printer.
  97.  
  98. (3) By selecting Device Context from the Settings menu, you
  99.     can see the various settings of the properties associated
  100.     with the Printer device context.
  101.  
  102. (4) By selecting Current Font from the Settings menu, you
  103.     can see the current font settings that the printer
  104.     will use when printing text.
  105.  
  106. (5) By selecting Fonts... from the Settings menu, you can
  107.     select another font to use from the standard font
  108.     dialog box.  All text subsequently displayed on the form 
  109.     will also use this font also.
  110.  
  111. (6) By selecting Use Default Printer, you can change the
  112.     current printer to the default printer as defined in
  113.     the Windows Control Panel.
  114.  
  115.  
  116.