Hey all.. In one of my webpage, ive created this letter.. How can i just print the letter and not the whole page? im using VB.NET language.. please help asap.. tks!
printing dilemma
Collapse
X
-
Use CSS2 to format how your page will be printed.
See the W3C website for a reference on Print CSS2.
-FrinnyComment
-
Originally posted by FrinavaleUse CSS2 to format how your page will be printed.
See the W3C website for a reference on Print CSS2.
-Frinny
The letter contains variables..Comment
-
Originally posted by miraincBut first of all how can i get the letter to appear in a pop up window when a button is clicked?
The letter contains variables..
Then for the button add some JavaScript that will open that page in the browser....
EG:
[code=vbnet]
myPrintButton.A ttributes.Add(" onclick","JavaS cript:window.op en(""" + "ThePrintPage.a spx""" + ",""""+"prinit" "" + ",""" + "toolbar=no,men ubar=no,width=8 50,height=500,r esizable=yes,sc rollbars=yes""" + ");return false;")[/code]
The "return false" prevents the page from posting back to the server.
-FrinnyComment
Comment