G
Guest
Hi
I need help to Print Pdf File directly
without preview from client side
To solve problem I used
This C# code
Response.Buffer = true;
Response.ClearContent();
Response.ClearHeaders();
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = "application/pdf";
Response.BinaryWrite(memStream.ToArray());
Response.End();
and how you can see
I Clean response and Use BinaryWrite
so I don't know how to insert this html code
<script language="javascript">
window.print();
</script>
I tried also with frameset (don't work)
and I tried also
with
<script language="javascript">
var oWnd = window.open("TestPrint.Aspx", "tstPrint");
oWnd.print();
</script>
it shows message "file TestPrint.Aspx not found".
Can you help me????
Thanks in advance!!!
Bye bye
I need help to Print Pdf File directly
without preview from client side
To solve problem I used
This C# code
Response.Buffer = true;
Response.ClearContent();
Response.ClearHeaders();
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = "application/pdf";
Response.BinaryWrite(memStream.ToArray());
Response.End();
and how you can see
I Clean response and Use BinaryWrite
so I don't know how to insert this html code
<script language="javascript">
window.print();
</script>
I tried also with frameset (don't work)
and I tried also
with
<script language="javascript">
var oWnd = window.open("TestPrint.Aspx", "tstPrint");
oWnd.print();
</script>
it shows message "file TestPrint.Aspx not found".
Can you help me????
Thanks in advance!!!
Bye bye