Click here to Skip to main content
16,006,341 members
Home / Discussions / Web Development
   

Web Development

 
QuestionHTML - What is this called, how do I do it? Pin
code-frog7-Jul-05 11:00
professionalcode-frog7-Jul-05 11:00 
AnswerRe: HTML - What is this called, how do I do it? Pin
sammyl3310-Jul-05 14:30
sammyl3310-Jul-05 14:30 
GeneralRe: HTML - What is this called, how do I do it? Pin
code-frog10-Jul-05 16:44
professionalcode-frog10-Jul-05 16:44 
AnswerRe: HTML - What is this called, how do I do it? Pin
J4amieC10-Jul-05 23:48
J4amieC10-Jul-05 23:48 
Generalpostback Pin
Ahmed Galal7-Jul-05 7:17
Ahmed Galal7-Jul-05 7:17 
GeneralRe: postback Pin
minhpc_bk8-Jul-05 0:28
minhpc_bk8-Jul-05 0:28 
GeneralRe: postback Pin
Ahmed Galal8-Jul-05 0:42
Ahmed Galal8-Jul-05 0:42 
GeneralSuppressing header footer on print. Pin
Member 20953326-Jul-05 20:18
Member 20953326-Jul-05 20:18 
hi all,

The present functionality is,
that there is a button to open a document in word and then we manually press file>print.
Required functionality is, there needs to be a button which will just print the page and close it, without displaying the page.

so, i'm opening the web page using:

<code>window.open(url ,null,"top=2000,left=2000");</code>

so its not visible to the client, and onload of the form i'm giving a call to window.print(), then window.close().

also, i need to print a web page with out the header and footer on click of a button.

i tried suppressing header and footer using the following script, but not able to use, since it requires ActiveX on client machine enabled/prompt.

<code>Set WSHShell = CreateObject("WScript.Shell")
myHeader = WSHShell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup\header")
myFooter = WSHShell.RegRead("HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup\footer")
WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\PageSetup\header", ""
WSHShell.RegWrite "HKCU\Software\Microsoft\Internet Explorer\PageSetup\footer", ""</code>

[a web page containing 3 frames, has a central frame conataining page to be printed.]

1. can i suppress the users header footer settings in some other way?
2. if i need to use the above script, can i detect the client machine's activeX settings somehow and show a message that they need to enable it in order to print?

HELP!!
Confused | :confused:


regards,
Manisha
GeneralRe: Suppressing header footer on print. Pin
Guffa7-Jul-05 8:36
Guffa7-Jul-05 8:36 
QuestionBots for online game? Pin
proach6-Jul-05 12:44
proach6-Jul-05 12:44 
GeneralAsp.net + Javascript Combination Pin
just4ulove76-Jul-05 7:28
just4ulove76-Jul-05 7:28 
GeneralRe: Asp.net + Javascript Combination Pin
Christian Graus6-Jul-05 11:31
protectorChristian Graus6-Jul-05 11:31 
GeneralComparing font size in IE Pin
llp00na6-Jul-05 6:03
llp00na6-Jul-05 6:03 
GeneralRe: Comparing font size in IE Pin
Guffa6-Jul-05 6:44
Guffa6-Jul-05 6:44 
GeneralRe: Comparing font size in IE Pin
llp00na6-Jul-05 8:06
llp00na6-Jul-05 8:06 
GeneralRe: Comparing font size in IE Pin
Guffa6-Jul-05 9:31
Guffa6-Jul-05 9:31 
Generaljavascript Pin
cmarmr6-Jul-05 4:00
cmarmr6-Jul-05 4:00 
GeneralRe: javascript Pin
Guffa6-Jul-05 6:48
Guffa6-Jul-05 6:48 
GeneralRe: javascript Pin
pigangel_yang28-Jul-05 17:51
pigangel_yang28-Jul-05 17:51 
GeneralRegular Expression Help Pin
Brian Van Beek5-Jul-05 4:30
Brian Van Beek5-Jul-05 4:30 
GeneralRe: Regular Expression Help Pin
mtone5-Jul-05 5:04
mtone5-Jul-05 5:04 
GeneralRe: Regular Expression Help Pin
Brian Van Beek5-Jul-05 5:53
Brian Van Beek5-Jul-05 5:53 
GeneralJavascript and Frames Pin
mtone5-Jul-05 3:17
mtone5-Jul-05 3:17 
GeneralRe: Javascript and Frames Pin
Guffa5-Jul-05 3:31
Guffa5-Jul-05 3:31 
GeneralRe: Javascript and Frames Pin
mtone5-Jul-05 3:49
mtone5-Jul-05 3:49 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.