How to Call a function into rdlc report - vb.net

I'm using visual studio to create a rdlc report with a function named NoToTxt that converts numbers in some fields into words
I put it in the Code area of Report Properties then I tried to call it to a textbox using an expression like this
Code.NoToTxt (Fields!Number.Value)
but it didn't work
any ideas that might help me to overcome this issue
I made a lot of research, but I didn't come with anything yet.

Related

listview to crystal report vb.net

I'm developing a SMDR application, Now the thing I need is, I'm filtering the relevant information to list view through access Database. So i want to view the list view data in a Crystal report. Please help me. Im Using Vb2010
Thank You
You can pass an ADO.NET data source in to crystal and report off it. There are many, many articles dealing with how to do this, so I wont document it here.
Check out:
http://developer.emc.com/developer/downloads/CrystalReport_ADO_Dataset.pdf
http://www.sdn.sap.com/irj/boc/go/portal/prtroot/docs/library/uuid/401c4455-a31d-2b10-ae96-fa57af5aec20?overridelayout=true
http://msdn.microsoft.com/en-US/library/ms227354%28v=vs.80%29.aspx
Enjoy!

Using My.Settings Variables within Crystal Report

I have 2 Settings in my.settings within my vb.net Project called
my.settings.company
my.settings.tel
and I would like these to be displayed at the top of my Crystal Report.
I tried using the Database Expert within my report and added the .NET Object "My.Settings" to the Report and then dragged the company and tel variables to my report, however this doesn't work at all.
Any help ???
The easiest and probably the right way is to define parameters and to set their values from your application

Crystal Reports for VS 2010 Chart Legend/Labels

Real simple question that I can't seem to find an answer to guys. How to I change the labels associated with charts in the version of crystal for Visual Studio 2010? Or can I?
I always end up with the labels showing the field name from my data source or like #sum..
So my question is how do change these in the version of crystal I am using? Or am I going to have to wing it and color fill some boxes and use text objects?
VS2010 version :10.0.40219.1 SP1Rel
Crystal:13.0.5.891
In Crystal Reports, run the report. In preview mode, do a right click on the
chart itself, and then go to "Chart analyzer". This will take you into a
designer mode of the chart. By selecting the axis title, you can open it up
and modify the content.
I haven't done this in the .NET environment, but everything else I've done
in the .NET Crystal Reports Designer has been the same.
Or, a bit of a hack, but you could alter the data source view/proc presumably to give alias's to your variables & fields?
I admit, not the ideal answer but it should work.

Security Error with Report Viewer Control and RDLC Reports in ASP.NET 4.0

Using ASP.NET 4.0, I'm creating an RDLC stream by instantiating a Microsoft.ReportingServices.RdlObjectModel.Report, setting the Code property, and returning the stream using the RdlSerializer.
Then I'm passing that stream to the ReportViewer like so:
ReportViewer1.LocalReport.LoadReportDefinition(rdlcStream);
If I don't set the Code property, I don't get any errors and the report displays properly, but when I set the Code property for a report that needs custom code, I get the below mentioned 'RequestMinimum' is obsolete error.
An unexpected error occurred while compiling expressions. Native compiler return value: ‘[BC40000] 'RequestMinimum' is obsolete: 'Assembly level declarative security is obsolete and is no longer enforced by the CLR by default. See http://go.microsoft.com/fwlink/?LinkID=155570 for more information.'.’.
This error doesn't occur using the Report Viewer control in a winforms app.
Has anyone seen/resolved this issue?
I do not know exactly the cause of this error, but in my experience, it was related with a simple copy and past from a expression from one cell to other cell inside the results table, all this after making changes in the layout and groups.
I recommend you delete any expression or formula, verify that your report is executed without any error message, and rewrite down all the expressions and formulas one to one, checking in every formula that your report open correctly.
That worked for me.
For me it was the page number in this line
<Value>=Globals!PageNumber + ' of ' + Globals!TotalPages</Value>
When removed everything goes right and i don't know why
Another option for those got this error and generate report markup.
Likely one of you <Value> tags starts with "=" sign and if this is not an expression you need to use EvaluationMode="Constant".

Crystal report clicking event

I want to get a value from crystal report on double click on any column value in crystal.and then open a sub report based on this clicked value.. I am using Visual Studio2005 crystal report.. Is this possible with this version.
Please help if having any idea about this. I have tried a lot of things. But not getting any fruitful solution.
Thanks
It is possible. You shall have to set the sub-report as an on-demand report.