How to achieve this in crystal report? - vb.net

How to do this in crystal report with sub-report
the image above is from excel and that's what im trying to achieve..and here's what i do in crystal report
and after i run it..the result is devastating..lol here's what it looks like
the sub-report is just keep on repeating..lol how to fix this ? i already set the sub-report link id's..it's all good but the only problem is that its keep on repeating where what i want is to only show the sub-reports content if the id's is match..btw im using vb.net for the project

Don't put it in the Details Section. I suggest you put it in your Report Footer Section or Group Footer Section (based on which group you are summarizing). Putting it in the Details Section will repeat the Sub Report depending on how many records you show in that area.

Related

How to program crystal report to lookup a record in a table

i Have a Table with Fields
Material Number
Order Code
Supplier Code
Description
I have a crystal reports rpt file that i manually enter all the information to generate labels.
I am trying to program this using the built in formula editor, so when i enter the Material Number (which is a unique code) it will automatically display other 3 relevant fields.
I have tried few formulas in the formula editor without any luck.
can anyone help?
relliK
UPDATE
#Siva - I have added the table for clarification
i simply want a lable printed with only one user input being the Material Number, and then the code/fomula in crystal reports to fetch the other data based on the Materila number and produce the label.
thank you for you interest in this issue.
UPDATE
#Siva - I have added a sample label, i would only want to enter 20506871 as Material and the other data fields to be pulled from excel
not sure if i can use parameter fields and/or i would like some help on programming the parameter fields

Using CR subreports for displaying two distinct reports in one blank main report

I have written a sql query for a view that return some information but when grouping in a CR report some data gets mixed and exact data is lost. what i did is to create two reports when testing, each report return the data i want ( one report for canceling fees and other for earnings ). I then had the idea to create two subreports for each correct report and display both of them in a main report. both report use a SQL view and have formula fied which filter some dates.
When i try to display those subreport in a report all i get is a blank report with no data. i tried to link those subreport with a field but eventough. no data was shown.
Could someone point me some track for getting this work ?
Thank you in advance

How to check if no rows retrieve from command in crystal report?

How to check if no rows retrieve from command in crystal report?
My solution: Crystal Reports: Display a Message When Report Has No Data
When do you want to "check" ?
"If you want to catch it in your form, you would need to have some code in the form perform the same query that the report will perform and see if there are any records returned before loading the report. Then you can show your message box and cancel before the report is loaded." - David Stratton (Original thread here)
Specifically in the report? See this article
It seems if you want to do this in the report itself you'll essentially be using the same method you would be in your program, by using a Count() of the rows returned.
I think this would be somewhat similar to HasData property in VBA.
Here is also another thread related to what you're asking.
Have you tried anything?

Display specific rows in crystal report vb.net

I'm having a problem on my crystal report. Is there any way on how can I display specific rows in a crystal report? For example all records with an ID of 00234 will be displayed in a full crystal report. Is there a way?
Use Section Expert.
Go to Report -> Section Expert. Select the Details section on the left side. Click the Formula icon beside the Suppress option on the right, and enter a formula in the editor. Rows that evaluate to True will not appear on the report. If you enter [ID] <> 00234, then only rows with ID = 00234 will appear on the report.

Report Viewer using multiple reports

Within vb.net we've got a report that works great it has it's header/footer details then then a table in the middle which repeats data and all of that is fine.
But what the client wants now is for another button named 'Print Individual' and this will print the same report but instead of the repeated data within the table for each of those rows to be a single row on a page with the same header/footer.
So for example on the first report if there is one page with 5 rows of details the 'Print Individual' report will print the same but have 5 pages and 1 row per report. If that makes sense :-)
Obviously if I can do it where we use the same report instead of maintaing two reports would be good, as the report has a lot of information on it. Any ideas?
I ended up creating a new report and using the list box tool.