Problem with Crystal reports dynamic printing in .net
-
Hi All I have written a program in vb.net 2005 for generating dynamic reports from SQLserver 2000 , the report generates successfuly but when it goes for printing with a network printer that I specify it programaticaly I get this error : Erorr in file E:/DOCUMEN~1/admin/LOCAL~1/Temp/temp_4fc557_33455ed_{asd33dh3_dsd}.rpt :unable to connect : incorrect logon parametrs The code that I using for printing is : Dim m AsNew A4Bill m.PrintOptions.PrinterName = "\\Arash\Microsoft Office Document Image Writer" Try m.PrintToPrinter(1, False, 0, 1) Catch ex As Exception message.Text = ex.Message EndTry Thanks for your Help Arash Rajaei
-
Hi All I have written a program in vb.net 2005 for generating dynamic reports from SQLserver 2000 , the report generates successfuly but when it goes for printing with a network printer that I specify it programaticaly I get this error : Erorr in file E:/DOCUMEN~1/admin/LOCAL~1/Temp/temp_4fc557_33455ed_{asd33dh3_dsd}.rpt :unable to connect : incorrect logon parametrs The code that I using for printing is : Dim m AsNew A4Bill m.PrintOptions.PrinterName = "\\Arash\Microsoft Office Document Image Writer" Try m.PrintToPrinter(1, False, 0, 1) Catch ex As Exception message.Text = ex.Message EndTry Thanks for your Help Arash Rajaei
Hey there was a default field for printing the reports in crystal report viewer. Then why are u trying for generating ur own print method.
Janani