PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WINDEV 2024 → how to select printer for ShelExecute("...","print")
how to select printer for ShelExecute("...","print")
Débuté par Dave Langley, 30 aoû. 2014 08:07 - 3 réponses
Posté le 30 août 2014 - 08:07
How do I select the printer destination for a ShellExecute command eg ShellExecute("temp.rtf","print") always prints to the default printer. I want to be able to direct the output to a printer of my choosing.
Posté le 01 septembre 2014 - 12:54
Hi Dave

the only way to do that is to:
- first get what is the current default printer
- then change the default printer to the one you want to print on
- then print
- then change BACK the default printer to what it was before

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

NEW: WXShowroom.com is available: Show your projects!
More information on http://www.fabriceharari.com


On 8/30/2014 12:07 AM, Dave Langley wrote:
How do I select the printer destination for a ShellExecute command eg
ShellExecute("temp.rtf","print") always prints to the default printer. I
want to be able to direct the output to a printer of my choosing.
Membre enregistré
27 messages
Posté le 02 septembre 2014 - 17:11
Thanks Fabrice

How do I set the default printer programmatically in WinDev. I have spent hours searching the documentation for this - all to no avail. Can you help?
Posté le 02 septembre 2014 - 19:46
Hi Dave

read the help for iConfigure... There is a syntax for that.

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

NEW: WXShowroom.com is available: Show your projects!
More information on http://www.fabriceharari.com


On 9/2/2014 9:11 AM, Dave Langley wrote:
Thanks Fabrice

How do I set the default printer programmatically in WinDev. I have
spent hours searching the documentation for this - all to no avail. Can
you help?