Luca, The DC is invalid. Maybe you need to include the interfaces unit to initialize the widgetset?
Thanks. -Phil -----Original Message----- From: Luca Olivetti [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 18, 2007 5:12 AM To: [email protected] Subject: Re: [lazarus] Is lazreport supposed to work? (gtk2/linux) En/na Luca Olivetti ha escrit: > En/na Jesus Reyes ha escrit: > >> The Gtk2 interface is not yet as complete or tested as the windows or >> GTK1 inteface, as the more work is put in GTK2 interface it will >> benefit LazReport also. Btw, there are several bug reported in >> relation with LazReport and GTK2 interface, if you find a bug in >> LazReport either in GTK2, GTK1 o Windows that is not yet in bug >> tracker please submit it, otherwise it might be forgotten. > > Ok, I submitted bugs 9678 and 9679 > > http://www.freepascal.org/mantis/view.php?id=9678 > (components placed 200-300 pixels to the right of the cursor) > > http://www.freepascal.org/mantis/view.php?id=9679 > (no text in the printed report). Now that at least the second bug is fixed (thanks!), here comes the difficult part ;-) Is there a simple (or not so simple) way to use lazreport to send a report to the printer without X (I'm going to need this on an headless machine)? Just to test the waters, I started with a really simple test program program simple; {$mode objfpc}{$H+} uses LR_Class; begin end. and it is enough to cause this: TCUPSPrinter.GetEnumAttributeString Attribute not found: media-supported TCUPSPrinter.GetEnumAttributeString Attribute not found: media-supported TCUPSPrinter.GetEnumAttributeString Attribute not found: media-supported [FORMS.PP] ExceptionOccurred Sender=EAccessViolation Exception=Access violation Stack trace: $08132A57 GETDC, line 336 of ./include/winapi.inc $0811FD0D TBITMAP__HANDLENEEDED, line 442 of ./include/bitmap.inc $08122139 TBITMAPCANVAS__CREATEHANDLE, line 46 of ./include/bitmapcanvas.inc $081292F8 TCANVAS__REQUIREDSTATE, line 1530 of ./include/canvas.inc $0812916C TCANVAS__GETHANDLE, line 1440 of ./include/canvas.inc $08126A46 TCANVAS__SETPIXEL, line 109 of ./include/canvas.inc $0807CFC0 DOINIT, line 8706 of lr_class.pas $0807EC5D LR_CLASS_init, line 9084 of lr_class.pas $080579B4 TApplication.HandleException Access violation Stack trace: $08132A57 GETDC, line 336 of ./include/winapi.inc $0811FD0D TBITMAP__HANDLENEEDED, line 442 of ./include/bitmap.inc $08122139 TBITMAPCANVAS__CREATEHANDLE, line 46 of ./include/bitmapcanvas.inc $081292F8 TCANVAS__REQUIREDSTATE, line 1530 of ./include/canvas.inc $0812916C TCANVAS__GETHANDLE, line 1440 of ./include/canvas.inc $08126A46 TCANVAS__SETPIXEL, line 109 of ./include/canvas.inc $0807CFC0 DOINIT, line 8706 of lr_class.pas $0807EC5D LR_CLASS_init, line 9084 of lr_class.pas $080579B4 Bye -- Luca Olivetti Wetron Automatización S.A. http://www.wetron.es/ Tel. +34 93 5883004 Fax +34 93 5883007 _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _________________________________________________________________ To unsubscribe: mail [EMAIL PROTECTED] with "unsubscribe" as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
