Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tiff files in reports
Message
De
05/04/2001 15:19:40
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Divers
Thread ID:
00492246
Message ID:
00492479
Vues:
17
>>Just looked at the report - it is an image control, but bound to a general field filled like this:
>>
APPEND GENERAL image FROM (lcImage) CLASS LEADSRVR
>>'image' is the name of the general field the picture control is bound to, and Leadsrvr is the name LeadTools uses when it's an OLE server. In your case it would be kodaksomething, I suppose.
>
>Hi Drag,
>
>I don't mean to pester you, but in my case the images are stored as individual tiffs in the hard drive and all the table has is a text field with the path and name of the file.
>
>Exactly where in the report writer should I plug-in the "append general" statement, in the ole-image control's "field" field or in the "variable" field?

OK, trying second time - first one didn't make it, connection refused or something. Here cometh the awful meta-code:

select * from your-original-cursor-or-table;
into cursor temp
use in your-original
use dbf('temp') again in 0 alias your-original
* this is a trick to have your original alias available to the report
use in temp
sele your-original
alter table (dbf()) add column image g
* g or whatever is the type of a general field
scan
append general image from (alltrim(filenamefield)) class YourImgClass
ends

This goes to your report's dataenvironment.init, and you may add some code to cleanup in dataenvironment.destroy if you like.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform