O$ Printing a picture

Linda Claes linda.claes at cmb.be
Tue May 20 04:55:57 EDT 2008


Hi Peter,

It is a jpg-file on the server.
To display the picture in the window, I do the following:

Calculate iFileName as con(lvPad,iVesselRow.PICTURE_NAME)
Do $cinst.$objs.iPicture.$rawpictformat.$assign('JPEG')
Open file (iFileName,lvRefNum) Returns lvStatus
Read file as binary (lvRefNum,iPicture) 
Close file (lvRefNum) 
Calculate iPrintRow.iPicture as iPicture

iPicture is on the screen and iPrintRow.iPicture is used in the report.

Linda 

-----Original Message-----
From: omnisdev-en-bounces at lists.omnis-dev.com
[mailto:omnisdev-en-bounces at lists.omnis-dev.com] On Behalf Of Peter van
Rooij
Sent: dinsdag 20 mei 2008 10:42
To: OmnisDev List - English
Subject: Re: O$ Printing a picture

Hello Linda

How do you 'transfer' the picture from the window to the report?

Peter


On 20 mei 2008, at 10:24, Linda Claes wrote:

> Hi all,
>
>
>
> I have a picture field, that I can display in a window but I cannot  
> print it
> in a report, the picture field in the report stays empty.
>
> I'm I missing something?
>
>
>
> Thanks for your help
>
>
>
> Linda
>
> _____________________________________________________________
> Manage your list subscriptions at http://lists.omnis-dev.com
>


_____________________________________________________________
Manage your list subscriptions at http://lists.omnis-dev.com




More information about the omnisdev-en mailing list