PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Wed Oct 16, 2019 12:27 am

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: Mon Aug 19, 2019 10:11 am 
Offline

Joined: Sat May 18, 2019 2:35 pm
Posts: 3
Hi,
I am working with a pdf-Template which I try to fill out using a .net program.
This works fine for text fields.

Now I Need a table with 4 or 5 columns and 1 to 5 rows.

Is there a Chance to define the column Count via Software? If not one colume will be empty, not that Problem.

How can I fill out the PdsListBoxField?

I can locate the field, I have a .Value property, fine and how can I add data now?

Thanks for helping.

With best regards

Gerhard


Top
 Profile  
Reply with quote  
PostPosted: Mon Aug 19, 2019 5:13 pm 
Offline

Joined: Tue Sep 30, 2014 12:29 pm
Posts: 21
GerhardKreuzer wrote:
Now I Need a table with 4 or 5 columns and 1 to 5 rows.

Is there a Chance to define the column Count via Software? If not one colume will be empty, not that Problem.

How can I fill out the PdsListBoxField?

I'm a bit irritated by the mixing of the terms "Table" and "ListBox".
A ListBox has only one single column.
I think you need a single ListBox for each Column you want.
The items of the ListBoxes are the "Rows" of your Table.
There is currently no (easy) way for adding ListBoxes programmatically to the Pdf, so you will have to define them in your template.
Items of the ListBoxes can be specified with the /Opt Entry of the ListBox.
I recommend looking up the Pdf Reference available on Adobe's website and reading Chapter 12.7.4.4 (Choice Fields) for a detailed description.
You may also have to resize the fields to be able to display all items of the ListBox without having to scroll.


Top
 Profile  
Reply with quote  
PostPosted: Mon Aug 19, 2019 5:39 pm 
Offline

Joined: Sat May 18, 2019 2:35 pm
Posts: 3
Hi,

ok, sorry, here more Infos.

I made a template using Scribus. I put there a Listbox, because I didn't find something else.

What do I Need:
I Need a form, which Looks like a invoice, but no calculations needed. I have fixed fields and a table, with 5 columns and some rows, which count I don't now in advance.So the template can use this Count.

What have I done so far:
I have written a function, which creates a pdf from scratch. This is a Report, no need to have a template for it. So I have some knowledge using a table.

Now I Need something in between, a template with fields to fill out and a table containing some rows.

What I Need:
A good hint, where to start.

I ise pdfsharp and migroDoc.

With best regards

Gerhard


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 364 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