PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sat Jun 15, 2024 9:05 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 3 posts ] 
Author Message
PostPosted: Sat Oct 17, 2009 3:38 pm 
Offline

Joined: Sat Oct 17, 2009 3:30 pm
Posts: 3
I am rendering using pdfSharp, but creating the document usinf Migra
I cannot seem to get a table into a textframe...

I add a 2 column, 1 row table to a section
in cell 0 I have my logo
in cell 1 I have a textframe like Dim tf As TextFrame = rowTop.Cells(1).AddTextFrame()

i can do a tf.AddParagraph("sometext here")
and it works. it shows the logo in cell 0 and this text in cell 1.

i am trying to emulate a credit card statement (in a way) with the logo on left and a small table next to it with 5 or 6 rows of information in 2 columns

how do I add a table to cell 1? I tried tf.addtable() and that didn't seem to work. I couldn't seem to find any examples of how to accomplish this

I am very new to Migra/Pdf Sharp


Top
 Profile  
Reply with quote  
PostPosted: Mon Oct 19, 2009 8:17 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3100
Location: Cologne, Germany
viewtopic.php?f=2&t=314&hilit=AddTextFrame
viewtopic.php?f=2&t=848&hilit=AddTextFrame

Maybe you can solve that problem with a single table using MergeDown and/or MergeRight.
That's what I'd try first.

You can reserve one column for the logo and use MergeDown to have that logo span several or all rows of the table.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Wed Oct 21, 2009 11:44 am 
Offline

Joined: Sat Oct 17, 2009 3:30 pm
Posts: 3
I used the example in the second link you provided to do what I wanted. It did show how to add a textframe then a table to that textframe. Exactly what I was looking for to build my invoice.

A logo on the left and a small table (6 rows) on the right. A merge wouldn't work in this case (good idea though) as the main table (2 cols, 1 row), holds the logo and second table (inside a textframe). I had some space restrictions to contend with

Now I have a logo and my little table next to the logo.

Thanks.....


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

All times are UTC


Who is online

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