Announcement

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

    Printing Window UI

    We are trying to estimate the amount of effort it would take to incorporate your printing functionality into our product. I tried with a simple test case that print a Window UI. I am already having some difficulties as it warps the window header to a height 3x its normal size. Is this "correct" behaviour? How do I stop it from doing that. Generally, we want the printout to look fairly close to what the user is seeing.

    I am using Firefox12 to test, SC 8.3 2013-07-17

    To run the testcase, load the sample. Click on "Show Window". In the popup click Print Preview. You'll see the window header is much bigger


    Code:
    isc.IButton.create({
        ID: "touchButton",
        width: 120,
        title: "Touch This"
    });
    
    isc.Label.create({
        left: 150,
        height: 20,
        contents: "<a href='http://www.google.com' target='_blank'>Open Google</a>"
    });
    
    isc.IButton.create({
        title: "Show Window",
        top: 35,
        left: 75,
        click : function () {
            touchButton.setTitle("Can't Touch This");
            modalWindow.show();
        }
    });
    
    isc.Window.create({
        ID: "modalWindow",
        title: "Modal Window",
        autoSize:true,
        autoCenter: true,
        isModal: true,
        showModalMask: true,
        autoDraw: false,
        closeClick : function () { touchButton.setTitle('Touch This'); this.Super("closeClick", arguments)},
        items: [ isc.IButton.create({
                autoDraw: true,
                title: "Print Preview",
                click: "isc.Canvas.showPrintPreview(modalWindow)"
            }),   
            isc.DynamicForm.create({
                autoDraw: false,
                height: 48,
                padding:4,
                fields: [
                    {name: "field1", type: "select", valueMap: ["foo", "bar"]},
                    {name: "field2", type: "date", title: "testing this label"},
                    {type: "button", title: "Done",
                     click: "modalWindow.hide();touchButton.setTitle('Touch This')" }
                ]
            })
        ]
    });

    #2
    By design, the printed output looks very different - interactive
    elements are removed, styling is simplified, values that are clipped in the interactive view and not clipped when printed, etc.

    However, looking at your test case it appears that there are some issues with the Window print HTML. We will take a look and follow up when we have more information on this.

    Regards
    Isomorphic Software

    Comment


      #3
      We've made a change to fix the problem where window header titles would fail to show up in print-view.
      This will be present in the next nightly build, dated July 17 or above.

      Regards
      Isomorphic Software

      Comment

      Working...
      X