on 02-16-2021 2:06 PM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
72 | |
9 | |
8 | |
6 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.