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.54 MB
Time: 0.022 c
4-22487
bike
2001-11-05 00:40
2002.01.08
Create Macro in Excel


1-22142
Beginner
2001-12-20 10:42
2002.01.08
ReplaceDialog


3-21994
Vs
2001-12-06 16:23
2002.01.08
Dynamic array


4-22458
Ajax
2001-10-31 17:50
2002.01.08
TColor and RGB


1-22123
dimonf
2001-12-15 16:33
2002.01.08
Question about





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 Spanish 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