Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to print image from a blob field
Message
 
 
À
06/12/2012 13:15:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Divers
Thread ID:
00962468
Message ID:
01558966
Vues:
74
>>In your case it's expression or variable name. But I have a cursor field the blob field and many rows. Do I still pick the expression?
>
>sorry my mistake.
>I forget this old job.
>
>on help you can read
>---
>Expression or variable name
>Specifies that the control source should be an expression or variable that evaluates to:
>
>An image filename.
>
>A non-General character field.
>
>A string literal containing an explicit file name.
>
>An object reference to a form Image object that has its PictureVal property set appropriately.
>
>Tip
>The use of an Image object's PictureVal property as a image source in a report is only supported in object-assisted output mode. It will work in backward-compatible mode, in some cases, but results are not guaranteed. For example, in backward-compatible mode, Picture/OLE Bound controls with this source may not respect the Clip sizing option. For more information, see SET REPORTBEHAVIOR Command.
>----
>
>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")
>
Thanks a lot again - this is what I am going to try once I finish with the Footprint I am working on right now.
If it's not broken, fix it until it is.


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

Click here to load this message in the networking platform