crystal reports and custom sorting 2 - crystal-reports

Help please
I have a project at school to create crystal report
where I have three columns [itemcode---price----Change]
Item codes has five different codes and all I need is how do I sort two of those items
say cu-8967 and mp-7865 this applies for all CU and MP items and under changes calculate
their differences.
Any guidance would great appreciated .
Thanks.

You can do it by using crystal report formula.
write a formula like
totext({itemcode},"00",0)
and then drag and drop the formula where you want to show the result.

Related

How to merge 2 cells vertically in crystal report?

I need to merge 2 cells vertically in crystal report and then want to display avarage value. For more clarification I attached a image. Please help. Thanks in advance.
(https://i.stack.imgur.com/CluQl.png)
Its tricky. I can think of 3 options:
1) If you have some sort of common link between Paper 1 and 2 of a Subject, then you could possibly use Grouping.
2) Otherwise you will have to use Group by Formula and use Substring to match first few letters of the subject and if substring is a match then group them.
For eg: "English" for English 1st paper and English 2nd Paper to group all English papers.
3) Last and my recommended approach would be to work this out at backend at query level and return results grouped for Crystal to just dump on the report.
I cant replicate this in any of my reports unfortunately.Hope it gives you some direction. Thank you.

How do i select records of crystal subreports dynamically

Good people of stack overflow.
I am stuck on this one.my crystal report is using a joined query
str = "SELECT invoices.voucher,
invoices.customer_name,invoice_details.item_name,
invoice_details.Amount FROM invoices
LEFT OUTER JOIN invoice_details
ON invoices.voucher =invoice_details.voucher "
The crystal report is grouped by voucher and the details are placed on detail section of group details to display item name and item amount.
It is working perfectly in design.
However at run time in VBNET when i select exactly the same query i get repeating line items. Example if the invoice items in invoice_details table were three in my report the three items will be repeated three times.
I have checked all over the internet for the same complain. No luck.
Someone suggested "suppress if duplicate" on an item with unique number such as voucher number. I did not get success.
Has someone met this difficulty and can you suggest how to resolve this?
If it can be of help to someone else...
My difficulty in duplicating line items was coming from using two tables, invoices and invoice_details when designing the crystal report.
And then using the link feature at crystal report design.
I had not realized i ought to have designed crystal report using a stored view (access query from the database). While using the stored view i did not do any linking at designing report but used grouping expert to group by invoice numbers.
So the report finally worked well after much frustration.

Jasper Subtotal

I have a report- from another question: Jasper report data summary which shows totals for a number of columns by location. I need to sub-total some of the location_cds and am not sure where to start. I have one group - by location_cd. Some location_cds have sub-locations, i.e. 3A has 3A1, 3A2, 3A3. Right now I have the totals for each individual row displayed in the group footer. I would like to see a subtotal for any location_cd that has sub-locations. I am trying to puzzle out how I am going to approach that. Should I see if I can do that in the query or will Jasper help me out here?
I am querying Sybase ASE 15.7.0 and am using Jasper Studio 5.5.1
Sub totals are the same as totals, just check the following:
add the order by corresponding to your list - usually add the item to the order by list
ORDER BY some_name_wharever, my_subtotal_thing_to_be_ordered
create a new group using the wizard, right click the root of the report on the report inspector and select "add report group"
create a new variable just like the total one but mind the reset and increment group
That should do it. Hope it helps. Good luck.
I feel like you are trying to create a crosstab, with different subtotals and a general total... Do try looking into crosstabs.. they may be tricky to use, but the end result is great if used properly!

Crystal Reports 11 Dynamic Data Source Columns On Crystal Charts

I've been searching for a solution for this issue for a couple of days now, so I would REALLY appreciate it if someone could help...
I am using SAP Crystal Reports 11, I would like to plot products prices over a specific period of time (FROM & TO Dates) using Crystal Line Chart.
The thing is the products number is dynamic, as each set of products belong to a package, so the package can contain 3, 5, 10 or any number of products depending on the chosen period of time (The FROM & TO DATES). I want to display these prices on change of date.
So when using a crystal chart, it requests a fixed numbers of columns to display in the setup panel below the "On Change Of" Option.
I would like a way to determine the columns to display on the run-time or something.
If such an option isn't available, I would really appreciate any work around or any idea.
Thanks in advance :)

Crystal Reports Multiple Columns Right-to-Left

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!