Hi all,
I'm trying to write a replacement function in C# for Corel WordPerfect;
WordPerfect.PerfectScript objWordPerfect = new WordPerfect.PerfectScript();
objWordPerfect.PosDocVeryTop();
objWordPerfect.SearchString(StrgToLookFor:original);
objWordPerfect.ReplaceString(RplcStrg:change);
objWordPerfect.SearchCaseSensitive(_SearchCaseSensitive_State_enum.No_SearchCaseSensitive_State);
objWordPerfect.ReplaceAll(_ReplaceAll_SearchMode_enum.Extended_ReplaceAll_SearchMode);
It works well but i need to use special format WP codes also, i want it to realize this operation,
StrgToLookFor:apple
RplcStrg:[Indent][LeftTab]sour[LeftTab]apple[Indent]
I cannot make it, because these codes([Indent] etc.) are special formatted for Wordperfect, can someone tell me how can i use all these codes in my function? I try to call Wordperfect macro from outside with my function with;
objWordPerfect.MacroFilePlay(mpath);
I can pass string to macro but only plain strings not special formatted codes.Is there a way?
I would appreciate it if anyone helps me.
Thanks