473,386 Members | 1,710 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

how to print .pdf and .doc files in vb.net

hi! im currently doing a project in vb.net that could print 3 kinds of file
formats: .txt, .pdf, and .doc
i can already print text files but i haven't done pdf and .doc yet.
can anyone help me with this please? ur help would be greatly appreciated.
tnx!

Jan 2 '08 #1
3 2653
On Jan 2, 5:39 pm, "myrrh" <u40347@uwewrote:
hi! im currently doing a project in vb.net that could print 3 kinds of file
formats: .txt, .pdf, and .doc
i can already print text files but i haven't done pdf and .doc yet.
can anyone help me with this please? ur help would be greatly appreciated.
tnx!
There's a thread which may help you for printing PDFs:

http://www.dnzone.com/forum/topic.asp?topic_id=89
Jan 2 '08 #2
hi! super thanks for the help toO.. :)
kimiraikkonen wrote:
>hi! im currently doing a project in vb.net that could print 3 kinds of file
formats: .txt, .pdf, and .doc
i can already print text files but i haven't done pdf and .doc yet.
can anyone help me with this please? ur help would be greatly appreciated.
tnx!

There's a thread which may help you for printing PDFs:

http://www.dnzone.com/forum/topic.asp?topic_id=89
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...b-net/200801/1

Jan 3 '08 #3
question again :) i used the following codes to print .pdf and .doc files:

Dim psi As New ProcessStartInfo
psi.UseShellExecute = True
psi.Verb = "print"
psi.WindowStyle = ProcessWindowStyle.Hidden
psi.FileName = sReport
Process.Start(psi)

umm, is there a way to count the number of pages of the file being printed?
can you share some codes or links regaring this? tnx a lot..
kimiraikkonen wrote:
>hi! im currently doing a project in vb.net that could print 3 kinds of file
formats: .txt, .pdf, and .doc
i can already print text files but i haven't done pdf and .doc yet.
can anyone help me with this please? ur help would be greatly appreciated.
tnx!

There's a thread which may help you for printing PDFs:

http://www.dnzone.com/forum/topic.asp?topic_id=89
--
Message posted via DotNetMonster.com
http://www.dotnetmonster.com/Uwe/For...b-net/200801/1

Jan 3 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: MouseHart | last post by:
I've written a simple program in VB 6.0 to list all my MP3 files. To show them on the screen I used an MSFlexGrid named TextGrid (which is not associated with any table or text file) in the...
5
by: vegetax | last post by:
How can i use cgi'like print statement in a multitreaded web framework? each thread has its own Servlet instance with request/response objects, sys.stdout = self.response(which is a file like...
4
by: Julie Siebel | last post by:
Apologies...I'm sure this has been asked before, but I can't seem to come up with the correct Google search terms. While my problem is with stylesheets, the errors are being caused by my...
16
by: Neo Geshel | last post by:
I'm helping on a web site, and it's got our knickers in a knot. We're using the same basic CSS files (with mods) and same headers as from our other sites, but the "print preview" won't work...
1
by: hamil | last post by:
I am trying to print a graphic file (tif) and also use the PrintPreview control, the PageSetup control, and the Print dialog control. The code attached is a concatination of two examples taken out...
9
by: Scott M | last post by:
I'm printing a directory of about 500 multi-page tifs to a high speed printer and the spooler process is killing me!!! here is a little code..... Public Function PrintImage(ByVal...
2
by: alivip | last post by:
when I wont to inser (anyting I print) to the textbox it will not inser it just print then hanging # a look at the Tkinter Text widget # use ctrl+c to copy, ctrl+x to cut selected text, #...
10
by: S_K | last post by:
Hi, I have a directory full of a number of .PDF files that I need to print. Is there any simple way to do this? Using PdfReader purhaps? Thanks in advance. Steve
16
by: raylopez99 | last post by:
I am running out of printing paper trying to debug this...it has to be trivial, but I cannot figure it out--can you? Why am I not printing text, but just the initial string "howdy"? On the...
9
by: happyse27 | last post by:
Hi All, In perl script(item b below) where we check if html registration form are filled in properly without blank with the necessary fields, how to prompt users that the field are incomplete...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.