Data Connectivity
 Crystal Reports Forum : Crystal Reports for Visual Studio 2005 and Newer : Data Connectivity
Message Icon Topic: Export/print failure Post Reply Post New Topic
Author Message
dclarkwa
Newbie
Newbie


Joined: 20 Oct 2009
Online Status: Offline
Posts: 5
Quote dclarkwa Replybullet Topic: Export/print failure
    Posted: 05 Dec 2009 at 12:25pm
I am using VS2008/builtin CrystalDecisions.  My application is ASP.net.  My report displays fine.  I am seting parameters and login in my .cs page, in the page_load event handler like so:

protected void Page_Load(object sender, EventArgs e)

{

if (!Page.IsPostBack)

{

When I try to export or print the report I get the following error:
 
Logon failed. Details: ADO Error Code: 0x Source: Microsoft SQL Native Client Description: Login failed for user 'WacadASPUser'. SQL State: 28000 Native Error: Error in File C:\DOCUME~1\DAVIDC~1\LOCALS~1\Temp\AgencyUtsteinReport {39E5623E-7794-49D8-9CB6-E201B2C70818}.rpt: Unable to connect: incorrect log on parameters.
 
If I delete the if (!Page.IsPostBack) code, I get a "Missing parameter Values" error.
 
Any suggestion will be much appreciated.
IP IP Logged
dclarkwa
Newbie
Newbie


Joined: 20 Oct 2009
Online Status: Offline
Posts: 5
Quote dclarkwa Replybullet Posted: 05 Dec 2009 at 1:25pm
I solved this by removing the if (!Page.IsPostBack) code and moving the code from the Page_Load event handler to the Page_Init event handler.

Edited by dclarkwa - 05 Dec 2009 at 1:26pm
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.