I use the following code to print out info contained in my string variable strText into a new pdf document
Printer.CurrentX = 200
Printer.CurrentY = 400
Printer.FontName = "Arial"
Printer.Fontsize = 14
Printer.FontBold = True
Printer.Print strText
I cannot see how I can ensure that the text is centrally aligned.
Many thanks for your help.
Polly
How do I align text?
Hello,
Unfortunately, I am not sure how to set alignment using the Printer object.
As far as i see from your code you are using the Printer object to draw the text and not our PDF Converter or PDF Creator.
If you have a pdf file, you can add text to it using the PDF Creator and set HorizAlign attribute to 2 to get the text centered.
Hope this helps.
Unfortunately, I am not sure how to set alignment using the Printer object.
As far as i see from your code you are using the Printer object to draw the text and not our PDF Converter or PDF Creator.
If you have a pdf file, you can add text to it using the PDF Creator and set HorizAlign attribute to 2 to get the text centered.
Hope this helps.