PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Fri Mar 29, 2024 11:17 am

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Cell Spacing issue
PostPosted: Tue Nov 29, 2016 3:17 pm 
Offline

Joined: Tue Nov 29, 2016 3:13 pm
Posts: 5
How to add spacing between the border of cells


Top
 Profile  
Reply with quote  
 Post subject: Re: Cell Spacing issue
PostPosted: Tue Nov 29, 2016 3:23 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
Hi!
Welcome to the forum!

maqsood wrote:
How to add spacing between the border of cells
I'm afraid I don't get the point (pun intended).
Maybe show a picture or give some explanation.

And we can only show you how to add spacing using MigraDoc directly (without invoking XLST).

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject: Re: Cell Spacing issue
PostPosted: Tue Nov 29, 2016 3:38 pm 
Offline

Joined: Tue Nov 29, 2016 3:13 pm
Posts: 5
Sorry for the vague question.

i am using xslt to generate tables but i want to add border spacing between cells. I am currently able to generate table like this. i hope you got the idea.


Attachments:
File comment: the above one i am currently getting and i want to draw the second table
Capture.PNG
Capture.PNG [ 4.93 KiB | Viewed 7537 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: Cell Spacing issue
PostPosted: Tue Nov 29, 2016 4:57 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
With MigraDoc, the border is between cells. There is no way to automatically duplicate the borders to have space between borders.

You can add dummy rows and dummy columns to your table to create that effect: set borders around the "content cells" and leave the "dummy cells" without border.
This allows you to get the effect from your image (lower part).

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
 Post subject: Re: Cell Spacing issue
PostPosted: Tue Nov 29, 2016 6:58 pm 
Offline

Joined: Tue Nov 29, 2016 3:13 pm
Posts: 5
yes i did the same thanks for the answer.


Top
 Profile  
Reply with quote  
 Post subject: Re: Cell Spacing issue
PostPosted: Mon Dec 05, 2016 12:32 pm 
Offline

Joined: Tue Nov 29, 2016 3:13 pm
Posts: 5
Hello Again

I have created the dummy cells but for some cell i want to reduce the width & height to let say 0.1mm (if increase the size it is showing the desired result). however the width & height is not change i assume is there any restriction on the minimum width & height like we cannot reduce not more than "X" value.

As you can see in the attached image this is the minimum height i can achieve. however i want to reduce it further . is there any way as giving the height is not working in this case.

Ps: i am talking about the height of dummy row between the two rows with border.


Attachments:
Capture.PNG
Capture.PNG [ 14.45 KiB | Viewed 7507 times ]
Top
 Profile  
Reply with quote  
 Post subject: Re: Cell Spacing issue
PostPosted: Mon Dec 05, 2016 1:47 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3095
Location: Cologne, Germany
I see you already found this old thread:
http://forum.pdfsharp.de/viewtopic.php?f=2&t=2812

There they say there is a minimum height for dummy rows.

Maybe you can get a smaller height by changing some properties. The font size for the dummy paragraph can be reduced (e.g. "0.01"), the height of the dummy paragraph can be reduced further ("0.02mm").
I'm not sure if Cell or Row have some properties like Margin, Spacing, or such.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 171 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group