Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6814463
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T20:41:31+00:00 2026-05-26T20:41:31+00:00

Does anyone know how to use multiple .rpt files (crystal reports) in one application?

  • 0

Does anyone know how to use multiple .rpt files (crystal reports) in one application? I need to generate reports and directly save to .pdf but I’m not sure how to do it. I manage to do it when I’m using single .rpt file but I’m not sure how to generate report with multiple .rpt file. Can someone assist me with thid?

My coding:

ReportDocument cryRpt = new ReportDocument();
TableLogOnInfos crtableLogoninfos = new TableLogOnInfos();
TableLogOnInfo crtableLogoninfo = new TableLogOnInfo();
ConnectionInfo crConnectionInfo = new ConnectionInfo();
Tables CrTables;

cryRpt.Load("C:\\rptBilling.rpt");

crConnectionInfo.ServerName = "ServerName";
crConnectionInfo.DatabaseName = "DatabaseName";
crConnectionInfo.UserID = "userID";
crConnectionInfo.Password = "Password";

CrTables = cryRpt.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in CrTables)
{
    crtableLogoninfo = CrTable.LogOnInfo;
    crtableLogoninfo.ConnectionInfo = crConnectionInfo;
    CrTable.ApplyLogOnInfo(crtableLogoninfo);
}

cryRpt.SetParameterValue("@CollectionStartDate", "2011/09/14");
cryRpt.SetParameterValue("@CollectionEndDate", "2011/09/29");
cryRpt.SetParameterValue("@SpokeCode", "14");//country code
cryRpt.SetParameterValue("@UseCollectionDate", "1");//value can be set 0 or 1
cryRpt.SetParameterValue("@UseUploadDate", "0");//value can be set 0 or 1
cryRpt.SetParameterValue("@UploadStartDate", "2011/09/23");
cryRpt.SetParameterValue("@UploadEndDate", "2011/09/23");

cryRpt.ExportToDisk(ExportFormatType.PortableDocFormat, "e:\\1.pdf");
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T20:41:31+00:00Added an answer on May 26, 2026 at 8:41 pm

    If you mean separate pdf files, then you could just reload the new rpt using cryRpt.Load(). Make sure you clear your parameters and SetParameterValue on new ones.

    Edit: I can’t make comments as I don’t have enough points for that but I’ve never used the Crystal Reporting feature but I’m assuming you can keep the same variable cryRpt and once you load your first pdf you could reuse cryRpt by calling Load() again and going through the same steps as you did already but using new variables if needed. If it doesn’t allow multiple cryRpts you could just dispose and initialize a new one. I could be misunderstanding what you are looking for as I am assuming you want two separate pdf files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Does anyone know how to use the credential cache or network credential to get
Does anyone know how to use CruiseControl.Net to publish to an FTP server?
Does anyone know how to use the Raw Input facility on Windows from a
Does anyone know how to use an icon instead of text for the UINavigationController
I know I can use Request.Browser.IsMobileDevice . But does anyone know how it works,
Does anyone know if its possible to use phing to copy an entire folder
Does anyone know how i can use BST for config.time_zone in my rails config/environment.rb
Does anyone know if it's possible to use regex capture within Apache's DirectoryMatch directive?
Does anyone know any good tool that I can use to perform stress tests
Does anyone know if it's possible to not use the navigation properties feature of

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.