By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,254 Members | 2,386 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,254 IT Pros & Developers. It's quick & easy.

Printing

P: n/a
Can anyone tell me how Microsoft expects someone to
print? I have been all over this place, and NOWHERE does
it have a walkthrough, paper, or anything that says how
one is supposed to print. Where is the usual 'Hello'
program. I go into Printer Object changes, and all I get
are No equivalent. What scares me is that no one else is
asking this question. Doesn't anybody use the printer?
Nov 20 '05 #1
Share this Question
Share on Google+
7 Replies


P: n/a
Terish,
You need to use the new System.Drawing.Printing.PrintDocument object.

For overviews & walkthroughs see:

http://msdn.microsoft.com/library/de...ualbasic70.asp

http://msdn.microsoft.com/library/de...oloverview.asp

http://msdn.microsoft.com/library/de...et12242002.asp

http://msdn.microsoft.com/library/de...entcontrol.asp

http://msdn.microsoft.com/library/de...msprinting.asp

BTW: This 'question' has been asked a number of times and answered a number
of times, search groups.google.com for specifics.

Hope this helps
Jay

"TerishD" <te*****@adnd.com> wrote in message
news:03****************************@phx.gbl...
Can anyone tell me how Microsoft expects someone to
print? I have been all over this place, and NOWHERE does
it have a walkthrough, paper, or anything that says how
one is supposed to print. Where is the usual 'Hello'
program. I go into Printer Object changes, and all I get
are No equivalent. What scares me is that no one else is
asking this question. Doesn't anybody use the printer?

Nov 20 '05 #2

P: n/a
Concerning the links. Thanks. Will come back after
attempting to use with a more complete response concerning
usability.

Concerning this question being asked a million times, I
can believe it. Of course, I do not believe it is the
fault of us million. Something as basic as printing
should have been CLEARLY annotated, especially since the
changes are so drastic. Trust me, I tried using
Microsoft's search features, and they came up with NOTHING
or completely irrelevant links.

Let me also say that Microsoft has this thing about using
hard drive space. They always expect you to do things
with files. What a waste of time. ALL of my outputs are
often generated or at least manipulated in code, and I
seldom do anything worth file saving (view it, maybe print
it, move on). If I have a file, there is often already a
program to do stuff with it.

Anyway, thanks. As stated, will be back after I checked
the links.
Nov 20 '05 #3

P: n/a
Hello,

"TerishD" <te*****@adnd.com> schrieb:
Can anyone tell me how Microsoft expects someone to
print? I have been all over this place, and NOWHERE does
it have a walkthrough, paper, or anything that says how
one is supposed to print. Where is the usual 'Hello'
program. I go into Printer Object changes, and all I get
are No equivalent. What scares me is that no one else is
asking this question. Doesn't anybody use the printer?


How-to: Do Simple Printing
http://msdn.microsoft.com/library/en...lePrinting.asp

--
Herfried K. Wagner
MVP VB Classic, VB.NET
http://www.mvps.org/dotnet

Nov 20 '05 #4

P: n/a
Gos
Hi
As this thread is active for a long time, I hope that I can get an
answer to my problem. Process.Start method opens any file using its
associated application. Is there a way similar to this for printing
the files. (Something like Process.Print(filepath).

Thanks
Gos
Nov 20 '05 #5

P: n/a
See my post to the same question you just asked. VB.NET does not know the
command for every program to print. Not all programs even have a way to
print directly from the command line. I know Word does b/c you can right
click on the file and select Print in the menu. These menus come from the
actions set for each file type in File Types in Explorer. Just get the
command from that dialog box and use it.

"Gos" <er***********@yahoo.com> wrote in message
news:a3**************************@posting.google.c om...
Hi
As this thread is active for a long time, I hope that I can get an
answer to my problem. Process.Start method opens any file using its
associated application. Is there a way similar to this for printing
the files. (Something like Process.Print(filepath).

Thanks
Gos

Nov 20 '05 #6

P: n/a
er***********@yahoo.com (Gos) scripsit:
As this thread is active for a long time, I hope that I can get an
answer to my problem. Process.Start method opens any file using its
associated application. Is there a way similar to this for printing
the files. (Something like Process.Print(filepath).


\\\
Dim p As New System.Diagnostics.ProcessStartInfo()
p.Verb = "print"
p.WindowStyle = ProcessWindowStyle.Hidden
p.FileName = "C:\filename.htm"
p.UseShellExecute = True
System.Diagnostics.Process.Start(p)
///

--
Herfried K. Wagner
MVP VB Classic, VB.NET
<http://www.mvps.org/dotnet>
Nov 20 '05 #7

P: n/a
Gos
Thank you very much..
Nov 20 '05 #8

This discussion thread is closed

Replies have been disabled for this discussion.