Printing

  • Thread starter Thread starter TerishD
  • Start date Start date
T

TerishD

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?
 
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.
 
Hello,

TerishD said:
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-us/dnvssamp/html/vbcs_SimplePrinting.asp
 
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
 
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.
 
(e-mail address removed) (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)
///
 
Back
Top