Jump to content

Recommended Posts

Posted

hello

i have this web application ment to be used by the local user only, i have iis installed on the local computer , now im trying to print excel wrksheet using th folowing code:

function print_report(file) 

    dim excel Set excel = CreateObject("Excel.Application")
    excel.application.visible= False excel.workbooks.open file,3,False
    excel.application.activeprinter="psc1100 on Ne00:"
    excel.application.sheets(1).printout
    excel.quit

end function

when i used it in one computer it worked fine but when i copied the program to another computer (using iis and all) i get an error like "cant set activeprinter in the application collection"

whats the problem ?

is there any other way to print excel file using asp ?

thanks


Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...