Diese Seite mit anderen teilen ...

Informationen zum Thema:
WinDev Forum
Beiträge im Thema:
Erster Beitrag:
vor 1 Jahr, 8 Monaten
Letzter Beitrag:
vor 1 Jahr, 8 Monaten
Beteiligte Autoren:
Allard, Peter Holemans, Fabrice Harari

Print a page WB21 ( invoice)

Startbeitrag von Allard am 27.10.2016 08:13


Does anybody know how to print a webdev page.

Iam testing options. I would ,like to be able to print an invoice to pdf. Ok normaly use the reports for that. But I need the user be able to move / reposition blocks in the invoice. They have to be able to do some customisation

Iam working on a webversion of my windows app. In that app users can use reports and queries to make a template of an invoice.
That is notpossible in webdev so have any of you done sutch a thing and if so what did you do, maybe tell in short how it is done would be greatly appreciated



Hi Allard

To create your own invoice editor, you can use the cloning and repositioning functions.

- If you only want to re-position existing blocks, then it's even simpler.
- Put each block inside a cell. Make that cell movable by the user in its properties...
- Add some code to verify that the resulting position is correct (ie not overlapping, by example)
- on a validate button (it can be outside screen with a keyboard shortcut), check everything is okay and store the X/Y position of each cell in pixels.
- Use that information to calculate the corresponding positions in your report in mm.

I'm not sure if you can change the block position in the report (from the report editor), but you can do that easily with the low level printing functions (iPrint, iLine, etc)

Best regards

von Fabrice Harari - am 27.10.2016 08:59
Hi Allard,

I have such a solution written in WebDev that allows a user to define templates that can be fed from any SQL data source. It can include image files, html rich text, attach PDF files and will generate the final documents to RTF and/or PDF documents based on the HTML sources and the other resources (using external .Net libraries).

All is kept in a database so that when a user regenerates the print for a specific document, the latest data is being retrieved again from the data source (typically an external ERP system) BUT, all the modifications and additions made by the user during a previous document generation for that specific document (Purchase Order/Invoice) are parsed again into the layout.

PM me if you want to get some more information on it...

Best regards,

Peter Holemans

von Peter Holemans - am 27.10.2016 09:45
sent you a pm

von Allard - am 27.10.2016 10:52
Zur Information:
MySnip.de hat keinen Einfluss auf die Inhalte der Beiträge. Bitte kontaktieren Sie den Administrator des Forums bei Problemen oder Löschforderungen über die Kontaktseite.
Falls die Kontaktaufnahme mit dem Administrator des Forums fehlschlägt, kontaktieren Sie uns bitte über die in unserem Impressum angegebenen Daten.