PDFsharp & MigraDoc Foundation
http://forum.pdfsharp.com/

Fill out a ListBoxFileld of a pdf-template
http://forum.pdfsharp.com/viewtopic.php?f=2&t=4004
Page 1 of 1

Author:  GerhardKreuzer [ Mon Aug 19, 2019 10:11 am ]
Post subject:  Fill out a ListBoxFileld of a pdf-template

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

Author:  (void) [ Mon Aug 19, 2019 5:13 pm ]
Post subject:  Re: Fill out a ListBoxFileld of a pdf-template

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.

Author:  GerhardKreuzer [ Mon Aug 19, 2019 5:39 pm ]
Post subject:  Re: Fill out a ListBoxFileld of a pdf-template

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

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/