Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to print image from a blob field
Message
 
 
À
05/12/2012 16:19:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Divers
Thread ID:
00962468
Message ID:
01558861
Vues:
84
>>>>>Do you have anything to say on the topic of the printing blob fields?
>>>>>
>>>>>We're storing data in SQL Server and I retrieve them as blob fields. Now I want to print a report with these fields. I did create a workaround (since I only needed to print 1 row), but I am wondering if SET REPORTBEHAVIOR 90 is the requirement for the above code to work correctly?
>>>>>
>>>>>The code works fine in Preview, but doesn't print when I use CutePDF as a printer. I am using ReportBehavior 80.
>>>>Naomi,
>>>>It is just that I have had very very bad experience with BLOB fields and I was just wondering why you use them.
>>>>
>>>>The above code by Lisa only works with reportlistener.vcx and therefore with Reportbehavior 90.
>>>>Set RB to 90, if it works fine in preview print it with a normal printer first. If that's ok and it does not print with CutePDF, you know whom to blame.
>>>>Good luck
>>>>Regards,
>>>>Koen
>>>
>>>I was hoping someone else tried that code and can tell me if it works with RB80 or with RB90 it works for any printer. I already implemented a workaround, but I'll try a quick test myself now with RB90 and CutePDF.
>>>
>>>UPDATE. I tested with RB 90 and it worked with CutePDF.
>>
>>Hmm, curious what workaround did I implement?
>
>It's funny what happens when you write down a question of technical nature. Either writing the question makes you realize what the solution is, or the problem solves itself.

I don't actually remember the whole problem at all right now. I think I went with keeping a general field for that field (logo) as it was used in many reports.

However, now I'm dealing with another report that was supposed to print daily codes (and images for each day). I tested it in all version of software and it seems to be broken everywhere. I am not sure when did it break (I suspect with Windows 7).

So, this is the whole story and I am thinking that I may need to use Craig's solution here which I don't like that much as it seems complex and uses RB 90 while we're using RB 80 in the application.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform