I would like to print my html page,
I can set htmlPrintDocumentSource.enableHeaderFooter to false , to hide the header and footer,
but they still hold the position , and will have white bar on the top and bottom .
how can I remove the header and footer ?
Windows Store Developer Solutions #WSDevSol || Want more solutions? See our blog, http://aka.ms/t4vuvz
we have set the margins to 0
var src = MSApp.getHtmlPrintDocumentSource(document);
src.leftMargin = src.rightMargin = 0;
src.topMargin = src.bottomMargin = 0;
src.enableHeaderFooter = false;
But it doesn't work , I guess that the header and footer were reserved.
Microsoft is conducting an online survey to understand your opinion of the Msdn Web site. If you choose to participate, the online survey will be presented to you when you leave the Msdn Web site.
Would you like to participate?