Hi, I am using v8.3p_2013-03-13/Pro Development Only (built 2013-03-13).
I have a couple of questions regarding exporting to PDF in Smart Client. I am trying to understand when I can just use exportContent in JS versus using PDFExport on the server side. Could you also help identify which (if any) of these items are bugs and which are features that are not implemented?
1. I am trying to omit and include controls in an exported PDF. I tried calling exportContent() with an array of Canvas as the first argument, but this doesn't work since exportContent() only seems to take a Canvas as an argument.
I also tried calling getPrintHTML() and passing in printProperties with omit and included controls, but the returned HTML in the callback function always returns ALL the HTML regardless (including buttons and tabs) and ignoring the printProperties set. How do I go about omitting and including controls in the PDF?
2. I want to generate the PDF in Landscape since the content is too wide to fit nicely in Portrait. How would I do this?
3. Looks like I can't set exportDisplay to be window instead of download. Is this not supported now from the client side? Is there some way to do this on the server side using PDFExport?
I have a couple of questions regarding exporting to PDF in Smart Client. I am trying to understand when I can just use exportContent in JS versus using PDFExport on the server side. Could you also help identify which (if any) of these items are bugs and which are features that are not implemented?
1. I am trying to omit and include controls in an exported PDF. I tried calling exportContent() with an array of Canvas as the first argument, but this doesn't work since exportContent() only seems to take a Canvas as an argument.
I also tried calling getPrintHTML() and passing in printProperties with omit and included controls, but the returned HTML in the callback function always returns ALL the HTML regardless (including buttons and tabs) and ignoring the printProperties set. How do I go about omitting and including controls in the PDF?
2. I want to generate the PDF in Landscape since the content is too wide to fit nicely in Portrait. How would I do this?
3. Looks like I can't set exportDisplay to be window instead of download. Is this not supported now from the client side? Is there some way to do this on the server side using PDFExport?
Code:
isc.Button.create({ ID: "pdfPrint", title: "Export PDF", left:25, top: 16, width: 90, click:function () { var printProperties = { omitControls: [TabSet], printForExport: true }; var settings = { skinName: "SilverWave", exportFilename: "export", exportDisplay: "window"//Doesn't work }; pageLayout.getPrintHTML(printProperties, function(HTML) { exportHTMLCanvas.setContents("<div id='pageHeader'>My header</div>" + HTML); isc.RPCManager.exportContent(exportHTMLCanvas, settings); }); } });
Comment