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.81 MB
Time: 0.02 c
1-22216
Ghost_Old.
2001-12-16 14:43
2002.01.08
Help .. who knows how to get tomorrow's date ..


1-22057
AlexeyV
2001-12-19 03:34
2002.01.08
How to cause a dialogue


1-22231
Leviathan
2001-12-16 22:16
2002.01.08
BitBlt ...


14-22396
Merlin
2001-11-02 09:54
2002.01.08
Today is a happy day! Besides that, Friday ...


6-22269
SERGX
2001-10-05 16:31
2002.01.08
Please give the source !!





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