Click here to Skip to main content
12,455,517 members (62,313 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# Windows
I want to know how to handle word perfect document using code.

as we open word document,create new and save that document using Office Interop Assemblies.

so for word perfect what i want to do, or where i need to start.

i just want to open existing document and make password protected that using my code.


please help me...


i have already use its com library but i get com error for accessing this...

WordPerfect.ApplicationClass _App = new WordPerfect.ApplicationClass();
WordPerfect.DocumentClass _Doc = new WordPerfect.DocumentClass();
WordPerfect.PerfectScriptClass _PScript = new WordPerfect.PerfectScriptClass();
WordPerfect.ScriptClass sc = new WordPerfect.ScriptClass();
Posted 14-Feb-12 2:31am
Comments
digimanus 14-Feb-12 11:08am
   
showing the com exception might help too.
ryanb31 14-Feb-12 13:17pm
   
Do you have the COM library registered on your machine? If you are getting an error why would you not share it with us?
Tejas_Vaishnav 14-Feb-12 23:11pm
   
I have install word perfect in my PC, so i think it will register that com library automatically.
Tejas_Vaishnav 14-Feb-12 23:13pm
   
The file that i add a referance to my project is com library named "wpwin15.tlb"
and it will create a "Interop.WordPerfect.dll" at runtime...

now what i do..?
ryanb31 24-Feb-12 14:23pm
   
What is the error?
Tejas_Vaishnav 14-Feb-12 23:28pm
   
i have also tried to register both file tbl and dll using regsvr32 command but it will gives error and not register that files..

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160826.1 | Last Updated 14 Feb 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100