Telerik Forums
Reporting Forum
1 answer
202 views
I have followed telerik video to pass the report parameters at runtime.
My VB Code in Web Application looks like as below::

Default.aspx.vb
Dim FullnameRpt As New ClassLibrary1.Fullname()
FullnameRpt.Param = tbWorkerId.Text
ReportViewer1.Report = FullnameRpt
ReportViewer1.RefreshReport()

Fullname.vb
Public Property Param() As String
Get
Return
SqlDataSource1.Parameters(0).Value.ToString
End
Get
Set(ByVal value As String
)
SqlDataSource1.Parameters(0).Value = value
End
Set
End
Property

This same report works fine at design time.
but doesnt not work at runtime at all,even if i pass the paramter value as default value.
It gives me error as follows:
An error has occurred while processing Report '':
Unable to establish a connection to the database. Please, verify that your connection string is valid. In case you use a named connection string from the application configuration file, make sure the name is correct and the connection string settings are present in the configuration file of your application.
------------- InnerException -------------
Format of the initialization string does not conform to specification starting at index 0.

Steve
Telerik team
 answered on 15 Dec 2010
2 answers
50 views
Hi,

I have a requirement to display some data in Appendix section at the end of the report.
The report detail section has multiple panels and tables inside that which populate dynamically, so their size is undetermind till runtime.
All I want is to show Appendix page at the end of report in new page not in continuation with the report.
Please suggest as I could find any sample or example to refer.
FYI I have Telerik Reporting Q2 2010.

Thanks,
Riyaz
Jonathan
Top achievements
Rank 1
 answered on 15 Dec 2010
2 answers
100 views
Hi Telerik,

I'm beginer user of Telerik components. I have problem with use Telerik.Reporting.
After I add ReportViewer or simply use some class from namespace Telerik.Reporting I get this warning below:

The referenced assembly "D:\PROJEKTY\EastSoft.HandelForte.Konfiguracja\bin\Debug\ES.HandelForte.Konfiguracja.dll" could not be resolved because it has a dependency on "System.Design, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" which is not in the currently targeted framework ".NETFramework,Version=v4.0,Profile=Client". Please remove references to assemblies not in the targeted framework or consider retargeting your project.  

After this warning I cant buid project with have reference to ES.HandelForte.Konfiguracja.dll.
This ES.HandelForte.Konfiguracja.dll project is set to using .Net Framework 4.0.
I use VS 2010.

Can you help me?

Have a nice day.
Piotr.
Piotr
Top achievements
Rank 1
 answered on 15 Dec 2010
2 answers
1.1K+ views
We have a base report that includes several text boxes, such as report title, date range, etc. These boxes are set as protected in the base report, so that they can be modified in the derived instance.

In the derived reports we want to set the text values; the literal values (ie the report name) are no problem, but I can't understand how to set texbox values based on parameter values. For example, we're passing a start date and end date, and we'd like to display those dates on the report. How can I access the parameter values in code-behind? I've tried statements like;

Public Sub New()
    txtReportTitle.Value = "Active Employees by Location"
    txtSubtitle.Value = Me.ReportParameters("CompanyName").Value
    InitializeComponent()
End Sub

...but this throws an invocation error. The assignment statements work properly when I use a literal value.

Help?
Derek
Top achievements
Rank 1
 answered on 14 Dec 2010
4 answers
310 views

Hello Telerik Team,

I have a requirement where in i need to pass multiple  filter values to a report.I am using master detail reports using Subreports .
But as of now..i am  able to provide only single filter to the detail report.

 Telerik.Reporting.Data.Filter fltrVal = new Telerik.Reporting.Data.Filter();
            fltrVal.Expression = "=Fields.ItemID";
            fltrVal.Operator = Telerik.Reporting.Data.FilterOperator.Equal;
            fltrVal.Value = "=1000";
            this.Filters.Add(fltrVal);

How do i pass multiple values to this filter.I have an array of values to be passed.

I appreciate your help. and support.

Thank you
Smith

Peter
Telerik team
 answered on 14 Dec 2010
0 answers
88 views
I need to add all the pictures that are in a directory to a report. Probably will be no more than 5-10 pictures per report. Is this possible in Telerik Reporting?

Thanks, 
Charles Hawk
KawaUser
Top achievements
Rank 2
 asked on 14 Dec 2010
1 answer
73 views
Hello,

I am using telerik reporting in order to make a chart on my web page and i seem to have a problem i cannot solve. I am using the StackedSplineArea chart with the Inox skin. Now I have changed the YAxis letters and numbering color to black that was easy by changing their color in appearance. I am facing a problem trying to change the labels' color. It is gray and i want it black.. I change it through the series apearance properties.. It is correctly changed on the design mode but as soon as I run it.. in preview mode or html it is still grey. I close it I re-open it and the color change I had done is gone.. I cannot change the label color.


Appart from that.. I want to make a chart with a time line... i have found how can i put dates to the xAxis but i want months...
I also want xAxis to show categories... that is not numeric.. I think it is not possible with the current charts.. is it??

Thank you in advance!
Sofia Sidirokastriti
Ves
Telerik team
 answered on 14 Dec 2010
4 answers
104 views
Hi,
I've specified different PointMark figures for different series. The legend marker is still rectangle. How can i make the legend marker to follow the series point mark figure?

Thanks in advance.
Lauren
Top achievements
Rank 1
 answered on 14 Dec 2010
1 answer
111 views
I have a report that works fine when accessing the viewer through a web app.  However, the designer view doesn't work.  I get an exception because code I added to my report class depends on a custom configuration section in the config file.  I added the custom config section to the app.config file in my report lib project, but it doesn't seem to "see" the section.

I've seen other postings about using the Settings in lieu of app.config, however, I'm not sure that's going to work in my case.  Any help would be appreciated.
Steve
Telerik team
 answered on 14 Dec 2010
1 answer
140 views
Hi,

Can someone please advise me how I can achieve the following:

I have a report whose page orientation is landscape.  I want to print it from my in-browser (IE8) Silverlight 4 application.  I want the print dialog button to appear so the user can choose a printer or change defaults, but I want the report to print in landscape by default (unless the user specifically changed this in the print dialog) and not print according to the printer's defaults. 

If I set UseNativePrinting to false then nothing happens when I press the Report Viewer's print button.  If I create my own button with the following code executing on the click event :
var reportViewerModel = reportViewer.DataContext as ReportViewerModel;
if (reportViewerModel.State.Equals("ViewerPageState"))
{
   reportViewerModel.PrintReportCommand.Execute(null);
}
nothing happens.

This should be easy.  Please help.

Thanks.
Peter
Telerik team
 answered on 14 Dec 2010
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?