cancel
Showing results for 
Search instead for 
Did you mean: 

How can implement crystal report “Export” functionality in .NET SDK?

0 Kudos

Problem Statement:

We implemented crystal report “Export” functionality using crystal report 11.5 SDK. Please refer the below code.

boolCRWObject::ExportReport()

{

CRYSTALCRAXDRT::IReportPtr pCrystalReport = m_pCrystalReport;

CRYSTALCRAXDRT::IExportOptionsPtr pExportOptions;

pExportOptions = pCrystalReport->ExportOptions;

pExportOptions->Reset();

pExportOptions->DestinationType = CRYSTALCRAXDRT::crEDTDiskFile;

pExportOptions->FormatType = CRYSTALCRAXDRT::crEFTTabSeparatedText;

pExportOptions->UseReportDateFormat = VARIANT_FALSE;

pExportOptions->UseReportNumberFormat = VARIANT_FALSE;

pCrystalReport->SetDialogParentWindow(reinterpret_cast<long>(mMainP->getHWND()));

pCrystalReport->Export(_variant_t(true));

bSuccess = true;

}

We wanted to implement the same “Export” functionality using .NET SDK?. Can you please suggest how to do it ?

Thanks.

Regards,

Sasikumar

DellSC
Active Contributor
0 Kudos

What programming language is this?

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

That legacy RDC component was retired in CR 11.5.

Go here:

https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports+for+.NET+SDK+Samples

There is a C++ example along with Exporting samples in c# which is close to what you did before.

There is no direct conversion from the RDC to .NET, you can keep your original front end code but the CR part has to be completely rebuilt using CR .NET components.

You can read all about it here:

https://wiki.scn.sap.com/wiki/display/BOBJ/Crystal+Reports%2C+Developer+for+Visual+Studio+Downloads

There is also a Parameter and Printing test app on that page, the Parameter test app has a lot of other functions built into it as well.

Don

0 Kudos

Thanks Don for the details.

Answers (0)