Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > OnAfterPrint cannot work

Reply
Thread Tools

OnAfterPrint cannot work

 
 
ELF
Guest
Posts: n/a
 
      02-02-2004
cannot using onAfterPrint in IE 6.0, the page can print but cannot close.
Why??
my code like as below

<body onAfterPrint="window.close();">
:
<script language="javascript" type="text/javascript">
<!--
window.print();
//-->
</script>
</body>


 
Reply With Quote
 
 
 
 
Ray at
Guest
Posts: n/a
 
      02-02-2004
Try asking in a client-side group such as m.p.scripting.jscript. This group
focuses on server-side programming.

--

Ray at home
Microsoft ASP MVP


"ELF" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> cannot using onAfterPrint in IE 6.0, the page can print but cannot close.
> Why??
> my code like as below
>
> <body onAfterPrint="window.close();">
> :
> <script language="javascript" type="text/javascript">
> <!--
> window.print();
> //-->
> </script>
> </body>
>
>



 
Reply With Quote
 
 
 
 
ELF
Guest
Posts: n/a
 
      02-02-2004
thx~~

"Ray at <%=sLocation%> [MVP]" <myFirstNameATlane34dotKOMM> wrote in message
news:(E-Mail Removed)...
> Try asking in a client-side group such as m.p.scripting.jscript. This

group
> focuses on server-side programming.
>
> --
>
> Ray at home
> Microsoft ASP MVP
>
>
> "ELF" <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed)...
> > cannot using onAfterPrint in IE 6.0, the page can print but cannot

close.
> > Why??
> > my code like as below
> >
> > <body onAfterPrint="window.close();">
> > :
> > <script language="javascript" type="text/javascript">
> > <!--
> > window.print();
> > //-->
> > </script>
> > </body>
> >
> >

>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Cannot Copy Assembly <MyAssembly> The Process Cannot Access The File Because It Is Being Used By Another Process Ram ASP .Net 2 06-30-2005 11:30 AM
Cannot delete file from webserver...... process cannot access style error news.microsoft.com ASP .Net 4 01-10-2005 06:07 AM
How to capture WebBrowser's OnAfterPrint event in C++? Carl Manson C++ 0 11-10-2004 10:31 AM
Browser cannot find any server anymore after 5 minutes of normal activity (" The page cannot be displayed ") reply@newsgroup.please Computer Support 6 01-05-2004 04:03 AM
The file 'bin\WebProj.dll' cannot be copied to the run directory. The requested operation cannot be performed on a file with a user-mapped section open. J Gao ASP .Net 0 07-28-2003 04:18 PM



Advertisments