Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2018
    Posts
    4

    Post Fatal Scripting Error:Unable to create report

    I would like to compare two excel file which is xls file. I would like to generate interleaved HTML report as I can did through UI.

    My scripts content is data-report layout:interleaved options:ignore-unimportant output-to:"%3" "%1" "%2"
    The command line is
    BComp.com @"c:\scripts.txt "c:\a.xls" "c:\b.xls" report.html

    However I encounter problem that "Unable to create report". Could you please help me out?

  2. #2
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,829

    Default

    Hello,

    It looks like you are missing a quote in the command line at the end of the c:\scripts.txt". And where would you like to generate report.html? Where is the command line running, or would it be better to designate a full path ("c:\bcreports\report.html")?
    Aaron P Scooter Software

  3. #3
    Join Date
    Apr 2018
    Posts
    4

    Default

    Thanks Aaron. The "Unable to create report" issues are resolved. But the report was ugly. Can I have report like UI did?
    For UI, I chosed interleaved and HTML report from Table Compare report. What I should change scripts"data-report layout:interleaved options:ignore-unimportant output-to:"%3" "%1" "%2""

  4. #4
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,829

    Default

    Hello,

    Yes, I think you need to add output-options:html-color

    data-report layout:interleaved options:ignore-unimportant output-to:"%3" output-options:html-color "%1" "%2""
    Aaron P Scooter Software

  5. #5
    Join Date
    Apr 2018
    Posts
    4

    Default

    Thanks Aaron. It can works. Can I add some parameter into options only show the results Left have, right don't have? Current modification will be showed up even I added ignore-unimportant

  6. #6
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,829

    Default

    Hello,

    Not in scripting. The only options are listed in the Help file -> Scripting Reference chapter -> Data-report paragraph.

    In the graphical interface, you can right click the Display Filters, switch to Toggles mode, and you can set the toggles mode to specific layout, which the Session menu -> Data Compare Report will then default to using.
    Aaron P Scooter Software

  7. #7
    Join Date
    Apr 2018
    Posts
    4

    Default

    Thanks Aaron. Do you means that make configuration and run scripting can call default setting? Through GUI, it can work as your guide now.

  8. #8
    Join Date
    Oct 2007
    Location
    Madison, WI
    Posts
    11,829

    Default

    Hello,

    Unfortunately, no. Scripting has explicit commands that determine which display filter set is used, and we do not have the gradient toggles-like options available in scripting. It's something on our wishlist to expand these options (and I had already added your notes to our entry on the subject).
    Aaron P Scooter Software

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •