tialmeida Posted April 18, 2008 Share Posted April 18, 2008 Hi.. I would like to know if is possible print some file like a internet page, like this: Printer("C:\TestFile.htm") I would like to send the name of a exist file and print it. Thanks for help Link to comment Share on other sites More sharing options...
Swift Posted April 18, 2008 Share Posted April 18, 2008 This has been asked countless times before. Please do a forum search. Link to comment Share on other sites More sharing options...
martin Posted April 18, 2008 Share Posted April 18, 2008 Hi.. I would like to know if is possible print some file like a internet page, like this: Printer("C:\TestFile.htm") I would like to send the name of a exist file and print it. Thanks for help The best way to print an HTML file was found by james3mg IMO, and it might not be so easy to find it by searching. He used it in his Meal Planner in example scripts and other places. Func _PrintHTML($p_file);my own print function If FileExists($p_file) Then RunWait(@COMSPEC&' /c rundll32.exe ' & @SystemDir & '\mshtml.dll,PrintHTML "' & $p_file & '"',@TempDir,@SW_HIDE) EndFunc Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
tialmeida Posted April 18, 2008 Author Share Posted April 18, 2008 The best way to print an HTML file was found by james3mg IMO, and it might not be so easy to find it by searching. He used it in his Meal Planner in example scripts and other places. Func _PrintHTML($p_file);my own print function If FileExists($p_file) Then RunWait(@COMSPEC&' /c rundll32.exe ' & @SystemDir & '\mshtml.dll,PrintHTML "' & $p_file & '"',@TempDir,@SW_HIDE) EndFunc Hi.. I'm try but the printer does't print the file, the dialog printer open, i click in print but not print.. please help Link to comment Share on other sites More sharing options...
JustinReno Posted April 18, 2008 Share Posted April 18, 2008 That is not a AutoIt question. Its a user error. Link to comment Share on other sites More sharing options...
tialmeida Posted April 18, 2008 Author Share Posted April 18, 2008 That is not a AutoIt question. Its a user error.What error? my printer is not a local printer.. can be this? why not print?I put a html file, the file exists and not print.. please somebody help me, what's wrong? Link to comment Share on other sites More sharing options...
martin Posted April 19, 2008 Share Posted April 19, 2008 What error? my printer is not a local printer.. can be this? why not print?I put a html file, the file exists and not print.. please somebody help me, what's wrong?I don't know what the problem is. I've tried it on 2 different printers on a network and the first time I tried on one printer nothing happened. The next time it printed ok.Try some different HTML files and if possible a different printer. Make sure the files can be viewed in your browser. Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
tialmeida Posted April 19, 2008 Author Share Posted April 19, 2008 I don't know what the problem is. I've tried it on 2 different printers on a network and the first time I tried on one printer nothing happened. The next time it printed ok.Try some different HTML files and if possible a different printer. Make sure the files can be viewed in your browser.thanks for your attention.. I can print html files now!!! VERY VERY THANKS!!!Do you know how print doc files in the same style? thanks again Link to comment Share on other sites More sharing options...
martin Posted April 19, 2008 Share Posted April 19, 2008 thanks for your attention.. I can print html files now!!! VERY VERY THANKS!!! Do you know how print doc files in the same style? thanks again No I don't. Maybe you should have a look at big_daddy's Word UDF in example scripts Serial port communications UDF Includes functions for binary transmission and reception.printing UDF Useful for graphs, forms, labels, reports etc.Add User Call Tips to SciTE for functions in UDFs not included with AutoIt and for your own scripts.Functions with parameters in OnEvent mode and for Hot Keys One function replaces GuiSetOnEvent, GuiCtrlSetOnEvent and HotKeySet.UDF IsConnected2 for notification of status of connected state of many urls or IPs, without slowing the script. Link to comment Share on other sites More sharing options...
tialmeida Posted April 19, 2008 Author Share Posted April 19, 2008 (edited) No I don't. Maybe you should have a look at big_daddy's Word UDF in example scriptsok.. thanks for your attention again... Edited April 19, 2008 by tialmeida Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now