8.0.3.2 Pictures
I also experimented with conversion to CS24 at one point which works as
well. In this case the same picture object on the report is set for
rawpicturetype of CS24. Then did the below before printing the report.
pvPictureField1=field variable the original picture field with the JPEG file
in it. pvPictureField2 is a field variable to The data field that is on the
report..
Do FileOps.$splitpathname(pvPicturePath,lvDrv,lvDir,lvFile,lvExt) Returns
lvError
Switch mid(low(lvExt),2,len(lvExt))
Case ‘jpg’,’jpeg’
Calculate pvPictureField2 as pictconvto(‘JPEG’,pvPictureField1,’CS24′)
Case ‘bmp’
Calculate pvPictureField2 as pictconvto(‘BMP’,pvPictureField1,’CS24′)
Case ‘gif’
Calculate pvPictureField2 as pictconvto(‘GIF’,pvPictureField1,’CS24′)
Case ‘png’
Calculate pvPictureField2 as pictconvto(‘PNG’,pvPictureField1,’CS24′)
Case ‘pcx’
Calculate pvPictureField2 as pictconvto(‘PCX’,pvPictureField1,’CS24′)
Default
Calculate pvPictureField2 as pictconvto(‘JPEG’,pvPictureField1,’CS24′)
End Switch
*********************************************************************
Michael Mantkowski
ClienTrax Software
1-614-875-2245
*********************************************************************
—–Original Message—–
From: omnisdev-en [mailto:omnisdev-en-bounces@lists.omnis-dev.com] On Behalf
Of Mike Rowan
Sent: Monday, June 12, 2017 6:45 PM
To: OmnisDev List – English <omnisdev-en@lists.omnis-dev.com>
Subject: 8.0.3.2 Pictures
Hi
In the interest of getting others to publish a really useful piece of
information, could someone please post details (the code) for a method to
import a picture (.jpeg or .png) and show it on a report field, presumably
of type picture
In earlier versions of Omnis I had this running reliable, but with 8.0.3 ,
not at all.
The binary data is imported using FileOps as expected but no display of
either original format.
Enlightenment is sorely needed. Thanks to whoever….
Mike
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com
_____________________________________________________________
Manage your list subscriptions at lists.omnis-dev.com