Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Problem in printing DynamicForm with section

    Hello,

    I'm trying to print a DynamicForm with the SmartClient printing components, it is working fine in general except with a form which has an embedded section in it.

    Code:
    isc.DynamicForm.create({
        ID: "exampleForm",
        width: 250,
        wrapItemTitles: false,
        fields: [
            {name: "field1", title: "Field 1", type: "text"},
            {type: "canvas", name: "canvas",
                canvas: isc.DynamicForm.create({
                    styleName: "defaultBorder",
                    wrapItemTitles: false,
                    fields: [
                        {defaultValue: "Section", type: "section", sectionExpanded: true, width: "*", itemIds: ["field2"]},
                        {name: "field2", title: "Field 2", type: "text"}
                    ]
                })
            },
            {name: "field3", title: "Field 3", type: "text"}
        ]
    });
    
    isc.Button.create({
        left: 300,
        title: "Print",
        click: function () {
            isc.Canvas.showPrintPreview(exampleForm);
        }
    });
    The result is not as it should be (see formPrintPreview.png) :
    - "field2" is truncated
    - "field3" is included in the canvas used for the section.

    Smart Client 7/PowerEdition
    Firefox 3.5.x / IE 7

    Thank you
    Attached Files

    #2
    To compare, I just tried on your feature demo in version 8 by pasting my code in the "Hello world" example, the result is different and a bit better but still incomplete.

    Comment


      #3
      Thanks for the test case. We have now applied a fix for this issue. Please try with the next nightly build and let us know if you continue to see the bad printing appearance

      Thanks and regards

      Isomorphic Software

      Comment


        #4
        Originally posted by Isomorphic
        Thanks for the test case. We have now applied a fix for this issue. Please try with the next nightly build and let us know if you continue to see the bad printing appearance

        Thanks and regards

        Isomorphic Software
        I tested with the nightly build of march 8 and it works ok.

        However, we cannot currently upgrade to version 8.
        In order for us to provide a fix for our customers (on v7), could you provide a patch for us in version 7 ?

        Thank you

        Comment


          #5
          We've added patch code for both 7.0rc2 and 8.0 to the Addendums forum - see this thread: http://forums.smartclient.com/showthread.php?t=15857

          Comment

          Working...
          X