Página 1 de 1

Run 'Add Printer' wizard ... how to ??

Publicado: Jue Jul 19, 2007 10:26 am
por ChrisGillard
How do I run the 'Add Printer' wizard from an Xailer application ??
I have found the attached VB snippet that says it does this but I cannot
convert it.
Any thought would be appreciated.
Chris Gillard


Attached files

Run 'Add Printer' wizard ... how to ??

Publicado: Jue Jul 19, 2007 12:55 pm
por jfgimenez
Chris,
> How do I run the 'Add Printer' wizard from an Xailer application ??
>
> I have found the attached VB snippet that says it does this but I cannot
> convert it.
>
> Any thought would be appreciated.
Have you tried ShellExecute()? Something like:
ShellExecute( 0, "rundll32 shell32.dll...
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info

Run 'Add Printer' wizard ... how to ??

Publicado: Jue Jul 19, 2007 12:55 pm
por jfgimenez
Chris,
> How do I run the 'Add Printer' wizard from an Xailer application ??
>
> I have found the attached VB snippet that says it does this but I cannot
> convert it.
>
> Any thought would be appreciated.
Have you tried ShellExecute()? Something like:
ShellExecute( 0, "rundll32 shell32.dll...
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info

Run 'Add Printer' wizard ... how to ??

Publicado: Jue Jul 19, 2007 4:00 pm
por ChrisGillard
Jose,
Thanks for the reply ...
I have tried this on your suggestion :
ShellExecute( 0, "rundll32 shell32.dll, SHHelpShortcuts_RunDLL AddPrinter" )
&
ShellExecute( 0, "rundll32 shell32.dll, SHHelpShortcuts_RunDLL AddPrinter",
1 ) ... the VB #define is something to do with focus.
Nothing appears to happen & nothing new seems to be in taskmanager - XPPro
sp2.
Apologies but this lower level windows stuff is new to me.
Regards
Chris
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:469f4338$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Chris,
>
>> How do I run the 'Add Printer' wizard from an Xailer application ??
>>
>> I have found the attached VB snippet that says it does this but I cannot
>> convert it.
>>
>> Any thought would be appreciated.
>
> Have you tried ShellExecute()? Something like:
>
> ShellExecute( 0, "rundll32 shell32.dll...
>
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
>

Run 'Add Printer' wizard ... how to ??

Publicado: Jue Jul 19, 2007 4:00 pm
por ChrisGillard
Jose,
Thanks for the reply ...
I have tried this on your suggestion :
ShellExecute( 0, "rundll32 shell32.dll, SHHelpShortcuts_RunDLL AddPrinter" )
&
ShellExecute( 0, "rundll32 shell32.dll, SHHelpShortcuts_RunDLL AddPrinter",
1 ) ... the VB #define is something to do with focus.
Nothing appears to happen & nothing new seems to be in taskmanager - XPPro
sp2.
Apologies but this lower level windows stuff is new to me.
Regards
Chris
"Jose F. Gimenez" <jfgimenez@wanadoo.es> wrote in message
news:469f4338$[email=1@ozsrv2.ozlan.local...]1@ozsrv2.ozlan.local...[/email]
> Chris,
>
>> How do I run the 'Add Printer' wizard from an Xailer application ??
>>
>> I have found the attached VB snippet that says it does this but I cannot
>> convert it.
>>
>> Any thought would be appreciated.
>
> Have you tried ShellExecute()? Something like:
>
> ShellExecute( 0, "rundll32 shell32.dll...
>
>
> --
> Regards,
>
> Jose F. Gimenez
> http://www.xailer.com
> http://www.xailer.info
>

Run 'Add Printer' wizard ... how to ??

Publicado: Jue Jul 19, 2007 4:53 pm
por Oleg
Chris!
Try this:
Execute("rundll32 shell32.dll,SHHelpShortcuts_RunDLL AddPrinter")
It works for me.
Regards, Oleg

Run 'Add Printer' wizard ... how to ??

Publicado: Jue Jul 19, 2007 4:53 pm
por Oleg
Chris!
Try this:
Execute("rundll32 shell32.dll,SHHelpShortcuts_RunDLL AddPrinter")
It works for me.
Regards, Oleg

Run 'Add Printer' wizard ... how to ??

Publicado: Jue Jul 19, 2007 5:07 pm
por ChrisGillard
Oleg,
It works for me too!
Thanks for that ... that method will do nicely.
Regards
Chris
"Oleg" <info@cluster.samara.ru> wrote in message
news:[email=469f7ad9@ozsrv2.ozlan.local...]469f7ad9@ozsrv2.ozlan.local...[/email]
> Chris!
>
> Try this:
>
> Execute("rundll32 shell32.dll,SHHelpShortcuts_RunDLL AddPrinter")
>
> It works for me.
>
> Regards, Oleg
>

Run 'Add Printer' wizard ... how to ??

Publicado: Jue Jul 19, 2007 5:07 pm
por ChrisGillard
Oleg,
It works for me too!
Thanks for that ... that method will do nicely.
Regards
Chris
"Oleg" <info@cluster.samara.ru> wrote in message
news:[email=469f7ad9@ozsrv2.ozlan.local...]469f7ad9@ozsrv2.ozlan.local...[/email]
> Chris!
>
> Try this:
>
> Execute("rundll32 shell32.dll,SHHelpShortcuts_RunDLL AddPrinter")
>
> It works for me.
>
> Regards, Oleg
>