I have a string field in a RDLC report that will not display any value - reportviewer

This report is generated from an Access table which has a string value which happens to be a number (purchase order number) All the other string fields in the table will display except for the PO field which is just blank. I have looked at the datatypes in the designer and everything is correct. I have reconfigured all the tableadapters and nothing helps. I am stumped on this one. I can build the same report in reportbuilder 3.0 and it works perfectly.

Related

How to sort a Crystal Report in Visual Studio 2015

I am using crystal report add-on on my visual studio 2015. I have a problem, I have access database with table looks like in images:
I want to sort my database with field tanggal_pembayaran as parameters, using group selection in selection formula on crystal report but here is what the formula looks like:
I don't know which formula to use to make it like that parameter becomes the initial limit for the report date to display data with date above the entered date which i don't know how.
To Filter and Sort by a Parameter field in crystal report
create a parameter Field
right click the parameter field in field explorer and add new
give name and datataype (here datetime)
to filter data using parameter field
Go to Reports>>Selection Formula>>Records and provide formula
here it will be like
{Customers.CreationDate}<{?Creationdate} save and close
to Sort data using parameter
Go to Report >> Record Sort Expert>>From report field add the Parameter field.If not visiable add the field first to the report then it will be visibale

incrementing Number in Crystal Report

When I Click the button there should be a incrementing number in the report so i can track how many transaction did i print.
Dim dt As New DataTable
dt = Me.grvData.DataSource
Dim Cr As New VoucherExpense
Cr.SetDataSource(dt)
Dim r As New ReportForm
r.CrystalReportViewer1.ReportSource = Cr
r.ShowDialog()
If you want to have a count of your records then that is a summary field and very easy to do. Rather than try to tell you where to click in the UI you can look at a video https://youtu.be/-i2p5KPDl48?t=1m32s
BUT if you want to have a number for each record given by crystal you can also use rownum which is one of the special fields of crystal (other special fields are page number or print date etc). You can make a formula and just put rownum).
Crystal Reports (and any other reports) are used to display/print data. You can format it or do calculations on the data given e.g. a count of the records in that report or a sum to show totals BUT once the report is closed it will not "remember" anything. So to get the number of times a transaction was printed you have to increment and save it in your database. So the number of times it was printed is one database field on that row and your button should to an update/increment of that database value right before you show the report. If you want to store the actual "Print" to the printer and not just preview of the report on the screen then you can put your database increment logic on the event handler of the print button of the crystal reports viewer

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

Crystal Report charts with strings

I'm trying to create a chart in crystal reports that displays count(x) on change of A , B
it's supposed to show number of merchants "count(x)" who paid "B" for each region "A"
the problem is that on Data tab in chart expert, on the available fields, it shows only the numeric fields "e.g: region ID / payers ID" while i want it on change of names not ID
*Note: they're already displayed on the report so it's not a connection/command problem
I tried to check all the types that CR accepts in charts and it were numbers / date / varchar
the fields in my DB was "nVarchar(MAX)" I tried to change it from DB, but CR didn't get affected by this change (God knows why!) and also even if it got affected this will result in other problems , so I thought about changing the type from the CR itself and it really worked
right click on "Formula fields" > New > name your field
then in formula workshop write:
CStr ({table_name.field_name})
while creating your chart, made it on change of the field you've created
I hope it helps as I've made a lot f research and came across many facing the same problem without a working solution

Images in Crystal Reports

I am working on Windows Forms Projects.
I am creating a report for customers.
The report data is pulled from a "CustomerDetails" table.
A field in the table is called "CustPhotoName", this holds a string which relates to an image file.
I Currently have a report set up which runs for a single customer by passing in a customer ID. Then using the passed in ID to populate a Dataset with an ImageRow and then a sub report with the image from the dataset.
I am wanting to set up this report where I can pass in an array of customer IDs and produce the reports (1 page per customer with image (if CustPhotoName has value))
Please can someone let me know how is the best way to do this for the multiple customers.
Add a CustomerID parameter to the report. Type Number. Set it to allow multiple values. In the report's record-selection formula, add the following:
AND {table.customer_id} IN {?CustomerID}
You probably want to group the report by {CustomerID} as well. In the group's footer, select Section Expert and check New Page After. This way each customer will start on a new page.