VoyForums
[ Show ]
Support VoyForums
[ Shrink ]
VoyForums Announcement: Programming and providing support for this service has been a labor of love since 1997. We are one of the few services online who values our users' privacy, and have never sold your information. We have even fought hard to defend your privacy in legal cases; however, we've done it with almost no financial support -- paying out of pocket to continue providing the service. Due to the issues imposed on us by advertisers, we also stopped hosting most ads on the forums many years ago. We hope you appreciate our efforts.

Show your support by donating any amount. (Note: We are still technically a for-profit company, so your contribution is not tax-deductible.) PayPal Acct: Feedback:

Donate to VoyForums (PayPal):

Login ] [ Contact Forum Admin ] [ Main index ] [ Post a new message ] [ Search | Check update time | Archives: 123456789[10] ]


[ Next Thread | Previous Thread | Next Message | Previous Message ]

Date Posted: 20:15:30 03/20/00 Mon
Author: Michel
Subject: Re: Opening a file error
In reply to: Juan 's message, "Opening a file error" on 23:32:45 03/19/00 Sun


Hi Juan,

This is similar to the way Delphi handles the JPEG unit; you must include the appropriate unit in a uses claused, so that the file format is registered at run-time. For example,

EnJpgGr, for TJpegGraphic
EnTifGr, for TTiffGraphic
EnPngGr, for TPngGraphic

etc,... See the online help for the other formats.


Another option is the include the EnReg unit, and this will register automatically all the formats included in the Envision.Inc file.

I will reply to the questions on the support forum, so it may benefit other users.

Best regards,

Michel

> Hi,
>
> When I'm trying to open a file at runtime I get an
> error message: EInvalidGraphic 'Unknown picture file
> extension (.jpg)'
>
> At design time it opens the same file (using object
> inspector)
>
> What am I doing wrong?
>
> Thanks.
>
> Juan.
>
> PS.: Please answer to my email address
> usamge@usg.com.br

[ Next Thread | Previous Thread | Next Message | Previous Message ]

[ Contact Forum Admin ]


Forum timezone: GMT-5
VF Version: 3.00b, ConfDB:
Before posting please read our privacy policy.
VoyForums(tm) is a Free Service from Voyager Info-Systems.
Copyright © 1998-2019 Voyager Info-Systems. All Rights Reserved.