O$ Printing a picture
Peter van Rooij
petervanrooij at wanadoo.nl
Tue May 20 07:20:52 EDT 2008
Hello Linda
Just made a new test. This works, code from within the report:
Do FileOps.$getfilename(lPictPath)
ReadBinFile (lPictPath,lBin) Returns lNumberOfBytes
Calculate lPictFormat as pictformat(lBin)
Calculate iPict as pictconvto(lPictFormat,lBin,'CS24')
Print record
End print
where the $rawpictformat was set to CS24
HTH
Peter
On 20 mei 2008, at 12:02, Linda Claes wrote:
> The type of iPicture on the window is Picture and I use the same
> variable in
> the iPrintRow.
>
> Where can I find the property $rawpictformat on 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 11:47
> To: OmnisDev List - English
> Subject: Re: O$ Printing a picture
>
> Hello Linda,
>
> Sorry, but what I meant was, what kind of var is iPrintRow.iPicture.
> Is it a Binary or a Picture.
> As I understand it, iPicture on the window is a Binary.
> Is iPrintRow.iPicture of the same type?
>
> What do you use for the $rawpictformat on the report?
>
>
>
> I ran into some problems in earlier versions of studio, and I use the
> oWrite-external to do a workaround :
>
> ReadBinFile (pPictPath,lBin) Returns lNumberOfBytes ; lBin
> is of the
> type binary
> Calculate lPictFormat as pictformat(lBin)
> Do OWrite.$pictconvto(lPictFormat,lBin,'CS24') Returns iPict ;
> converts it to CS24, maybe you could set the rawpictformat to CS24 to
> achieve the same; iPict is of the type Picture
>
> HTH
>
> Peter
>
>
>
>
>
> On 20 mei 2008, at 11:33, Linda Claes wrote:
>
>> The objecttype in the report is kPictureobj
>>
>> 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 11:25
>> To: OmnisDev List - English
>> Subject: Re: O$ Printing a picture
>>
>> Hello Linda
>>
>> What objecttype has iPrintRow.iPicture?
>>
>> Peter
>>
>>
>> On 20 mei 2008, at 10:55, Linda Claes wrote:
>>
>>> 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
>>>
>>> _____________________________________________________________
>>> Manage your list subscriptions at http://lists.omnis-dev.com
>>>
>>
>>
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>>
>> _____________________________________________________________
>> Manage your list subscriptions at http://lists.omnis-dev.com
>>
>
>
> _____________________________________________________________
> 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