....
olestore = create olestorage
olestr = create olestream
.....
li_ris = olestore.open( "c:\temp\test.ole")
......//"file_a" is the name of an substorage..
li_ris = olestr.Open(olestore, "file_a", stgReadWrite!, stgExclusive!)
The last row of code give me li_ris = -5 that is "Access denied".
I changed read mode and sharemode of open (of olestore and olestream) but
this way does not resolve my problem!
Have you got any suggestions?
Thans for your help!
Michela
On Wed, 9 Jul 2003 18:30:51 +0200,
in powersoft.public.powerbuilder.ole-ocx-activex
michela <michela@michela> wrote:
>Hi to all!
>I found why "SaveAs" method of olecontrol gave me an error, but now
>I have another question.
>I open an olestorage variable from ole file and I want load it in a
>olestream object.
>The script is:
>
>.....
>olestore = create olestorage
>olestr = create olestream
>......
>li_ris = olestore.open( "c:\temp\test.ole")
>.......//"file_a" is the name of an substorage..
>li_ris = olestr.Open(olestore, "file_a", stgReadWrite!, stgExclusive!)
>
>The last row of code give me li_ris = -5 that is "Access denied".
>I changed read mode and sharemode of open (of olestore and olestream) but
>this way does not resolve my problem!
>Have you got any suggestions?
>Thans for your help!
>
>Michela
>
>
>
- - -
Andy [TeamSybase]
Techwave 2003 - http://www.sybase.com/techwave2003
International Sybase User Group (ISUG) - http://www.isug.com
CodeXchange - http://powerbuilder.codeXchange.sybase.com/