Jump to content

Recommended Posts

  • Developers
Posted (edited)

what about this version ? works when there is a Print option available for a file Extension:

Func _FilePrintCom($iFile)
    If Not FileExists($iFile) Then Return SetError(1,0,0)
    $objShellApp = ObjCreate("Shell.Application")
    $objShellApp.ShellExecute($iFile,0,0,"PRINT",0)
EndFunc
Edited by JdeB

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted

what about this version ? works when there is a Print option available for a file Extension:

Func _FilePrintCom($iFile)
    If Not FileExists($iFile) Then Return SetError(1,0,0)
    $objShellApp = ObjCreate("Shell.Application")
    $objShellApp.ShellExecute($iFile,0,0,"PRINT",0)
EndFunc
for a picture it opened it with the windows picture viewer, for a TXT it printed to the default.

thanks, but I wanted to be able find avalible printer???

Check out ConsultingJoe.com
  • Developers
Posted

for a picture it opened it with the windows picture viewer, for a TXT it printed to the default.

thanks, but I wanted to be able find avalible printer???

This is indeed printing to the default priner...

There are other COM functions to select any of your installed printers....

SciTE4AutoIt3 Full installer Download page   - Beta files       Read before posting     How to post scriptsource   Forum etiquette  Forum Rules 
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Posted (edited)

What about _FilePrint in the file.au3 include?

The first string i wrote in this topic was "Just another way of printing." what do you think i was referring to? I think this is faster though, but it has poor support.

Edit: If you weren't replying to me, then i am ever so sorry and I offer you my sincere apologies.

Edited by Manadar
Posted (edited)

How do you use this with a network printer and is there a way to find out how many and what printers there are?

Thanks

For networks printers use the full path as parameter for printport:

\\pcname\printer1\

I have no idea how to figure what printers there are, this was just a quick thought and i wanted to write it down. :D

Edited by Manadar

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

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