Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to print image from a blob field
Message
 
 
To
06/12/2012 13:15:07
General information
Forum:
Visual FoxPro
Category:
Visual FoxPro Beta
Miscellaneous
Thread ID:
00962468
Message ID:
01566713
Views:
75
>It is the image object that render the data.
>
>Then the solution is immediate ( the jpg file added is a report with 10 records )
>
>* create a dynamic image render
>DEFINE CLASS printimage AS image
>
>	Height = 17
>	Width = 100
>	Name = "printimage"
>
>	*-- Repaints a Form or control and refreshes any values.
>	PROCEDURE refresh
>		LPARAMETERS Pictureval
>		this.PictureVal=EVALUATE(m.Pictureval)
>		RETURN m.this
>	ENDPROC
>
>
>ENDDEFINE
>
>PUBLIC oimage 
>oimage=CREATEOBJECT("PrintImage")
>
>* set Report expression to 
>* m.oimage.refresh("cursor.blobfield")
>
Can you clarify again this solution as it does not seem to work in Print mode, only when previewing a report. It does not appear in the PDF.

UPDATE. Sorry, this solution requires RB 90 only. I added a switch for this report only.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform