printer path

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

My program is aught to print automatically an excel sheet after all the data
is collected into it. At the moment i have hard coded the printer path (
which obviously is not an appropriate way) and i need to change the path
whenever there are changes in the printer or network settings.

What i would like is that when a printer is not available, it pops up a
printer dialog and gives me choice to choose among other printers (which is
not a problem) and at the same time i should save this printer path
PERMENANTLY FOR FUTURE ?
how can i save this path permenently in the program, do i have to create a
database connectivity anyway to achieve it or their is any other simple way.


I hope someone can guide me in the right direction.

irfan
 
Save the printer path in the registry

Do you have the code to set printer path in VB.NET? I have it in VB 6 only.
 
I dont have the printer path in VB.net, i also have it in vb6, but i need to
see how to convert it .

Secondly, could u please explain a bit further on saving the printer path in
the registry. A bit of code will be really helpful.

Irfan
 
thanks for the reply, the source code was useful atleast to start with. I did
run the source code, however it is not able to SET the default printer
although it GETs the default printer.

what i need is set to change the printer settings for my program ONLY and
that too these settings should persist when i run the program next time.

i dont know if ur registry code will help, but do send me please.

thanks agian
irfan
 
thanks for the reply, the source code was useful atleast to start with. I did
run the source code, however it is not able to SET the default printer
although it GETs the default printer.

what i need is set to change the printer settings for my program ONLY and
that too these settings should persist when i run the program next time.

i dont know if ur registry code will help, but do send me please.

thanks agian
 
thanks for the reply, the source code was useful atleast to start with. I did
run the source code, however it is not able to SET the default printer
although it GETs the default printer.

what i need is set to change the printer settings for my program ONLY and
that too these settings should persist when i run the program next time.

i dont know if ur registry code will help, but do send me please.

thanks agian
irfan
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top