Home
Top.Mail.Ru Yandeks.Metrika
Forum: "Bases";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Down

filling in OleContainer from BlobField Find similar branches


SVS   (2001-12-04 13:11) [0]

Hello All!
Help pliz, Word documents are stored in the database; however, when they are output to OleContainer
the error "Invalid stream format" occurs

procedure Blob2OLEContainer (aDataSet: TDataSet; aBlobFieldName: string; aOleContainer:
TOleContainer);
was
MS: TMemoryStream;
begin
MS: = TMemoryStream.Create;
TBlobField (aDataSet.FieldByName (aBlobFieldName)). SaveToStream (MS);
Stream.Position: = 0;
aOleContainer.LoadFromStream (Stream); // --- "Invalid stream format"
aOleContainer.DoVerb (ovShow);
Stream.Free;
end;

--
Regards,
SVS mailto: svs-12345678@mail.ru



Юрий Жуков   (2001-12-04 14:20) [1]

Put the property in OleContanter OldFormat (it seems so called) - in the help it is written



Pages: 1 whole branch

Forum: "Bases";
Current archive: 2002.01.08;
Download: [xml.tar.bz2];

Top









Memory: 0.8 MB
Time: 0.028 c
1-22224
Oleg Gashev
2001-12-15 11:14
2002.01.08
Problem with the size of the image when printing


4-22456
Redmax
2001-11-01 11:10
2002.01.08
COM NetMeeting Objects


1-22104
Derzky
2001-12-18 19:54
2002.01.08
How to compare dates.


3-21976
Termik
2001-12-06 11:47
2002.01.08
Stored procedures, dynamic objects


1-22008
Alligator
2001-12-17 11:46
2002.01.08
HELP !!!





afrikaans albanian Arabic armenian azerbaijani basque belarusian bulgarian catalan Chinese (Simplified) Chinese (Traditional) croatian Czech danish Dutch English estonian filipino finnish French
galician georgian German greek haitian Creole hebrew Hindi hungarian icelandic indonesian Irish italian japanese Korean latvian lithuanian macedonian malay maltese norwegian
persian polish portuguese Romanian russian serbian slovak Slovenian Español swahili Swedish thai turkish Ukrainian urdu vietnamese welsh yiddish bengali bosnian
cebuano Esperanto gujarati hausa hmong igbo javanese kannada khmer lao latin maori marathi mongolian nepali punjabi somali tamil telugu yoruba
zulu
English French German Italian Portuguese Russian Spanish