How to insert images and/or textbox on different pages ?

Technical support for Spire.Doc

Moderator: iceblue support

How to insert images and/or textbox on different pages ?

Postby crfo23 » Fri May 31, 2013 4:56 pm

Hello,

I am having 2 issues working with asp.net c# and spire.doc.

1.- I am trying to insert a textbox in word document on page 1, and 1 image and several textboxes on page 2. How can I take control over the page that I am inserting image, textboxes, etc.

2.- When I insert an image I use this property

picture1.TextWrappingStyle = TextWrappingStyle.Behind;

so the image gets behind the text

How do I do this when I insert a textbox.


I will be expecting your response. Thanks in advance
crfo23
 
Posts: 6
Joined: Thu May 30, 2013 3:24 pm

Re: How to insert images and/or textbox on different pages ?

Postby Gary.zhang » Mon Jun 03, 2013 11:04 am

Hello,

Thanks for your inquiry.

In regards to the first issue, please refer to the code as below.
Code: Select all
Document document = new Document();
Section section = document.AddSection();
Paragraph paragraph = section.AddParagraph();           
TextBox textbox = paragraph.AppendTextBox(50, 30);
paragraph.AppendBreak(BreakType.PageBreak);
Image image = Image.FromFile("word.png");         
paragraph.AppendPicture(image);
TextBox tb1 = paragraph.AppendTextBox(100, 30);
tb1.Format.VerticalPosition = 100f;
TextBox tb2= paragraph.AppendTextBox(100, 30);
tb2.Format.VerticalPosition = 200f;
document.SaveToFile("sample.docx");
System.Diagnostics.Process.Start("sample.docx");


About the second issue, now our product doesn't support it, and we will add the new feature in the future, once it is added, we will inform you ASAP.

If there are any questions, welcome to get it back to us.

Sincerely,
Gary
E-iceblue support team
Last edited by Gary.zhang on Tue Jun 04, 2013 1:14 am, edited 1 time in total.
User avatar
Gary.zhang
 
Posts: 1390
Joined: Thu Apr 04, 2013 1:30 am

Re: How to insert images and/or textbox on different pages ?

Postby crfo23 » Mon Jun 03, 2013 2:47 pm

Thank you very much.

It was very helpful
crfo23
 
Posts: 6
Joined: Thu May 30, 2013 3:24 pm

Re: How to insert images and/or textbox on different pages ?

Postby amy.zhao » Thu Jun 06, 2013 9:15 am

Hello,

We have fixed TextWrappingStyle property of textbox. Our dev team will do some tests for the fix.
Once the fix is ok, we will release a new version and tell you.

Regards,
Amy
E-iceblue support team
User avatar
amy.zhao
 
Posts: 2251
Joined: Wed Jun 27, 2012 8:50 am

Re: How to insert images and/or textbox on different pages ?

Postby crfo23 » Tue Jun 11, 2013 1:48 pm

Thanks again.
crfo23
 
Posts: 6
Joined: Thu May 30, 2013 3:24 pm

Re: How to insert images and/or textbox on different pages ?

Postby amy.zhao » Mon Jun 17, 2013 7:20 am

Hello,

Thanks for your waiting.
The new version has been released. Please download and test Spire.Doc Pack (Hot Fix) Version:4.9.4.
http://www.e-iceblue.com/Download/download-word-for-net-now.html

Best regards,
Amy
E-iceblue support team
User avatar
amy.zhao
 
Posts: 2251
Joined: Wed Jun 27, 2012 8:50 am

Re: How to insert images and/or textbox on different pages ?

Postby Gary.zhang » Tue Jun 18, 2013 8:45 am

Hello,

Have you tested the hotfix? Has the issue been resolved? Could you please update the thread if convenience?

If there are any questions, welcome to get it back to us.

Sincerely,
Gary
E-iceblue support team
User avatar
Gary.zhang
 
Posts: 1390
Joined: Thu Apr 04, 2013 1:30 am

Re: How to insert images and/or textbox on different pages ?

Postby crfo23 » Mon Jun 24, 2013 1:30 pm

I haven't tested, but when I was having this issue, I had to find a different way or solving my problem, so that's what I did. If I have to need to use the textwrapping in the future, I will surely do it.

Thanks
crfo23
 
Posts: 6
Joined: Thu May 30, 2013 3:24 pm


Return to Spire.Doc

Who is online

Users browsing this forum: No registered users and 0 guests