Is there a way to disable the print button, and the file --> Print feature when one of my web page loads?
Thanks
Printable View
Is there a way to disable the print button, and the file --> Print feature when one of my web page loads?
Thanks
No.
Other than popping a new browser window via javascript without the toolbar or menu bar.
How would I go about doing that? Currently I am using Response.Redirect("CrystalViewer.aspx"). How could I do this using java? Currently I know vb in .net fairly well but am not very proficient with java still.
Thanks
Bump
Its not foolproof mind you... depending on security settings and the individual browser, you may still find a print option.
Btw, its not JAVA, its javaScript... javaScript has more in common with vbScript than with Java.
Anyway...
Code:window.open('crystalviewer.aspx','report','width=400,height=400,toolbar=no,menu=no,titlebar=no,status=no');
nemaroller, thanks for you help so far.
I tried to create a function that I call from my code behind but it is causing an error. Here is the code.VB Code:
<script language="javascript" type="text/javascript"> function ReportOpen {window.open('crystalviewer.aspx', 'Report', 'width=400, height=400, toolbar=no, menu=no, titlebar=no status=no');}</script>
Any ideas on what I'm doing wrong?
Thanks
You're missing the parameters enclosure after your function nameCode:<script language="javascript" type="text/javascript">
function ReportOpen()
{
window.open('crystalviewer.aspx', 'Report', 'width=400, height=400, toolbar=no, menu=no, titlebar=no status=no');
}
</script>
().
Looks like I might have the Function created properly, now I'm having a hard time getting the button to run the function.
Here is my revised function code.This does not cause an error on the page. If it is right or not, I do not know.VB Code:
<script language="javascript" type="text/javascript"> function ReportOpen() {window.open('crystalviewer.aspx', 'P & L', 'Toolbar=no');} </script>
Here is my code that does not run the funtion that I created.
VB Code:
Button1.Attributes.Add("onclick", "ReportOpen(); ")
Yea, I figured that out right after I sent the post. I still can't get it to open the report though...VB Code:
Button1.Attributes.Add("onclick", "ReportOpen(); ")