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

Printing in .NET

P: n/a
printing text in VB6 can be done just by "Printing.Print". is there any
replacement for this in .NET?
Drawing.Print won't work coz it converts text into image and then prints. so
when we use Adobe distiller as print driver, resulting PDF doen's remain
searchable anymore...
Nov 20 '05 #1
Share this Question
Share on Google+
13 Replies


P: n/a
Hi,

You have to use the print document class.
http://msdn.microsoft.com/library/de...classtopic.asp
Ken
------------------
"Sumant" <sk*******@megawareinc.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
printing text in VB6 can be done just by "Printing.Print". is there any
replacement for this in .NET?
Drawing.Print won't work coz it converts text into image and then prints.
so
when we use Adobe distiller as print driver, resulting PDF doen's remain
searchable anymore...

Nov 20 '05 #2

P: n/a
thnx for the reply...
i 've already tried this but doesn't work. it converts the text into
image
before printing. that gives problem while printing with adobe distiller
(for
creating PDF files). I need exact replacement for Printer.Print which
prints
text as it is.
for the time being i've solved problem by creating a wrapper dll for
printer.print function in VB6 and used it in .NET. crude but quick
solution
"Ken Tucker [MVP]" <vb***@bellsouth.net> wrote in message
news:Oe***************@tk2msftngp13.phx.gbl...
Hi,

You have to use the print document class.
http://msdn.microsoft.com/library/de...classtopic.asp

Ken
------------------
"Sumant" <sk*******@megawareinc.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
printing text in VB6 can be done just by "Printing.Print". is there any replacement for this in .NET?
Drawing.Print won't work coz it converts text into image and then prints. so
when we use Adobe distiller as print driver, resulting PDF doen's remain searchable anymore...


Nov 20 '05 #3

P: n/a
* "Sumant" <sk*******@megawareinc.com> scripsit:
printing text in VB6 can be done just by "Printing.Print". is there any
replacement for this in .NET?


<http://www.mvps.org/dotnet/dotnet/samples/printing/downloads/PrintFramework.zip>

--
Herfried K. Wagner [MVP]
<http://www.mvps.org/dotnet>
Nov 20 '05 #4

P: n/a
"Sumant" <sk*******@megawareinc.com> schrieb
thnx for the reply...
i 've already tried this but doesn't work. it converts the text
into
image
before printing. that gives problem while printing with adobe
distiller
(for
creating PDF files). I need exact replacement for Printer.Print
which
prints
text as it is.
for the time being i've solved problem by creating a wrapper dll
for
printer.print function in VB6 and used it in .NET. crude but
quick
solution


<F1>
VS.NET
Developping with VS.NET
Creating windows applications
Windows Forms
Print support in windows forms
Printing text in windows forms
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #5

P: n/a
You're all about the F1's now aren't you. =0
"Armin Zingler" <az*******@freenet.de> wrote in message
news:ey**************@TK2MSFTNGP09.phx.gbl...
"Sumant" <sk*******@megawareinc.com> schrieb
thnx for the reply...
i 've already tried this but doesn't work. it converts the text
into
image
before printing. that gives problem while printing with adobe
distiller
(for
creating PDF files). I need exact replacement for Printer.Print
which
prints
text as it is.
for the time being i've solved problem by creating a wrapper dll
for
printer.print function in VB6 and used it in .NET. crude but
quick
solution


<F1>
VS.NET
Developping with VS.NET
Creating windows applications
Windows Forms
Print support in windows forms
Printing text in windows forms
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #6

P: n/a
Sumant,
I use the activePDF printer driver to create PDF files from my
PrintDocument objects and Acrobat Reader 6 has no problem searching them.

Ron Allen
"Sumant" <sk*******@megawareinc.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
printing text in VB6 can be done just by "Printing.Print". is there any
replacement for this in .NET?
Drawing.Print won't work coz it converts text into image and then prints. so when we use Adobe distiller as print driver, resulting PDF doen's remain
searchable anymore...

Nov 20 '05 #7

P: n/a
"CJ Taylor" <no****@blowgoats.com> schrieb
You're all about the F1's now aren't you. =0


Yep. Seems some keyboards don't have a <F1> key. :)
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #8

P: n/a
i said, i've already used this Draw string method

FYI...

Private Sub PrintDocument1_PrintPage(ByVal sender As Object, ByVal e As
System.Drawing.Printing.PrintPageEventArgs) Handles
PrintDocument1.PrintPage
e.Graphics.DrawString("SampleText", New Font("Arial", 80,
FontStyle.Bold), Brushes.Black, 150, 125)
End Sub

above function doesn't work for me... coz if uses Graphics calls. there
is
a diference between Printer.Print and Graphics.Drawstring...
neway, Thnx for the suggestion...

"Armin Zingler" <az*******@freenet.de> wrote in message
news:ez**************@TK2MSFTNGP09.phx.gbl...
"CJ Taylor" <no****@blowgoats.com> schrieb
You're all about the F1's now aren't you. =0


Yep. Seems some keyboards don't have a <F1> key. :)
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #9

P: n/a
Thnx Ron,
Actually I need to print using another printer driver which is similar
to Acrobat Distiller. (may not be known to many) so I used acrobat as
example. I've also tried printing in Acrobat Reader not 6 but 5. it works
fine but not with the product am working. :(
thnx again

"Ron Allen" <rallen@_nospam_src-us.com> wrote in message
news:ea**************@TK2MSFTNGP10.phx.gbl...
Sumant,
I use the activePDF printer driver to create PDF files from my
PrintDocument objects and Acrobat Reader 6 has no problem searching them.
Ron Allen
"Sumant" <sk*******@megawareinc.com> wrote in message
news:%2******************@TK2MSFTNGP10.phx.gbl...
printing text in VB6 can be done just by "Printing.Print". is there any replacement for this in .NET?
Drawing.Print won't work coz it converts text into image and then prints.
so
when we use Adobe distiller as print driver, resulting PDF doen's

remain searchable anymore...


Nov 20 '05 #10

P: n/a
"Sumant" <sk*******@megawareinc.com> schrieb
i said, i've already used this Draw string method
No, you said that you used "Drawing.Print" which I didn't find.
Thnx for the suggestion...


I didn't have one.
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #11

P: n/a
I think this topic is ALMOST what I need. I tried the project Herfried supplied but I need to be able to supply a PDF file for output -- plus this project has German comments in it which I can't read. Help please! Additionally, I want to be able to print the PDF document duplex and 2-up (zoom). Thanks.
Nov 20 '05 #12

P: n/a
I think this topic is ALMOST what I need. I tried the project Herfried supplied but I need to be able to supply a PDF file for output -- plus this project has German comments in it which I can't read. Help please! Additionally, I want to be able to print the PDF document duplex and 2-up (zoom). Thanks.
Nov 20 '05 #13

P: n/a
I think this topic is ALMOST what I need. I tried the project Herfried supplied but I need to be able to supply a PDF file for output -- plus this project has German comments in it which I can't read. Help please! Additionally, I want to be able to print the PDF document duplex and 2-up (zoom). Thanks.
Nov 20 '05 #14

This discussion thread is closed

Replies have been disabled for this discussion.