i wrote a program in C# win form. i have used crystal report. I want to set Crystal Reports Multiple Columns from Right-to-Left.
The following image.
Use cross-tab for this. you just assign left to right
For this use this link.
http://www.codeproject.com/Articles/142064/Step-by-Step-Creation-of-Crystal-Report-using-its
set a single column direction:
Right Click on IFieldObject (column) in section3(details): select "Format Object". Then you know what to do.
Good Luck!
Related
I am trying to get crystal to print the details field from Left to Right to an excel spreadsheet output, rather than from the top of the page to the bottom. Setting the details section to 'Format with Columns' and using the layout option of 'Across then Down' doesn't seem to acheive the effect I am looking for. I want to create a given number of columns to the right based on user input passed into Crystal parameters, but I can't seem to find anything within crystal reports that will allow this.
Is it possible that I'm missing something simple, or does Crystal Reports lack the functionality to accomplish columns/rows being generated from left to right rather than up to down?
Thanks in advance for any help!
No such functionality in Crystal alone but you can take control of the Excel output logic using a UFL (User Function Library) allowing a detail-level Crystal formula to write to a specified Excel cell. As the formula progresses through the detail rows, it would increment column/row targets based on the Columns parameter.
You can create the UFL yourself. Alternatively, at least one of the 3rd-party UFLs listed here provides such a function.
I've put together a summary report in Crystal Reports 2013 that has about 10-12 subreports. Each subreport is a fairly basic query that produces one or several lines rows and columns of data. I'm using SAP's Central Management Console to produce the reports, with the output an Excel output.
My problem is that my excel output is coming out unstandardized i.e. random extra empty rows and columns, data and header mismatches, different widths of rows and columns, etc.
I've been messing around with the formatting setting w/in Crystal Reports (standardizing size and shape of subqueries on the preview screen, supressing empty areas, etc.) but can't come close to getting the Excel output to look the way I want.
Is there a specific export formatting function/area within Crystal Reports that will allow me to design the export in the way I'd like? And if not, are there any ways to format multiple subqueries w/in Crystal Reports so their format in an Excel export is uniform?
If i really understood your issue, you have troubles with the alignment of data, cells and stuff like that in the spreadsheet, is it correct?
If so, the solution is to review the align of your fields in the report. It is very boring. You can use some functionalitis like:
right click a field and use "align to grid"
select two fields, right click and use "left align" and "top align"
change the property "gridsize" of the "report" to a higher value and use the keyboard to position the fields.
Avoid empty spaces between field at most.
Keep your eyes on the rulers.
Furthermore, check the version of Crystal Reports you are using. There is a good improvement about it from version 11 to 13.
Exporting to Excel seems a bit qwerky because the same steps do not necessarily work for all reports (my experience at least). Keep this in mind when reading the following steps. Perform the following steps on both the detail(footer if using grouping) and header rows where applicable:
Choose driver “Microsoft Excel(97-2003)”
Make sure the header and detail sections have no spaces in between the columns
Make sure the header and detail column boxes align perfectly (should see red crosses when alignment is correct).
Select all fields on the row, right-click, align to top (if this does try aligning to grid)
Right-click to the left of the detail columns and “Select All Section Objects”
Right-click in the same location and choose “Arrange Lines” then “Fit Section”
Perform steps 4 & 5 on the header columns as well
Open Section Expert, select “Suppress Blank Section” for all unused sections
If none of the above work, use driver “Microsoft Excel (97-2003) (Data Only) “
Headers will still appear in the report but will not be in bold
I can't believe I am having such difficulty finding the answer to what I believe is a simple question.
I have a crosstab report which has
Pivot ColA ColB
PivotC1 <cellA1> <cellB1>
PivotC2 <cellA2> <cellB2>
PivotC3 <cellA3> <cellB3>
All I want to do is add a column, that does a row-wise formula in the crosstab. That's it! For example on the first row, a new cell would be to the right which has the formula 0.5*(A1+B1/A1). The content of the formula will be a couple different things but it really only needs to support basic cell references and arithmetic.
I found "Embedded Summary" functionality which does almost exactly what I want, but when I right click for the context menu on a crosstab in my version of Crystal (V11.0) I see nothing of the sort. Furthermore there are some relevant functions named in other references (such as here) that use "GridValueAt" which makes perfect sense... but once again, if I try to use that in a formula, it doesn't recognize the function.
Specifically the Crystal 2008 documentation says to use an Embedded summary you right click on the crosstab and choose "advanced calculations" then "embedded summary".. I dont see either of those options.
Am I missing a library? Was the functionality rebranded in V11?
Thanks!
If you are using 2008, you right click on a field in the crosstab to see embedded summary functionality. But I don't think that's what you need based on your explanation. I think you would be more successful using a calculated member. Right click the top left of your crosstab and select advanced calculation then select calculated member.
I know this is an old question, but in case anyone else comes across this:
Using the GridValueAt function, you can reference the cells within the crosstab. For example -
GridValueAt (CurrentRowIndex, CurrentColumnIndex ,1 ) /
GridValueAt (CurrentRowIndex, CurrentColumnIndex ,2 )
gives you A1/B1
Hope this helps.
Thanks in advance for any help,
I have a Crystal Report made in Crystal Reports 2011. The report does a simple select from a view and uses about 6 of the columns.
In 2 consecutive sections there is a Cross Tab and a Pie chart, both reporting on the same formula field. The formula for the field is as follows:
iif( IsNull({IROView.OVERTURNREASON})=false, {OVERTURNREASON},"")
Basically, if my value is not null, I get the value, and if it is, I get an empty string.
In the Cross Tab, under the Customize Style tab, there is a Suppress Empty Rows and Suppress Empty Columns check box. I am looking for something similar for the pie chart because even though there is no slice for the empty string, the legend has a an entry for the blank string with the value 0 (or 0%).
Thanks again,
You may want to consider updating the charting engine to use the latest version of CRChart. Three-D Graphics wrote the original component for SAP (nee BusinessObjects nee Crystal Decisions nee Seagate Software); they own the source code. The #HIDE_ZERO macro would probably do exactly what you need to have done.
I'm getting an integer value as 2345 but I want to display it as 234.5
is it possible??
To get what you are looking for in a simple fix is like what kingpin stated above. Divide the value by ten. To do this just create a new formula in crystal by going into your field explorer and right clicking on the formula fields section. Under there should be a option to create a new formula. Then in window that comes up put the field you want to manipulate in the formula and then divide that by ten. And there you go. Now use the formula field in the report instead of the original field.
Here is a example of how it could look.
{Table_Foo.value_Bar} / 10
There is a field property for it. Don't have access to crystal reports at the moment, but I know it's there:
Crystal Report Provides an easy to use default thousand separator for numeric Fields. You can use it by checking Thousand Separator from Field Properties.
If you need a customized separator, check Customized Thousand Separator in Crystal Report.
You also might want to find some tutorials on the Crystal Reports themselves if you still have trouble.