Hi there,
I am using "printWindow" for preview and print functionality. When I print using the "print" button in that window, the font size seem to go very small in the output and printWindow seems to discard the css in the HTML page.
Here is a quick & dirty test case:
This does not happen when I open the article in a separately and print using browser's print button. So I feel that printWindow is overriding the page style information.
Any ideas on how to fix this?
Thanks in advance!
I am using "printWindow" for preview and print functionality. When I print using the "print" button in that window, the font size seem to go very small in the output and printWindow seems to discard the css in the HTML page.
Here is a quick & dirty test case:
Code:
isc.HTMLFlow.create({
ID:"Article",
autoDraw:false,
evalScriptBlocks: false,
captureSCComponents: true,
dynamicContents: true,
contentsType: "fragment",
contentsURL:"http://en.wikipedia.org/wiki/Ajax_%28programming%29"
});
isc.VLayout.create({
members:[Article],
height:"100%",
ID:"ArticleLayout",
width:"100%",
autoDraw:true
});
isc.PrintWindow.create({
ID:"previewPane",
width:600,
height:600,
bodyStyle:"font-size:20px",
overflow:"auto",
autoSize:false,
autoDraw:false
});
isc.Button.create({
ID:"createBtn",
name:"Print btn",
title:"Print Preview",
click:"previewPane.showPrintPreview(Article);"
});
Any ideas on how to fix this?
Thanks in advance!
Comment