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 !
Помогите плиз, в базе хранятся документы Word однако при их выводе в OleContainer
возникает ошибка "Invalid stream format"

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]

Поставь свойство у OleContanter OldFormat (кажись так называется) - в справке об этом написано



Pages: 1 whole branch

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

Top









Memory: 0.8 MB
Time: 0.03 c
1-22140
Serg5
2001-12-20 10:17
2002.01.08
The question of whether it is possible to reduce the font to 4 pixels, it changes, it changes (the program does not swear), but on the screen (Canvas.Font) it still displays 8 (the most minimal)


4-22487
bike
2001-11-05 00:40
2002.01.08
Создание макроса в Excel


1-22121
stalin
2001-12-18 00:20
2002.01.08
New problem: + (


14-22352
Merlin
2001-11-02 13:04
2002.01.08
We have all the moves recorded !!!


1-22011
Ksergey
2001-12-16 14:26
2002.01.08
Как отловить клавишу TAB?





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