Author: mezzanine74 | Posted on: 12/6/2009 5:05:24 AM | Views : 695

When i try to print a PDF file with the following code, i get this error. Could you please advise how can i fix it?
ERROR:
Server Error in '/' Application. No application is associated with the specified file for this operation CODE:
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Button1.Attributes.Add("onclick", "window.print();return false;") Dim p As New Process() p.StartInfo.Verb = "print" p.StartInfo.CreateNoWindow = False p.StartInfo.FileName = Server.MapPath("~/REQUESTS/Rus Finans - 52/22.01.08/pr 122 Lyublino.pdf") p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden p.Start() ...

Go to the complete details ...