How do you write a code in Visual Basic which shows the Print Preview of related documents of any type and also takes print outs?

Answer

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 Thsi will directly print the document instead of priview as it is to the default printer.

 

Improve Answer Discuss the question "How do you write a code in Visual Basic which shows the Print Preview of related documents of any type and also takes print outs?" Watch Question

First answer by ID3413135498. Last edit by ID3413135498. Question popularity: 80 [recommend question]


Research your answer:

Can you answer other questions about programming?

Answers.com > Wiki Answers > Categories > Technology > Computers > Computer Programming > How do you write a code in Visual Basic which shows the Print Preview of related documents of any type and also takes print outs?

Our contributors said this page should be displayed for the questions below. (Where do these come from)
If any of these are not a genuine rephrasing of the question, please help out and edit these alternates.
For print preview?  How do you put digit position in visual basic code?  Where do you get a sample program of print program using visual basic?  Code in Visual Basic which shows the Print Preview of related documents?  How do you write a Code in Visual Basic which show the Print Preview of related documentsany type and take a printouts also.?