PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Apr 28, 2024 5:25 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Fri Mar 20, 2015 7:12 am 
Offline

Joined: Wed Mar 18, 2015 10:14 am
Posts: 2
Hello everybody,

i am new with pdfsharp & migradoc and i am posting here in order to get illuminated :idea: with following task:

I use textframes for vertical text in a table but i don't get the text/textframes aligned right or in center horizontally.

Maybe you know a similiar posting / a simple solution for this; unfortunately i didn't find a fitting solution yet.

If you need further information, don't hesitate contacting me/posting.

Thx,
Yipman


Top
 Profile  
Reply with quote  
PostPosted: Fri Apr 03, 2015 10:24 am 
Offline

Joined: Wed Mar 18, 2015 10:14 am
Posts: 2
For those who have a similiar problem:

cell = row.Cells[11];
tfVertical = cell.AddTextFrame();
tfVertical.Orientation = TextOrientation.Upward;
paragraph.Format.SpaceBefore = "0.23cm";
paragraph.Format.Font.Size = 11;
paragraph.AddFormattedText("Kilometer", TextFormat.Bold);
tfVertical.Add(paragraph.Clone());
tfVertical.Width = 25;
tfVertical.LineFormat.Width = 0;
tfVertical.Height = 110;


Attachments:
File comment: Solved/after
after.PNG
after.PNG [ 1.76 KiB | Viewed 4320 times ]
File comment: Problem/before
before.PNG
before.PNG [ 1.73 KiB | Viewed 4320 times ]
Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 303 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