Diese Seite mit anderen teilen ...

Informationen zum Thema:
Forum:
WinDev Forum
Beiträge im Thema:
5
Erster Beitrag:
vor 3 Jahren, 2 Monaten
Letzter Beitrag:
vor 3 Jahren, 2 Monaten
Beteiligte Autoren:
Curtis, Fabrice Harari

[WD20] How to create a report and save it to database. [SOLVED]

Startbeitrag von Curtis am 20.04.2015 19:44

How can I programatically save a newly created report to the database?

I have a transport form that gets filled out with data I give it. Once the report has all been filled out, how do I save it by programming? iDestination(iPDF)?

Antworten:

Re: [WD20] How to create a report and save it to database.

Hi Curtis

yes you can absolutely print it as pdf then save it inside a blob field into the DB

Best regards

von Fabrice Harari - am 20.04.2015 20:25

Re: [WD20] How to create a report and save it to database.

How could I do this in the 'After printing BODY' event once all my iteration blocks have run?

//After printing BODY (of RPT_Form2000)
iDestination(iPDF,"C:\test.pdf")
iPrintReport(RPT_Form2000)
//HLinkMemo() code

I need to figure out how to save an opened report using code.

von Curtis - am 20.04.2015 20:39

Re: [WD20] How to create a report and save it to database.

Hi Curtis,

First, you should know that there is always in the help a page listing all the functions about a subject. In this case printing :
http://help.windev.com/en-US/?3046065&name=Print_functions

When I don't know how to do something, I stat by reading this list and I generally find the function right there...

Second, to answer your specific question:

- I wouldn't try to do that from INSIDE the report... Instead, I would print the report, then print it again as pdf (or print it as pdf first, use the pdf as preview for the user then print it on paper)
To do that, I would use some of the functions listed in the page above, like by example http://help.windev.com/en-US/?3046029&name=idocumentprinted_function

- Now of course, that is if you want to have a PDF as a stored document. Windev also includes a native DUPLICATE function, but the resulting file is viewable only in windev. See here for details: http://help.windev.com/en-US/?1000018845&name=iparameterduplicate_function

Once again, that answer was available in the list of printing functions

Best regards

von Fabrice Harari - am 21.04.2015 09:26

Re: [WD20] How to create a report and save it to database.

Well, I vastly over complicated that. Thank you for spelling it out slowly for me!

von Curtis - am 21.04.2015 15:32
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.