Jump to content
Xtreme .Net Talk

Recommended Posts

Posted (edited)

Hi.

 

I am deploying a NET applicaction using C# and Crystal Reports, when i run the aplicaction in the developement machine all goes well.

 

I make an install and include all the merge modules required, but when i try to see the report the report doesn't show on the screen, you only can see the Reportvieweer control and the number of pages the report needs, but you don't see the report(white paper whith the data). I use this code:

 

private void FrmInforme_Load(object sender, System.EventArgs e)
{
				
    DataSet dtsData=new DataSet();
    ReportDocument oRpt=new ReportDocument(); 
       
    string nombrerpt = Application.ExecutablePath.Substring  (0,Application.ExecutablePath.LastIndexOf("\\")) + "\\Datos\\InformeBasico.rpt";

    oRpt.Load(nombrerpt, OpenReportMethod.OpenReportByTempCopy);
		
    dtsData.ReadXml(this.xmlinforme);

    oRpt.SetDataSource(dtsData);
    
    crystalReportViewer.ReportSource=oRpt;
}

 

Any Idea?

Edited by divil

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...