PrintDocument to Acrobat PDFWriter print driver

  • Thread starter William LaMartin
  • Start date
W

William LaMartin

I have a vb.net win form where I want to output some text to a printer.
Everything works fine when printing to my laser or inkjet printers. However
when I print to the Acrobat PDFWriter printer driver, I get correct
formatting but the text is gibberish.

I am using ev.Graphics.DrawString(line, printFont, Brushes.Black,
leftMargin, yPos, New StringFormat) , where line is the text that I wish to
print on each line, to print the text.

The DrawLine method, however produces true results for drawing lines. Also
printing a picture from inside the program using graphics.DrawImage prints
correctly using the Acrobat print driver.

Is there some setup of the printdocument that should be done if printing to
the Acrobat print driver? Has anyone successfully printed a printdocument
containing text to the Acrobat PDFWriter?
 
T

Thomas Wenning

William LaMartin said:
I have a vb.net win form where I want to output some text to a printer.
Everything works fine when printing to my laser or inkjet printers. However
when I print to the Acrobat PDFWriter printer driver, I get correct
formatting but the text is gibberish.

I am using ev.Graphics.DrawString(line, printFont, Brushes.Black,
leftMargin, yPos, New StringFormat) , where line is the text that I wish to
print on each line, to print the text.

The DrawLine method, however produces true results for drawing lines. Also
printing a picture from inside the program using graphics.DrawImage prints
correctly using the Acrobat print driver.

Is there some setup of the printdocument that should be done if printing to
the Acrobat print driver? Has anyone successfully printed a printdocument
containing text to the Acrobat PDFWriter?
Hi William,

i use Crystal Report and export each document to pdf or PDFCreator as
printer device.
PDFCreator is freeware!!!

Sorry.

Greeting

Thomas
 
W

William LaMartin

The idea here is not to use Crystal Reports. That way I can supply the
application's executable file only and not have to provide an installation
package as would be the case if I used CR.

Printing to the Acrobat PDFWriter driver was an afterthought (most people
don't even have it on their computers since they have only the Acrobat
Reader). However, after getting nice results with my printing routine when
printing to various printers in house, I decided to try printing to the
Acrobat PDFWriter driver and then noticed the garbled text. So I was just
curious why this driver produces different results from other printers.

Certainly someone else has tried to print a print document in VB.Net to the
Acrobat PDFWriter driver and noticed the result--and may have a solution.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top