Printing in .NET

  • Thread starter Thread starter Sumant
  • Start date Start date
S

Sumant

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...
 
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
 
Sumant said:
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
 
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
 
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...
 
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
 
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.
 
Back
Top