Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

add datacolumn to crystalreport

Status
Not open for further replies.

lutzs

Programmer
Oct 8, 2002
75
LU
hi,

in my .net application is a dataset with a datatable "t_pname" and the column "name".
It works fine. In my application is a crystal report, too.
Now, I will add the column "name" in my crystalreport.
In the crystal database expert I browse the data source for the tables I want to add to the report.
Under "project data> ADO.net Datasets" exists my dataset but the message is: "no items found". What can I do?

Here is my code:
Dataset1 ds_pname = new DataSet1();
DataTable t_pname = new DataTable();

DataColumn myDataColumn = new DataColumn();
myDataColumn.ColumnName = "name";
myDataColumn.DefaultValue = Application.ProductName;
t_pname.Columns.Add(myDataColumn);

ds_pname.Tables.Add(t_pname);

DataView myDataView = new DataView();
myDataView = new DataView(t_pname);
dataGrid1.DataSource = myDataView;


Thanks,
Stephanie
 
Hey Stephanie,

Try to Verify Database prior to adding the new dataset.

Naith
 
Thank you. I have verified the database and now I can add the new database field.
When I execute the application (print the report with the new database field) I get this error message:
"the request could not be submitted for background processing".

What is the error and how can I repair this?

Thanks, Stephanie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top