Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Tiff files in reports
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Titre:
Tiff files in reports
Divers
Thread ID:
00492246
Message ID:
00492246
Vues:
55
Hi,

I'm about 90% done on this "thing" that will allow me to print tiff files, but need a last push in the right direction.

Here's the scenario...

My client needs to scan certain documents and attach them to a table.

I'm using the Kodak controls and so far the scanning works great. I scan a document, generate a unique file name, and save it as a tiff (about 6 times smaller than a bmp).

The problem comes when that image has to be printed as part of a report. VFP's reports don't support tiff images.

I created a modal form where I placed the imgEdit control. I call the form with the name of the tiff and the form then opens the tiff, saves it as a bitmap, fixes the bitmap (the Kodak control has a $U#*$# BUG when saving bmp format), closes itself automagically, and returns the path\filename to the saved file.

In the OLE Control on the form I have something like "(doform("tiff2bmp",thistable.tiff_filename))" So that the report evaluates the expression and looks for a file and path returned by the form.

Since the bmp file I'm using is only for printing I have the form always save it to the same file (c:\u\s2.bmp).

The problem I'm having is that the report is a smartass, and seems to be catching up to the fact that the ole control appears to be pointing at the same file all the time. Therefore, the contents of the ole control on the report is not being updated in spite of the contents of s2.bmp changing from one record to the next.

I don't want to create unique bmp filenames because then I will have to deal with deleting those files after I'm done.

IS there any other way to have the report not try to outsmart me?

Thanks!

Alex
Low-carb diet not working? Try the Low-food diet instead!
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform