Horst...
> which print setup dialog do you mean?
I was talking about the one you get when you call PrintDlg or PrintDlgEx.
That's if you want to be able to change the printer interactively. If you
want to simply change it behind the scenes, then Paul's method is best - use
the WshNetwork object. If you don't have or for some reason can't use that,
give SendKeys a try. If that won't work for some reason or if you just want
to understand what's happening, write the default printer of choice to
win.ini and notify the VEE runtime of the change. See my reply to Paul's
message.
Come to think of it, you can do it with ExecuteProgram too. And no, I don't
mean running another instance of VEE. Geez! that's about the craziest thing
I ever heard. But yeah, I heard it too. Long ago. That's when I quit
listening and started looking at it from a Windows programming point of
view.
Hell, if all those methods don't work for you then get your window handle
and copy the bitmap off of it. Scale it how you want, dither it how you
want, do whatever you want to it and BitBlt it to the printer of your
choice.
In any case, you are most definitely not limited to the printer the VEE
runtime starts out with! This is PROGRAMMING!! You're limited only by your
imagination.
-SHAWN-
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
> which print setup dialog do you mean?
I was talking about the one you get when you call PrintDlg or PrintDlgEx.
That's if you want to be able to change the printer interactively. If you
want to simply change it behind the scenes, then Paul's method is best - use
the WshNetwork object. If you don't have or for some reason can't use that,
give SendKeys a try. If that won't work for some reason or if you just want
to understand what's happening, write the default printer of choice to
win.ini and notify the VEE runtime of the change. See my reply to Paul's
message.
Come to think of it, you can do it with ExecuteProgram too. And no, I don't
mean running another instance of VEE. Geez! that's about the craziest thing
I ever heard. But yeah, I heard it too. Long ago. That's when I quit
listening and started looking at it from a Windows programming point of
view.
Hell, if all those methods don't work for you then get your window handle
and copy the bitmap off of it. Scale it how you want, dither it how you
want, do whatever you want to it and BitBlt it to the printer of your
choice.
In any case, you are most definitely not limited to the printer the VEE
runtime starts out with! This is PROGRAMMING!! You're limited only by your
imagination.
-SHAWN-
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".
to send the escape sequences to your printer.
Best regards
B. Aufenanger
------------------------------------------------------------
Somatec B. Aufenanger & M. Bernhardt
Jagdweg 7a
D-82041 Deisenhofen
Telefon : (089) 613 984 91
Fax. : (089) 613 981 23
Email : mailto:Aufenanger@somatec.de
homepage : http://www.somatec.com/
------------------------------------------------------------
-----Ursprngliche Nachricht-----
Von: Kunkel, Horst [mailto:Kunkel@hansa.de]
Gesendet: Dienstag, 1. April 2003 08:59
An: VEE vrf
Betreff: [vrf] printer scaling and orientation at runtime?
Hello vrf users,
does anybody know if there is any solution to change orientation and scaling
of a function
panel printout at runtime? Selectable by the user or simply by the program
if appropriate?
Is it possible to get rid of the unwished time stamp on the printout?
Greetings
Horst
______________________________________________________________________
---
You are currently subscribed to vrf as: Aufenanger@somatec.de
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to
"owner-vrf@it.lists.it.agilent.com".
---
You are currently subscribed to vrf as: rsb@soco.agilent.com
To subscribe send a blank email to "join-vrf@it.lists.it.agilent.com".
To unsubscribe send a blank email to "leave-vrf@it.lists.it.agilent.com".
To send messages to this mailing list, email "vrf@it.lists.it.agilent.com".
If you need help with the mailing list send a message to "owner-vrf@it.lists.it.agilent.com".