Skip to Content
0

Crystal Reports for Visusl Studio 2017 .NET SDK - SP 21 Bug

Dec 06, 2017 at 08:57 PM

226

avatar image
Former Member

Hi,

We have recently migrated from SP18 to SP21 in Dev enviromnt and in Publishing Server, and some reports that work wiht export to RTF feature do not worked as it should after upgrade. Some part of data don´t was show in this new update SP21. Trying to verify if would be other kinds of err, we inspect our codes but don´t watch errs. Than, we tryied other methods from export to see if has some ligth at the tunnel's end. Happly in the PDF export method our report work fine, all the data appear on report.

Unfortunatly our client needs the report in edtitable version, thus, we was still searching from solution.

I searched on web but no one post from this issue.

Can someone help to understand the err or show the solution?

bellow an little pieces of our commented code, that we think be the critical part:

...

ExportOptions exportOpts = new ExportOptions();

PdfRtfWordFormatOptions pdfOpts = ExportOptions.CreatePdfRtfWordFormatOptions();

//exportOpts.ExportFormatType = ExportFormatType.RichText; << bad option 1

// exportOpts.ExportFormatType = ExportFormatType.WordForWindows; << bad option 2

exportOpts.ExportFormatType =ExportFormatType.PortableDocFormat; // << Option OK

exportOpts.ExportFormatOptions = pdfOpts;

reportDocument.ExportToHttpResponse(exportOpts, Response, true, "Cartaz_" + DateTime.Now.ToString("yyyyMMdd hh:mm"));

Thx 4all.

Bopp

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Mikael Kratz Dec 07, 2017 at 02:51 PM
1
Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Mikael,

I went to see my reports and bingo, you were right. Objects that had some background color or other types of graphics do not work well in this release of Crystal Reports. In my case, some reports were white background and thus more hard to see.

Thank you again.

0
Former Member

Hi Mikael,

It looks like the same problem, but in some of our reports there are no graphics that can cause problems. In the most critical, there are four sub-reports with text only, and yet the problem still occurs.

I will try to remove all graphical elements to see if work.

If you there´s some other tips I'll so glad.

Thx!

Bopp

0