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.

Sat Feb 02, 2013 12:27 pm

Hello,

I have a problem. I build with Spire.Doc a table. The border style is None. The Word Document shows the table correct with no border. But if I save the document with Spire to PDF the table-boarder is displayed. (See screenshot)

Do you have a code snipped, which shows me, how I can set the border correct? I need a table without a border.

Thank you.

MarcH
 
Posts: 2
Joined: Thu Apr 05, 2012 11:35 am

Sun Feb 03, 2013 2:38 pm

Hello Marc,

Thanks for your inquiry.
Please try to use Section.AddTable(false); method, as shown the code snippet below.
We use Spire.Doc Pack (Hot Fix) Version:4.6.15(the download link is http://www.e-iceblue.com/Download/download-word-for-net-now.html) to do some tests. It works well on our side.
Please tell us if you still have the problem after finish the test.

code:
Document document = new Document();
Section section = document.AddSection();
Table table =section.AddTable(false);

Thanks &Best Regards,
Amy
E-iceblue support team
User avatar

amy.zhao
 
Posts: 2766
Joined: Wed Jun 27, 2012 8:50 am

Return to Spire.Doc