Recent

Author Topic: Trying to print  (Read 1894 times)

bobonwhidbey

  • Hero Member
  • *****
  • Posts: 631
    • Double Dummy Solver - free download
Trying to print
« on: June 02, 2016, 04:50:29 pm »
 I want to print text in a Windows environment using Canvas.TextOut. I've followed these instructions at http://wiki.freepascal.org/Using_the_printer without success.  This simple program bombs (for me) at the BeginDoc line. Further tracing shows that the program stops on line 258 of the winprinters.inc file:

    PDev.DevModeSize := DocumentPropertiesW(0, FPrinterHandle, Pwidechar(UTF8Decode(PDev.Name)),

Any help with printing would be appreciated very much.
Lazarus 4.6 FPC 3.2.2 x86_64-win64-win32/win64

 

TinyPortal © 2005-2018