Subject: | Re: Paradox, show images
| Date: | 20 Apr 2024 17:41:29 -0400
| From: | "Kevin Zawicki" <numberjack@wi.rr.com>
| Newsgroups: | pnews.paradox-development
|
You can read many (older) image formats into a graphic field.
But Paradox will render into a BMP format on the form.
It can handle many formats, but some lose depth.
Reads a graphic from a file.
A Paradox table has a graphic type, again converts to BMP, but acts like
any other field.
I would not store MANY graphic files in a table, they are like Blob fields,
unwieldy. Better to store them in a folder and read them in on the fly.
The external viewer is most reliable, I use same thinking for PDFs.
----------------------
Syntax
readFromFile ( const fileName String ) Logical
Description
readFromFile reads a graphic from a disk file specified in fileName. readFromFile
returns True if the fileName name exists and contains a graphic format that
can be imported; otherwise, it returns False. Paradox can import the following
graphic formats:
· Bitmap (.BMP)
· OS/2 Bitmap (.BMP)
· Joint Photographic Experts Group(JPG, .JPEG, .JPE)
· Graphic Interchange Format (.GIF)
· Paintbrush (.PCX)
· Tagged Information File Format (.TIF)
· WordPerfect Graphic 1.0, 2.0 (.WPG)
· Corel Photo-Paint 6-10 (.CPT)
· CorelDRAW 3-10 (.CDR)
· Corel Metafile Exchange (.CMX)
· Portable Network Graphics (.PNG)
· Windows Metafile (.WMF)
· Kodak Photo CD (.PCD)
wolf wahn <wowiwa@onlinehome.de> wrote:
>Thank you, Ivan,
>your short script is way better than what I have used before to call a
>viewer-program (acdsee or irfanview) to have a full-scale view of large
>images, I'm glad to use it from now on.
>Dhtmledit on the other hand allows to integrate images in Paradox forms,
>images perfectly scaled to fit. As dhtmledit is even more obsolete as
>Paradox (the latter is still being sold, after all), I wonder whether
>there was any alternative to that - still working - OCX-control
>Microsoft gave up in 2006 or so. How else can I show jpg-images in
>Paradox forms? Are there any other solutions around?
>Wolf
>
>> i don't know, if this is a solution for your problem too:
>>
>> e.g. with a script you can do it like this:
>>
>>
>>
>> Uses Shell32
>>
>> ShellExecute(hwnd CLONG, lpOperation CPTR, lpFile CPTR, lpParameters
>> CPTR, lpDirectory CPTR, nShowCmd CLONG) CLONG [STDCALL "ShellExecuteA"]
>>
>> endUses
>>
>>
>> method run(var eventInfo Event)
>>
>> Â var
>> Â Â path String
>> Â endVar
>>
>> Â path = "C:\\TEMP\\myPicture.jpg"
>>
>> Â if isFile(path)
>> Â then
>> Â Â Â Â ShellExecute(0, "open", path, "", "", 3)
>> Â endIf
>>
>> endMethod
>>
>>
>>
>> you can use it to show different types of files - not only jpg (e.g.
>> PDF, XLS, DOCX, MP4, ...)
>>
>> Ivan
>>
>>
>> Probably somebody shoud write a kind of installation for the people, how
>> to communicate with pnews.thedbcommunity.com through Google / MS Edge
>> ... Not many people will use old SW like Windows Mail for a long time.
>>
>> "wolf wahn" <wowiwa@onlinehome.de> schrieb im Newsbeitrag
>> news:6620f46c$1@pnews.thedbcommunity.com...
>>> Hi,
>>> before it is too late and this fine newsgroup dead and gone: I am
>>> using dhtmledit to show jpg-images in Paradox (11/win 11). Is there
>>> any other/better way to do this?
>>>
>>> Thanks to all who contributed here over the years,
>>> Wolf
>>
>>
>> ---
>> Diese E-Mail wurde von AVG auf Viren geprüft.
>> http://www.avg.com
>>
>
|