I know how to run an exe file using the SHELLEXECUTE command. How do you close that same file? Thanks to anyone who can help. Please provide a sample of code.
thanks guys, that does help. I do have another problem though. Although, I can get the above code to work when i am writing to the print canvas, it doesnt work when i try printing ms word documents. It still prints to the default printer. A source code sample would be great if you could help me...
hi there
i have 3 printers and i want my program only to send information to a certain printer. how do i do this. if any1 can help me i would very grateful. please provide source code example
I know how to print the contents of the webbrowser component but could someone please supply me with some source code to accept the default print dialog so that only one copy prints when a button is pressed. The reason i require this is because my program sells information and it must only print...
hey lance, i have had no luck in getting your findwindow() suggestion working more so because of ignorance than problems. If u could give me a piece of source code that will enable me to print a single copy, by making the print dialog automatically accept 1 copy i would be most appreciative...
hey lance, thanks again for the help, i will give the findwindow() method a bash. I am a beginner so i might have to ask you for a 'step by step, what to write' solution if i can't get it going. Thanks for your help man
hey weez
i had the exact same problem as you did (printing contents of a webbrowser through delphi) and i have tried the solution suggested but can't get it working. Could you please tell me exactly how u got it to work. Source code would be great. Thanks a million
How would i print internet explorer web pg through delphi?
I know that to print a word doc i would do as follows:
Var msword:olevariant;
msword:=createoleobject('word.basic');
msword.fileprint;
I would be so gratefule to anyone that can help me. Thanks
is it possible to disable a mouse or keyboard, or even certain keys, if so could you please attach a delphi sample procedure. Thanks to anyone who can help me.
I am currently using the code below in order to print a word document using my delphi program. What class string would I have to use in place of 'word.basic' in order to open and print through the word viewer. I can't find it anywhere. Thank you to anyone who can help me.
uses ComObj;
var...
I desperately need a javascript that will enable a button to automatically print 1 copy of the HTML page it is situated on, without bringing up the default print dialog.
The script I have is as follows, but it brings up the dialog:
<a href='javascript:;' onClick='window.print();return...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.