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.

Wed Jul 30, 2014 12:04 pm

Gary,

we are using VS2010 professional

The word version is 2007. The margins and region/langauage is shown in the attached screenshots within a word document.

Thanks

Shaun

shaun
 
Posts: 16
Joined: Fri Mar 14, 2014 2:58 pm

Thu Jul 31, 2014 6:38 am

Hello,

Thanks for your response.
We have found some information on surfing that the default normal margin seems to be as below, so we suppose that you may change the margin of the template document(Normal.dotm). And our product also write the rtf document as the default value as below when saved, so after you saved, the margin of the rtf document has changed. We will adjust the codes to apply to the case in next version.
Code: Select all
Top:2.54cm; bottom: 2.54cm;
Left:3.18cm; Right:3.18cm;

If there are any quetions, welcome to get it back to us.
Sincerely,
Gary
E-iceblue support team
User avatar

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

Thu Jul 31, 2014 8:51 am

Gary,

So you are saying that the Spire.Doc component uses the default values for the margin from the Normal.dotm file and not the margin of the uploaded file in the Spir.Doc component.

The issue we will have is that we need to have the same document margin from the uploaded margin and not from a defaulted value. We will be converting lots of different files with different margins so we can't have this hard coded.

I have looked at our template files and removed the only one which had Office 2003 margins. Unfortnately we are still getting the incorrect margins and not the margin of the original uploaded file.

Do we have an idea when there will be an hot fix for this issue.


Shaun

shaun
 
Posts: 16
Joined: Fri Mar 14, 2014 2:58 pm

Thu Jul 31, 2014 9:33 am

Hello,

Thanks for your quick response.
As a matter of fact, our Dev team checked that there are no any margins are set in the rtf file(fail_rtf.rtf) you provided, the margins you see when you open the rtf file is the margin of the template in your computer. If there is no any margins in the file, currently the margins in generated rtf file with our component will be set as the office default margins(Top:2.54cm; bottom: 2.54cm; Left:3.18cm; Right:3.18cm;), if set, our component will use the set margins. In the next version, if there is no any margins are set, it will be set according to the template in your system you set.
Sorry that we can't get you any timeline about the next hotfix. As soon as there are any update, we would be more than happy to update you.
Sincerely,
Gary
E-iceblue support team
User avatar

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

Thu Aug 28, 2014 9:21 am

Hello,

The newest hotfix of Spire.Doc has been released, please download Spire.Doc Pack(hot fix) Version:5.2.29 and try it.
If there are any questions, welcome to get it back to us.
Sincerely,
Gary
E-iceblue support team
User avatar

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

Return to Spire.Doc