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...
Adding Picture from Dataset graphic field?
Re: Adding Picture from Dataset graphic field?
Hello
Example:
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;
Lars Arvidsson, Axolot Data
Re: Adding Picture from Dataset graphic field?
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...
Thanks in Advance...
Re: Adding Picture from Dataset graphic field?
Hello
Using streams is a very basic thing in delphi. Please ask such questions in a general forum such as Stackoverflow.
Using streams is a very basic thing in delphi. Please ask such questions in a general forum such as Stackoverflow.
Lars Arvidsson, Axolot Data