With the actual report system, is possible to set the paper size and draw a report like an invoice?
thanks
Fabio
With the actual report system, is possible to set the paper size and draw a report like an invoice?
thanks
Fabio
Hi Phabio,
Yes. You can createObect("webview") and write html into it formatted in any way you want. The webview is not displayed as it has no parent. If you want to preview the report just parent it into a form object. The print() method provides the ability to set the paper size and select the printer or generate as a pdf. This is (should be) all documented on the wiki.
Principal developer of Lianja, Recital and other products
Follow me on:
Twitter: http://twitter.com/lianjaInc
Facebook: http://www.facebook.com/LianjaInc
LinkedIn: http://www.linkedin.com/in/barrymavin
ok,
thank you Barry.
Hi Fabio,
The arguments to webview.print() are listed in the Roadmap (search for 'Beta9 R5'). We'll get them added to the Webview Class wiki page.
Regards,
Yvonne
Ok,
I need to print report like this...
I think I'll wait for version 1.1 with the report designer ...
Hi Fabio,
Probably not that tricky as an rsp page actually. Just work out the table layout in html then pull in the data. It would be worth you having a look at the report.rsp script in the Library - that is simpler than yours, but shows how to integrate NoSQL/SQL data commands and html.
Regards,
Yvonne
any example is very welcome ..
now I'm very busy in my work on the main dynamics ax, but I can not wait to do more tests.
Hi Phabio,
easy enough to design in Dreamweaver CS6 (did one a little simpler for a project), and paste into an .rsp.
In fact, designing something like this is likely going to have to be done in a good HTML editor. I believe I put a post up here somewhere on how I separate the html and data merging, to keep it manageable (and updatable: I read the changed HTML and push it back into the .rsp automagically).
Hank
Hi Hank, thank you for the suggestion.
DreamWeaver is free?
or I have to spend $ 3-400 to draw a report?
If I have to draw a report with variable sections, I create many HTML and paste them in the report program?
thank
Fabio
PS:
your ERD?
Hi Fabio,
The post Hank mentions is here. In the same post, Barry also talks of using the <%@ include=... %> directive (to include code from another file - great if you have standard elements that you want to use in more than one report) and the <%=...%> directive to evaluate an expression and embed it directly in the html.
Putting my money where my mouth is and starting designing in ckeditor in a webview (as per Hank's post) then adding in a bit of CSS (check out Hank's other great recommendation for an online CSS editor here) and some NoSQL to grab the data and <%=...%> directives to include it in the html, I came up with the following:
Regards,
Yvonne
Bookmarks