|
| [WD20] How to create a report and save it to database. |
| Iniciado por guest, 20,abr. 2015 21:44 - 4 respuestas |
| |
| | | |
|
| |
| Publicado el 20,abril 2015 - 21: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)? |
| |
| |
| | | |
|
| | |
| |
| Publicado el 20,abril 2015 - 22:25 |
Hi Curtis
yes you can absolutely print it as pdf then save it inside a blob field into the DB
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 20,abril 2015 - 22:39 |
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:\ est.pdf") iPrintReport(RPT_Form2000) //HLinkMemo() code
I need to figure out how to save an opened report using code. |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,abril 2015 - 11:26 |
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/…
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/…
- 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: <a class="ExternalLink" rel="nofollow" target="_blank" href="http://help.windev.com/en-US/?1000018845&name=iparameterduplicate_function">http://help.windev.com/en-US/…</a>
Once again, that answer was available in the list of printing functions
Best regards |
| |
| |
| | | |
|
| | |
| |
| Publicado el 21,abril 2015 - 17:32 |
| Well, I vastly over complicated that. Thank you for spelling it out slowly for me! |
| |
| |
| | | |
|
| | | | |
| | |
|