on 07-29-2022 3:37 PM
I've been using Crystal Reports SDK for many (many!) years. In the past, we tried to print RTF and it wasn't working correctly (note that I am talking about including RTF formatting in the report, NOT exporting). I can't recall the exact issue now. Has that been resolved? Can CR render RTF correctly now?
Are there limitations or compatibility issues?
Is there a better format to use, e.g., ODT (open document), or something else?
Any links to documentation or examples on how to do this would be appreciated (or just explain here).
We are using the latest Microsoft Visual Studio Community 2022 (64-bit) and Crystal Reports for .NET Framework. Our goal is to have the user able to enter rich text in a Windows app RichTextBox and then have that printed to the report. The report is very large, with about 60 subreports.
Thanks!
Crystal Reports RTF text interpretation was introduced to format text with basic RTF tags. It does not support the full set of RTF tags, as it is meant to only support the formatting that can be done in Crystal Reports for a text object like: fonts, font size, font colors, bold, italic.
Regards,
J Wick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
HI TEd,
Why export to RTF when CR can export to PDF?
Have you tested that since you are appending PDF to PDF anyways?
FYI - RTF and DOC is the same file internally.
Don
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Don,
That's what we are doing -- exporting to PDF. My question was whether there was a way to incorporate RTF (or DOC or HTML or any rich text) into the Crystal Report. Currently the user is entering info into Word docs and we are converting that to PDF and appending that PDF to the Crystal Report PDF. If we could capture that rich text in the program and print it in the Crystal report rather than using the Word shenanigans (converting/appending) above it would be more efficient and a more integrated experience for the customer.
-Ted
That's the type of merging I was describing.
Perhaps you can also avoid the need for manual editing.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In that case, afaik, the only solution would be to deliver the output as a PDF after merging content from the report with the RTF data. Or some variation on that theme.
Possible but not easy.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks for your help, I appreciate it. Yes, we are only interested in the PDF output for this application.
What I'm doing currently is converting Word docs (not RTF) to PDF and then using a 3rd party app to append that into the CR PDF report, so it appears to the user as one PDF. That involves two extra steps (conversion and appending) but appears to be the only way. Also it requires the user to edit the rich text outside my app.
Could you clarify "merging content from the report with the RTF data"? Is there a better way than I described above?
afaik, Crystal still doesn't support all RTF tags. But there's a way around that limitation.
Will the RTF content always fit within 1 page?
If so, I'd like to test a solution.
Please upload an rpt with saved data (including the database field containing the RTF content).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.