Board index » Visual Studio » Print Excel

Print Excel

Visual Studio319
How to print the excel file by vbscript in the asp file.


-
 

Re:Print Excel

This may help you get started. See the Excel

documentation for the optional parameters to .PrintOut().

I imagine you'll have to have the printer set up on the

server where ASP is running.



Good luck.



Set XL = CreateObject("Excel.Application")

Set WB = XL.Workbooks.Open("c:\MyExcel.xls")





WB.PrintOut



WB.Close









Quote
-----Original Message-----

How to print the excel file by vbscript in the asp file.

.



-