ProAnswers.org

VB code which shows the Print Preview of documents and take prints

VB code which shows the Print Preview of documents and take prints

Take for example the EXCEL. after creating the object of the excel sheet and performing the operation on the excel sheet, you want to view the print preview.

Object.PrintPreview This will show the print preview

Object.PrintOut This will directly print the document instead of priview as it is to the default printer.