In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

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

Xailer professional forum in English
Responder
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

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

Mensaje 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
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

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

Mensaje 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
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

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

Mensaje 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
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

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

Mensaje 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
>
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

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

Mensaje 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
>
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

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

Mensaje por Oleg »

Chris!
Try this:
Execute("rundll32 shell32.dll,SHHelpShortcuts_RunDLL AddPrinter")
It works for me.
Regards, Oleg
Oleg
Mensajes: 474
Registrado: Mié Jun 07, 2006 3:45 pm

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

Mensaje por Oleg »

Chris!
Try this:
Execute("rundll32 shell32.dll,SHHelpShortcuts_RunDLL AddPrinter")
It works for me.
Regards, Oleg
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

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

Mensaje 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
>
ChrisGillard
Mensajes: 384
Registrado: Mar May 01, 2007 5:49 pm

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

Mensaje 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
>
Responder