It is for what I was looking!!!

Thanks


"Drew Jensen" <[EMAIL PROTECTED]> escribió en el mensaje 
news:[EMAIL PROTECTED]
> Jorge Gárate wrote:
>> I know that there is a command in way programacón, but if I do not find 
>> it I will try you gave me.
>>
>> Thanks
> Do you mean you simply want to open the Calc file "hidden"?
>
> This is done with a parameter to the LoadComponentFromURL command.
>
> For example.
>
> Open the basic ide and add a sub procedure to a module in the standard 
> library, something like.
>
> sub loadHiddenCalcFile
> dim args(0) As New com.sun.star.beans.PropertyValue
> dim oCalcDocument as variant
>
> args(0).Name = "Hidden"
> args(0).Value = TRUE
>
> oCalcDocument = stardesktop.loadComponentFromURL( 
> ConvertToURL("YOUR_FILE_NAME_HERE"), "_Blank", 0, args ) "_hidden", 0, 
> args() )
>
> REM do something with the file
>
> oCalcDocument.close( True )
>
>
> end sub
>
> Of course replace YOUR_FILE_NAME_HERE with the full name of your calc file 
> ( This includes the path information )
>
> for example
> oCalcDocument = stardesktop.loadComponentFromURL( 
> ConvertToURL("c:\tmp\20080517_1234_drew.ods"), "_Blank", 0, args )
>
> Be sure to clean up the line break that this text only venue will insert 
> when you copy the code example.
> Once the document is opened this way you can work with it using the 
> oCalcDocument variable.
>
> Anyway - I hope that helps get you started.
>
> Drew
>
> -- 
> OpenOffice.org User Community Forums
> Connecting users around the globe!
>   Community forum  http://user.services.openoffice.org/en
>   Communauté francophone  http://user.services.openoffice.org/fr
>   Közösségi fórum  http://user.services.openoffice.org/hu
>   ????????????  http://user.services.openoffice.org/ja
>
> United States PostgreSQL Association: http://www.postgresql.us/ 




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to