Page 1 of 2 12 LastLast
Results 1 to 10 of 18

Thread: Report paper size

  1. #1
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893

    Report paper size

    With the actual report system, is possible to set the paper size and draw a report like an invoice?

    thanks
    Fabio

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,360
    Blog Entries
    22
    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

  3. #3
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893
    ok,
    thank you Barry.

  4. #4
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,913
    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

  5. #5
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893
    Ok,
    I need to print report like this...
    I think I'll wait for version 1.1 with the report designer ...
    Name:  Screenshot - 12_11_2013 , 16_19_10.jpg
Views: 1179
Size:  59.7 KB

  6. #6
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,913
    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

  7. #7
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893
    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.

  8. #8
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,189
    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

  9. #9
    Senior Member
    Join Date
    Feb 2012
    Location
    Rome - Italy
    Posts
    1,893
    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?

  10. #10
    Lianja Team yvonne.milne's Avatar
    Join Date
    Feb 2012
    Location
    Berkshire, UK
    Posts
    1,913
    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:

    Name:  invoice.jpg
Views: 1859
Size:  86.2 KB

    Regards,

    Yvonne

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us