Page 1 of 1
Adding Picture from Dataset graphic field?
Posted: Fri Sep 27, 2013 10:48 pm
by Mojoala
Hello everyone.
How do you add a picture from a dataset graphic field?
The help and forum search only shows how to from a load from file perspective.
Thanks in Advance...
Re: Adding Picture from Dataset graphic field?
Posted: Mon Sep 30, 2013 4:17 pm
by larsa
Hello
Example:
Code: Select all
var
Pict: TMSOPicture;
begin
Pict := XLS.MSOPictures.Add;
// The last parameter is the picture type.
// As there id no file extension when reading from a stream
// you must tell the picture type.
Pict.LoadFromStream(MyStream,'UniquePictureName',msoblipPNG);
end;
Re: Adding Picture from Dataset graphic field?
Posted: Thu Oct 24, 2013 3:53 pm
by Mojoala
I've never worked with streams, so I need a little help here on how to initiate from a standard TTable or TdataSet.
Thanks in Advance...
Re: Adding Picture from Dataset graphic field?
Posted: Mon Oct 28, 2013 5:30 pm
by larsa
Hello
Using streams is a very basic thing in delphi. Please ask such questions in a general forum such as Stackoverflow.