Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Controlling Print Preview of MS-Excel from VB

Status
Not open for further replies.

vprasadblr

Technical User
Sep 7, 2001
1
IN
Hi All,
I have a situation.
I am writing some data from VB to Excel. I want to use the Excel Print Preview control for the user to print the Excel sheet.
After printing, if the user clicks on the 'Close' button of the Print Preview screen, I want the application to close the Excel file, quit from Excel & return back to the VB application.
I want use the Excel for printing because a report is to be printed. Since Excel allows easy formatting of reports, I thought it would be wise to use Excel & also print from Excel itself.
Can anyone of you help me ?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top