O$: Once again about $backpicture or what am I doing false ?

Jean-Marc Voegeli jmvoegeli at bluewin.ch
Thu Dec 18 11:13:26 EST 2014


Hello everybody,

Again about $backpicture in reports ...

As I have understood $backpicture is a sort of record with the following fields :

	$backpicture.$picture
	$backpicture.$picturealign
	$backpicture.$horzdpi
	$backpicture.$vertdpi 
	$backpicture.$horzoffset
	$backpicture.$vertoffset

As I have understood You can't assign a picture to the $backpicture.$picture field during instanciation, it must be done on the class.

But when I do :

Set reference vReportRef to $root.$libs.Gestion.$reports.r_Factures_Just
… (getting the actual picture and converting it to CS24)
Do vReportRef.$backpicture.$picture.$assign(vPicture)
Do vReportRef.$backpicture.$picturealign.$assign(kPALcenter)
Do vReportRef.$backpicture.$horzdpi.$assign(300)
Do vReportRef.$backpicture.$vertdpi.$assign(300)

I keep getting #ERRTEXT

Problem with notation
vReportRef.$backpicture.$picture.$assign(vPicture)
When evaluating $picture
This is not a recognized attribute for the parent item

Problem with notation
vReportRef.$backpicture.$picturealign.$assign(kPALcenter)
When evaluating $picturealign
This is not a recognized attribute for the parent item

etc the same for each field !

If I do :

If (vReportRef.$backpicture.$picture.$canassign())
	Do vReportRef.$backpicture.$picture.$assign(vPicture)
End If

The condition is not meet … so 

$backpicture.$picture does not exist and can't be assigned to !!!


But on the archive it says that we have to use $backpicture.$picture in the class .

I am at a lost here and some light would be more than welcome.

I must do something wrong and do not know what it is …


Thank You in advance.


Jean-Marc Voegeli




Here is the documentation :

;    When using notation, $backpicture refers to the binary representation of the image and the
;    formatting properties.
;    
;    To change the image or formatting properties you can use
;                                          $backpicture.$picture or $backpicture.$align (sic).
;    
;    ----------------------------------------------------------------------------------------------
;    The full set of notation is as follows:
;    ----------------------------------------------------------------------------------------------
;    $backpicture.$picture                 the actual image (24bit color shared).
;    ----------------------------------------------------------------------------------------------
;    $backpicture.$picturealign            alignment of the image within the report margins. This
;                                          can be one of the kPALxxx constants:
;                                                            kPALbottomCenter
;                                                            kPALbottomLeft
;                                                            kPALbottomRight
;                                                            kPALcenter
;                                                            kPALcenterLeft
;                                                            kPALcenterRight
;                                                            kPALstretch
;                                                            kPALtile
;                                                            kPALtopCenter
;                                                            kPALtopLeft
;                                                            kPALtopRight
;    ----------------------------------------------------------------------------------------------
;    $backpicture.$horzdpi                 the horizontal dpi (defaults to 150), disabled for
;                                          kAlignMargins and kAlignPrintable
;    ----------------------------------------------------------------------------------------------
;    $backpicture.$vertdpi                 the vertical dpi (defaults to 150) , disabled for
;                                          kAlignMargins and kAlignPrintable.
;    ----------------------------------------------------------------------------------------------
;    $backpicture.$horzoffset              additional horizontal offset in cms or inches from the
;                                          alignment. Disabled for alignments of kAlignMargins
;                                          and kAlignPrintable
;    ----------------------------------------------------------------------------------------------
;    $backpicture.$vertoffset              additional vertical offset in cms or inches from the
;                                          alignment. Disabled for alignments of kAlignMargins
;                                          and kAlignPrintable
;    ----------------------------------------------------------------------------------------------


More information about the omnisdev-en mailing list