OpenOffice.org Forum at OOoForum.orgThe OpenOffice.org Forum
 
 [Home]   [FAQ]   [Search]   [Memberlist]   [Usergroups]   [Register
 [Profile]   [Log in to check your private messages]   [Log in

Disable OpenOffice copy,save,print using VB code.

 
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Code Snippets
View previous topic :: View next topic  
Author Message
deebikas
General User
General User


Joined: 27 Jun 2010
Posts: 6
Location: Hyderabad

PostPosted: Mon Jun 28, 2010 12:11 am    Post subject: Disable OpenOffice copy,save,print using VB code. Reply with quote

Hello,

I am currently using Visual Basic to Program OpenOffice. I learnt some fundamentals like how to open a document. This is the code which I am using :::

Dim oSM, ODesk As Object
Dim oDoc As Objec
Dim OpenPar(3) As Object

oSM = CreateObject("com.sun.star.ServiceManager")
ODesk = oSM.createInstance("com.sun.star.frame.Desktop")

OpenPar(0) = MakePropertyValue("ReadOnly", False)
OpenPar(1) = MakePropertyValue("Password", "sec")
OpenPar(2) = MakePropertyValue("Hidden", False)

oDoc = ODesk.loadComponentFromURL("file:///c:/TEMP/new.odt", "_blank", 0, OpenPar)

Now, I want to go deeper so that I can disable copy, save, print options for a particular document.

Please help me with some hook ups since I am a newbie.

Thanks in advance.
_________________
Regards,
Deebika
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    OOoForum.org Forum Index -> OpenOffice.org Code Snippets All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group