I need help for printing pdf and word file using vb.net . the component should be a pure donet componet not a com component. I have to open the pdf and word file then I have to print it . If Any body know pls let me know .
Edited by - anish_p_r on 25 Feb 2004 13:25:40
Edited by - anish_p_r on 25 Feb 2004 13:26:23
hi ,
I need help for printing pdf and word file using vb.net . the component should be a pure donet componet not a com component. I have to open the pdf and word file then I have to print it . If Any body know pls let me know .
Joined: 10 Mar 2006 Homepage: link Country: Posts: 4
Posted: 10 Mar 2006 23:06:24
Hi, You can use process to print pdf file in .net the code is simply like Dim psi As New ProcessStartInfo psi.UseShellExecute = True psi.Verb = "print" psi.WindowStyle = ProcessWindowStyle.Hidden psi.FileName = sReport Process.Start(psi) it will print pdf file ,you don't need any extra component for this <BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> hi ,
I need help for printing pdf and word file using vb.net . the component should be a pure donet componet not a com component. I have to open the pdf and word file then I have to print it . If Any body know pls let me know .
Edited by - anish_p_r on 25 Feb 2004 13:25:40
Edited by - anish_p_r on 25 Feb 2004 13:26:23 <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Hi, You can use process to print pdf file in .net the code is simply like Dim psi As New ProcessStartInfo psi.UseShellExecute = True psi.Verb = "print" psi.WindowStyle = ProcessWindowStyle.Hidden psi.FileName = sReport Process.Start(psi) it will print pdf file ,you don't need any extra component for this <BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> hi ,
I need help for printing pdf and word file using vb.net . the component should be a pure donet componet not a com component. I have to open the pdf and word file then I have to print it . If Any body know pls let me know .
Edited by - anish_p_r on 25 Feb 2004 13:25:40
Edited by - anish_p_r on 25 Feb 2004 13:26:23 <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
The code you gave works great.. But one question, How would you close the Acrobat Windows after the printing is done? <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote> I would love to know the answer to this question...
The code you gave works great.. But one question, How would you close the Acrobat Windows after the printing is done? <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote> I would love to know the answer to this question...
Dim MyProcess As New Process MyProcess.StartInfo.CreateNoWindow = False MyProcess.StartInfo.Verb = "print" MyProcess.StartInfo.FileName = "C:\Test.pdf" MyProcess.Start() MyProcess.WaitForExit(10000) MyProcess.CloseMainWindow() MyProcess.Close()
The code you gave works great.. But one question, How would you close the Acrobat Windows after the printing is done? <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote> I would love to know the answer to this question...
Edited by - Snipe on 05 Sep 2006 181:49 <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
prog_ga
To close Acrobat Windows I wrote this code
Dim MyProcess As New Process MyProcess.StartInfo.CreateNoWindow = False MyProcess.StartInfo.Verb = "print" MyProcess.StartInfo.FileName = "C:\Test.pdf" MyProcess.Start() MyProcess.WaitForExit(10000) MyProcess.CloseMainWindow() MyProcess.Close()
The code you gave works great.. But one question, How would you close the Acrobat Windows after the printing is done? <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote> I would love to know the answer to this question...
Edited by - Snipe on 05 Sep 2006 181:49 <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Is any way to modify the .pdf archive, in the example: Test.pdf, and then print it??? I want to made some changes on it, and then see them when I print
Thank you, and sorry again for my english
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> To close Acrobat Windows I wrote this code
Dim MyProcess As New Process MyProcess.StartInfo.CreateNoWindow = False MyProcess.StartInfo.Verb = "print" MyProcess.StartInfo.FileName = "C:\Test.pdf" MyProcess.Start() MyProcess.WaitForExit(10000) MyProcess.CloseMainWindow() MyProcess.Close()
The code you gave works great.. But one question, How would you close the Acrobat Windows after the printing is done? <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote> I would love to know the answer to this question...
Edited by - Snipe on 05 Sep 2006 181:49 <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Is any way to modify the .pdf archive, in the example: Test.pdf, and then print it??? I want to made some changes on it, and then see them when I print
Thank you, and sorry again for my english
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> To close Acrobat Windows I wrote this code
Dim MyProcess As New Process MyProcess.StartInfo.CreateNoWindow = False MyProcess.StartInfo.Verb = "print" MyProcess.StartInfo.FileName = "C:\Test.pdf" MyProcess.Start() MyProcess.WaitForExit(10000) MyProcess.CloseMainWindow() MyProcess.Close()
The code you gave works great.. But one question, How would you close the Acrobat Windows after the printing is done? <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote> I would love to know the answer to this question...
Edited by - Snipe on 05 Sep 2006 181:49 <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
I am also struggling with the same problem of printing DOC as well as PDF files from VB 6.0 or VB.Net code with manipulating the printer settings from the code like - paper size, layout, bin, color mode, scaling etc.
Please somebody help.......I need it urgently
Best Regards, Sonia <
>
I am also struggling with the same problem of printing DOC as well as PDF files from VB 6.0 or VB.Net code with manipulating the printer settings from the code like - paper size, layout, bin, color mode, scaling etc.
I need help for printing pdf and word file using vb.net . the component should be a pure donet componet not a com component. I have to open the pdf and word file then I have to print it . If Any body know pls let me know .
Edited by - anish_p_r on 25 Feb 2004 13:25:40
Edited by - anish_p_r on 25 Feb 2004 13:26:23 <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Subhadip Datta Mumbai, India
It is working fine but it is printing at the default printer. How could i print the pdf file giving printer name?
I need help for printing pdf and word file using vb.net . the component should be a pure donet componet not a com component. I have to open the pdf and word file then I have to print it . If Any body know pls let me know .
Edited by - anish_p_r on 25 Feb 2004 13:25:40
Edited by - anish_p_r on 25 Feb 2004 13:26:23 <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
I need help for printing pdf and word file using vb.net . the component should be a pure donet componet not a com component. I have to open the pdf and word file then I have to print it . If Any body know pls let me know .
Edited by - anish_p_r on 25 Feb 2004 13:25:40
Edited by - anish_p_r on 25 Feb 2004 13:26:23 <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Subhadip Datta Mumbai, India
It is working fine but it is printing at the default printer. How could i print the pdf file giving printer name?
I need help for printing pdf and word file using vb.net . the component should be a pure donet componet not a com component. I have to open the pdf and word file then I have to print it . If Any body know pls let me know .
Edited by - anish_p_r on 25 Feb 2004 13:25:40
Edited by - anish_p_r on 25 Feb 2004 13:26:23 <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Dim sReport = “C:Test.PDF” ‘Complete name/path of PDF file
Dim SPrinter = “HP Officejet 5600 seriese” ‘Name Of printer
Dim starter As New ProcessStartInfo(pathToExecutable, “/t “ + sReport + ” “ + sPrinter + “”
Dim Process As New Process()
Process.StartInfo = starter Process.Start()
the above code will print your pdf file on the printer you want ,you can also print word document by the same way just change your executable file path from Acrobat32.exe to word exe
Thanks
Ripal Soni
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> It is working fine but it is printing at the default printer. How could i print the pdf file giving printer name?
I need help for printing pdf and word file using vb.net . the component should be a pure donet componet not a com component. I have to open the pdf and word file then I have to print it . If Any body know pls let me know .
Edited by - anish_p_r on 25 Feb 2004 13:25:40
Edited by - anish_p_r on 25 Feb 2004 13:26:23 <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
Dim sReport = “C:Test.PDF” ‘Complete name/path of PDF file
Dim SPrinter = “HP Officejet 5600 seriese” ‘Name Of printer
Dim starter As New ProcessStartInfo(pathToExecutable, “/t “ + sReport + ” “ + sPrinter + “”
Dim Process As New Process()
Process.StartInfo = starter Process.Start()
the above code will print your pdf file on the printer you want ,you can also print word document by the same way just change your executable file path from Acrobat32.exe to word exe
Thanks
Ripal Soni
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> It is working fine but it is printing at the default printer. How could i print the pdf file giving printer name?
I need help for printing pdf and word file using vb.net . the component should be a pure donet componet not a com component. I have to open the pdf and word file then I have to print it . If Any body know pls let me know .
Edited by - anish_p_r on 25 Feb 2004 13:25:40
Edited by - anish_p_r on 25 Feb 2004 13:26:23 <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> Hi, You gave the code for printing the pdf my requirement is same but prob here is with my appln is unable to start process of Process.Start(psi) could u plz help me out in this regard.
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> Hi, You can use process to print pdf file in .net the code is simply like Dim psi As New ProcessStartInfo psi.UseShellExecute = True psi.Verb = "print" psi.WindowStyle = ProcessWindowStyle.Hidden psi.FileName = sReport Process.Start(psi) it will print pdf file ,you don't need any extra component for this
this code works but- how do i open the printer's dialog box to select a printer ?
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> <BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> Hi, You gave the code for printing the pdf my requirement is same but prob here is with my appln is unable to start process of Process.Start(psi) could u plz help me out in this regard.
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> Hi, You can use process to print pdf file in .net the code is simply like Dim psi As New ProcessStartInfo psi.UseShellExecute = True psi.Verb = "print" psi.WindowStyle = ProcessWindowStyle.Hidden psi.FileName = sReport Process.Start(psi) it will print pdf file ,you don't need any extra component for this
hi ,
I need help for printing pdf and word file using vb.net . the component should be a pure donet componet not a com component. I have to open the pdf and word file then I have to print it . If Any body know pls let me know .
Edited by - anish_p_r on 25 Feb 2004 13:25:40
Edited by - anish_p_r on 25 Feb 2004 13:26:23 <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
this code works but- how do i open the printer's dialog box to select a printer ?
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> <BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> Hi, You gave the code for printing the pdf my requirement is same but prob here is with my appln is unable to start process of Process.Start(psi) could u plz help me out in this regard.
<BLOCKQUOTE id=quote><font size=1 face="Verdana, Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote> Hi, You can use process to print pdf file in .net the code is simply like Dim psi As New ProcessStartInfo psi.UseShellExecute = True psi.Verb = "print" psi.WindowStyle = ProcessWindowStyle.Hidden psi.FileName = sReport Process.Start(psi) it will print pdf file ,you don't need any extra component for this
hi ,
I need help for printing pdf and word file using vb.net . the component should be a pure donet componet not a com component. I have to open the pdf and word file then I have to print it . If Any body know pls let me know .
Edited by - anish_p_r on 25 Feb 2004 13:25:40
Edited by - anish_p_r on 25 Feb 2004 13:26:23 <hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Verdana, Arial, Helvetica" size=2 id=quote>
I am having a same problem which you have. i am using ASP.NET 2.0(C#) I need to print file located at server.And that should be printed on my printer which is installed at server. I have read this topic. I am doning a same code as you. If you got the solution for this then please give me a solution. My code is working when I m debuging the code. And it gives
I need help for printing pdf and word file using vb.net . the component should be a pure donet componet not a com component. I have to open the pdf and word file then I have to print it . If Any body know pls let me know .
I am having a same problem which you have. i am using ASP.NET 2.0(C#) I need to print file located at server.And that should be printed on my printer which is installed at server. I have read this topic. I am doning a same code as you. If you got the solution for this then please give me a solution. My code is working when I m debuging the code. And it gives
I need help for printing pdf and word file using vb.net . the component should be a pure donet componet not a com component. I have to open the pdf and word file then I have to print it . If Any body know pls let me know .
Dear Ripal, Below is the code in C# for printing PDF using network printer. The file is always printing in the default printer which is set in my machine. It should print in the network printer specified in the below path. Please let me know what could be the reason? and the solutio for this.. Thanks
Dear Ripal, Below is the code in C# for printing PDF using network printer. The file is always printing in the default printer which is set in my machine. It should print in the network printer specified in the below path. Please let me know what could be the reason? and the solutio for this.. Thanks
I am using this method to interface with SQL Reporting Services from my VB .net application. I create the report and copy it to a .pdf file in the temp folder. I want to print it or preview (and maybe print) and then delete the temp file.
I have tried the code suggested earlier to print the pdf and it works fine. I need to add the option to preview the doc. I added code to change the verb to "open" and that works. If I just look at it and close the window I am OK, but if I try to select the Print option on the form I get an error. "The process cannot access the file 'c:\myfile.pdf' because it is used by another process." I removed the WaitForExit and I dont get that error, but the app moves on to the code I have to clean up the temp file by deleting it and I get other errors. Any suggestions for handling a preview with a pdf?
I am using this method to interface with SQL Reporting Services from my VB .net application. I create the report and copy it to a .pdf file in the temp folder. I want to print it or preview (and maybe print) and then delete the temp file.
I have tried the code suggested earlier to print the pdf and it works fine. I need to add the option to preview the doc. I added code to change the verb to "open" and that works. If I just look at it and close the window I am OK, but if I try to select the Print option on the form I get an error. "The process cannot access the file 'c:\myfile.pdf' because it is used by another process." I removed the WaitForExit and I dont get that error, but the app moves on to the code I have to clean up the temp file by deleting it and I get other errors. Any suggestions for handling a preview with a pdf?
When a graph is drawn, the focus is kept on the actual underlying competing figures that constitute the graph. Sometimes it is difficult to make assumptions just by looking at these graphs. When looking at a geographical map of data you immediately see exactly where things are happening. This article presents a .NET geographical mapping solution that will illustrate a fairly simple way of implementing these maps.
Have you, as a web developer or designer ever been on sites where the site seems more of a puzzle then a tool to find the information you where looking for? Or are you looking to improve your web design skills? Then read on!
Design & Accessibility
This e-Book will teach you how to become a truly professional developer or designer. By taking usability and accessibility issues in account when designing your websites or applications you can make the difference and avoid a lot of (user) frustration.
Inside ASP.NET is a comprehensive guide to ASP.NET development using Microsoft's .NET development framework. This book presents information on the .NET framework that is of specific interest to Internet and intranet developers, and is split into the following sections: Introducing ASP.NET, Core ASP.NET, ASP.NET and Data Access, Advanced Technologies, Advanced Web Forms, and Putting It All Together
Each chapter tackles a specific area of ASP.NET development, first by giving a detailed overview, then presenting a series of code examples and walk-throughs that illustrate various applications of ASP.NET