Mismatch column name in report viewer and PDF export? - pdf

I have text box in the header and populated dynamically.
If my query result is more than 1 page, when i go to next page, the column value will change but when i export it to PDF or Word, only the column value of the first page will appear.
Please see image below:
http://s2.postimg.org/3q81agpyh/Cropper_Capture_26.jpg
What's wrong here?

Related

How can i export a chart and multiple rows from an excel sheet to pdf

I have an organogram chart in excel and few rows based on which this organogram chart is constructed. Both the chart and data rows are in the same worksheet.
I need to get this chart printed on the upper half of the pdf and the data rows just below the chart.
I have figured out how to get both chart and data rows printed individually in the pdf but i am unable to figure out how to get the data rows printed below the chart on the same page.
Select everything you want to be exported. Select Right Click / Set Print Area. This way you should be able to export what you have selected explicitly.
If you have difficulty printing everything on one page, play around with Scaling properties on the Print Preview page and try exporting again.

Crystal Report XI- Suppressing Header after page break

Hi I'm new to using Crystal Report XI and I'm having a difficult time with this issue.
I run a billing statement using Crystal Report Monthly. And I process at least a thousand statements on one PDF. The header ie: "DB---Break" tells our system when a participant statement ends and a new statement begins (Mailing Purposes).
However, if a participant has an overflow of statements that goes onto the the next page. The header "DB--Break" cuts off that statement for that participant.
With all that being said, I'm currently trying to find a way to suppress the header on the second page of the participant who has a overflow of information. How would go about resolving this? Thanks in advance
Example:
DB----Break (Header)
Joe Smith, (Name)
TEXT TEXT TEXT (body)
--------Break in Page----------
DB--Break (Need to suppress this Header)
TEXT TEXT TEXT TEXT (continuation of body from John Smith)
--------Break in Page----
DB----Break (Header)
Sarah Johnson, ( New Participant Begins)
TEXT TEXT TEXT (Body)
Try this:
Right click on Header -> Select Section Expert.
Highlight the header you want to suppress. On the Common tab to the right check the supress checkbox
Then click on the formula x+2 button and enter the following formula:
pagenumber > 1 and click on Save and Close.
This should suppress the header section on second page.

How to generate report

I have problem in generate report. I use crystal report 8.5 with vb.net 2008,what I want is when I generate report it will appear red value, if the value is more or less than actual value else it will give default value but when I put this code it give me wrong result
If {Intake.wheatType} = {Spec.WheatType} AND
{Intake.HB43} >={Spec.M_Min} AND{Intake.HB43} >={Spec.M_Max} Then
Red
Else
DefaultAttribute
this report is related with two tables, which is table Spec and table Intake. Could anyone help/teach me how to fix this problem
When determining whether a value is between a minimum and maximum, the logic will be:
Is the value greater than the minimum and is the value less than the maximum?
Actually you can create a Formula Field for that,
From Field Explorer, right click Formula Field
A popup window will appear, type the name of the formula you want.
in the Formula Editor insert you custome formula
Code:
If {Intake.wheatType} = {Spec.WheatType} AND {Intake.HB43} >={Spec.M_Min} AND {Intake.HB43} >={Spec.M_Max} Then
Red
Else
DefaultAttribute
Then click OK. Drag the newly created field on your report. And that's it.
For more info, see this: Adding Formula Field

Convert Crystal Reports Text Object/Text box to HTML?

I want to convert the text from Crystal reports to HTML and so far I have noticed that if I simply add a text field, I am able to change it to HTML by formatting text option and then under Paragraph tab there is an option to change the text interpretation. The problem is that I have entered text box to enter some hard coded information along with the database driven field, so I would like to know if there is a way I can convert the text box data into HTML. I am currently using crystal reports XI and want going forward want to upload these reports in a website using visual studio 2010. Thank you for your help.
It appears that the 'Text Interpretation' is ONLY a property of these fields:
Database
Formula
Parameter
Group Name
I wasn't able to get the Text Object to act as HTML.
However, you could create a formula with static HTML text:
"<strong>this is bold text</strong>"
Or a formula that combines text w/ data:
"<pre>" + {table.html_field} + "</pre>"
You could also use a string parameter to display user-supplied, HTML text.

How to increase spacing between paragraphs in Crystal Reports PDF

I have a report that I'm exporting to PDF using the VS2008 version of Crystal Reports. There is a field that displays a product description that contains HTML data pulled from my database so I've set Text Interpretation to HTML for the field. The text displays fine with all the appropriate HTML formatting, however, there is only a single line-space between paragraphs. I've tried adding multiple <p> and multiple <br> tags to increase the spacing but this does not work. How can I increase the spacing between paragraphs in an HTML field that I'm exporting to PDF?
After a little messing around, try using this for a line break <br>
I had the same problem. the following step fix the issue
In my case the field is in "Details" Section of a SubReport. Crystal Report version is X1 R2.
Step 1. Select the SubReport, right click and select "Edit SubReport" option
Step 2. Select the Section Expert of the Details Section in the SubReport.
Step 3. Select the Layout tab
Step 4. Change the Vertical (Gap Between Details) as 0.109 cm
Step 5. Select Printing Direction as "Down then Across"
Step 6. Select option "Format Groups with multiple column
Step 7. Press Ok and save the SubReport / Main Report
By doing this i can see the space between the paragraphs for the field which has interpretation as "HTML TEXT"