Connecting Tech Pros Worldwide Help | Site Map

vb-form:How to Generate prn files

Newbie
 
Join Date: Feb 2008
Posts: 3
#1: Feb 27 '08
Hi,
How to generate prn files in vb.net and also print to network printer
Shashi Sadasivan's Avatar
Moderator
 
Join Date: Aug 2007
Location: Brisbane, Australia
Posts: 1,414
#2: Feb 27 '08

re: vb-form:How to Generate prn files


while printing set the printer name to the full path of the printers location on the network

printerName = @"\\myNetwork\MyFavouritePrinter";

you can print it to a file to create a prn using one of the options in the printOptions class (not sure on how to specify the file name)
Newbie
 
Join Date: Feb 2008
Posts: 3
#3: Feb 27 '08

re: vb-form:How to Generate prn files


thanq but what i want is how to generate(create) prn files in vb.net



Quote:

Originally Posted by Shashi Sadasivan

while printing set the printer name to the full path of the printers location on the network

printerName = @"\\myNetwork\MyFavouritePrinter";

you can print it to a file to create a prn using one of the options in the printOptions class (not sure on how to specify the file name)

Shashi Sadasivan's Avatar
Moderator
 
Join Date: Aug 2007
Location: Brisbane, Australia
Posts: 1,414
#4: Feb 27 '08

re: vb-form:How to Generate prn files


Well, i think the easiest would be to print the document, and set the printOptions so that it prints to a file (you may not need to specify a printername)
Newbie
 
Join Date: Feb 2008
Posts: 3
#5: Feb 27 '08

re: vb-form:How to Generate prn files


thanq but i want to generate prn files using vb code in windows applications,because i want to modify the file according to my requirements.
so iam asking all of u to generate prn files in vb.net.
Reply