Announcement

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

    How to increase the font size in print preview?

    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:
    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);"
    	  });
    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!

    #2
    The print window is actually a separate window and loads only the skin_styles stylesheet from your skin. The simplest thing to do is take your print-specific styles and add them to this stylesheet.

    Comment


      #3
      Colors are still not picked up. Is there another place for print related css? How to get color css in the printwindow?

      Comment

      Working...
      X