Spire.Doc is a professional Word .NET library specifically designed for developers to create, read, write, convert and print Word document files. Get free and professional technical support for Spire.Doc for .NET, Java, Android, C++, Python.

Tue Jun 09, 2015 11:54 am

Hi,

i am converting from word to spire. what is the spire equivalent to the following:

Dim WordDocument as interop.word.document
Dim SectionSelectMaster As Microsoft.Office.Interop.Word.Selection
dim search = SECTION_START & "*" & SECTION_END

WordDocument .Windows.Item(1).Selection.HomeKey(Unit:=Interop.Word.WdUnits.wdStory)
WorDocument.Windows.Item(1).Selection.Find.Execute(FindText:=search, MatchCase:=False, MatchWholeWord:=True, MatchWildcards:=True, Wrap:=Interop.Word.WdFindWrap.wdFindStop, Forward:=True)

If (WorDocument.Windows.Item(1).Selection.Find.Found) Then
SectionSelectMaster = WordDocument .Windows.Item(1).Selection
SectionSelectMaster .Copy()
End If

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

Wed Jun 10, 2015 8:53 am

Hello,

Thanks for your inquiry.
Sorry that I don’t understand what you want to do, please describe your requirement in detail equivalent to the code you provided.

Thanks,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Wed Jun 10, 2015 11:53 am

Hi,

Please ignore the last request.

I have put a document together of what i am trying to do, could you assist with this please

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

Thu Jun 11, 2015 9:34 am

Hello,

Thanks for sharing.
I have attached the code could help you to achieve the goal you mentioned.

Sincerely,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Thu Jun 11, 2015 12:33 pm

Thats great thank you very much.

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

Fri Jun 12, 2015 1:14 am

Hello,

If there is further questions, welcome to get it back to us.

Best Regards,
Betsy
E-iceblue support team
User avatar

Betsy
 
Posts: 802
Joined: Mon Jan 19, 2015 6:14 am

Return to Spire.Doc