Spire.XLS is a professional Excel API that enables developers to create, manage, manipulate, convert and print Excel worksheets. Get free and professional technical support for Spire.XLS for .NET, Java, Android, C++, Python.

Tue Jun 24, 2014 3:10 pm

Hi,

I am converting code using vb.net. I am currently using word interop, and looking to move over to spire.doc, but i am having issues trying to convert the code. How would I convert the following.....

ActiveDocument.Windows.Item(1).Selection.Find.Execute(FindText:="\[*\]", MatchCase:=False, MatchWholeWord:=False, MatchAllWordForms:=False, MatchSoundsLike:=False, MatchWildcards:=True, Wrap:=Interop.Word.WdFindWrap.wdFindStop, Forward:=True)

to code that works with sprire documents?

stevenheggie
 
Posts: 60
Joined: Tue Jun 24, 2014 10:32 am

Wed Jun 25, 2014 2:46 am

Hello,

Thanks for your inquiry.
Please refer to the below method, and there are other override methods.
Code: Select all
Dim text() As TextSelection = document.FindAllString("\[*\]", False, True)

Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Wed Jun 25, 2014 3:38 pm

that works, thank you!

stevenheggie
 
Posts: 60
Joined: Tue Jun 24, 2014 10:32 am

Thu Jun 26, 2014 1:32 am

Hello,

Thanks for your feedback.
Feel free to contact us any time if you need further help or have some other issue or queries, we will be happy to assist you soon.
Sincerely,
Gary
E-iceblue support team
User avatar

Gary.zhang
 
Posts: 1380
Joined: Thu Apr 04, 2013 1:30 am

Return to Spire.XLS

cron