Answered by:
Using My.Settings in Crystal Report

Question
-
Hi,
Could anyone help me, I'm trying to use a number value of one of the applications my.settings for a field in a Crystal Report.
Is there any way to do this?
ThankyouTuesday, January 12, 2010 3:08 PM
Answers
-
Hi,
What is the datasource of the report?
If it's a dataset, you can read the data in setting files into the dataset and display them on the report.
if not , you might need to add a subreport to display them.
Here is a totorial about how to connect dataset, please take a look at it :
http://www.codeproject.com/KB/cs/wincmdline.aspx
Harry
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.Monday, January 18, 2010 7:11 AM
All replies
-
Hi,
What is the datasource of the report?
If it's a dataset, you can read the data in setting files into the dataset and display them on the report.
if not , you might need to add a subreport to display them.
Here is a totorial about how to connect dataset, please take a look at it :
http://www.codeproject.com/KB/cs/wincmdline.aspx
Harry
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.Monday, January 18, 2010 7:11 AM -
Hi Harry,
Sorry for the late reply.
I'm using an Access Database .mdb as the datasource.
Don't know if that link will help me. I just want to have a field on my report that uses the value of a setting, My.Settings.VNO.Value.
Thanks for the help.Monday, January 25, 2010 1:56 PM -
Hi,
Crystal report can not connect to setting file directly.
You might need to first read the content of the setting file into a table of typed dataset , then connect the dataset to report.
Harry
Please remember to mark the replies as answers if they help and unmark them if they provide no help.
Welcome to the All-In-One Code Framework! If you have any feedback, please tell us.Tuesday, January 26, 2010 1:42 AM