Telerik Forums
Reporting Forum
1 answer
170 views
Hi there -

I am using VB 2010 with 2013 Q3 reporting to generate a quick app that creates a report from a dataset created at runtime.
I followed the "best practices" in creating the solution; my UI app that contains the report viewer and a second project that contain the reports.

I create a dataset, datatable and manually add rows.  I followed previous examples to assign the created dataset to the report, however when I view the report, no rows are displayed.

The datatable contains two columns named BinTextValue and BinBarcodeValue.  On the report, the text fields value property is =Fields.[BinTextValue] and =Fields.[BinBarcodeValue].

Below is the code I am using to generate the dataset and set the datasource to the report.  Please let me know what I am missing.

Thanks
Bob

    Private Sub printBinLabels()
        Dim rpt As New BarcodeReport
        Dim rDS As New Telerik.Reporting.ObjectDataSource
        rDS.DataSource = getBinLabels()
        rDS.DataMember = "BinLabels"

        ' Print the labels
        Dim report As New Report
        report.DataSource = rDS


        Dim reportSource As New InstanceReportSource
        reportSource.ReportDocument = report
        rpt.ReportViewer1.ReportSource = reportSource
        rpt.ReportViewer1.RefreshReport()

        rpt.ShowDialog()
    End Sub

    Private Function getBinLabels() As DataSet
        Dim ds As New DataSet
        ds.DataSetName = "BarCodeLabels"

        Dim dt As New DataTable("BinLabels")
        dt.Columns.Add("BinTextValue", GetType(String))
        dt.Columns.Add("BinBarcodeValue", GetType(String))

        For Each line In BinNumbersTextBox.Text.Split(CChar(vbCrLf))
            If line.Trim.Length > 0 Then
                dt.Rows.Add(line.ToString, line.Replace("-", ""))
            End If
        Next

        ds.Tables.Add(dt)

        Return ds
    End Function

Bob
Top achievements
Rank 2
 answered on 06 Mar 2014
3 answers
167 views
Hi

Is it possible to create the look of a Fieldset / legend to block content together in a report?

Andy
Stef
Telerik team
 answered on 06 Mar 2014
1 answer
613 views
Environment: Visual Studio 2012 Up 4, MVC 4 application, Kendo.Mvc (2013.3.1324.440), Telerik.Reporting.* (7.2.14.127)

I am using "HTML5 Report Viewer" and a Custom Provider to hold the cache in a database.
Everything is working fine, however the cache saved in a database stays there forever.
How can I clear de cache? What the best time to do that?

Best regards,
Marcos Bernardelli

Stef
Telerik team
 answered on 06 Mar 2014
2 answers
521 views
I am converting an old application to WPF and I am looking
at the various report viewer options. The back end database provides the summarized
data in table format and all number fields are float types. Each row of number
values of the table needs to be displayed it a different format; row 1 is the
summed values (scientific notation), row 2 is the limit or goal (fixed decimal),
and row 3 is the decimal percentage of goal/limit (fixed decimal percent) and this
pattern repeats. SSRS provides an expression to format numbers for the entire
detail row of the tablix. I am looking for a similar solution in Telerik’s
report designer or is there a better method of doing this that I am
overlooking?

And thanks for a native WPF report viewer
control.
Andrew King
Top achievements
Rank 1
 answered on 06 Mar 2014
1 answer
319 views
When using an ObjectDataSource in the standalone report designer I am unable to preview the report. When I click the preview button I get an error that reads:

"An error occurred while invoking data retrieval method.
Exception has been thrown by the target of an invocation.
Object reference not set to an instance of an object."

The report works correctly and renders fine when running it through our application, but refuses to preview from the designer even though all design work, data source creation etc has been done through the designer.

We were intending to allow users to edit the reports themselves, certainly to change style and/or formatting, but this will not be possible without the ability to preview the reports. We don't want to have to force the end user to have to run the report through our application every time they want to see a change to the styling etc, but this seems to be the only thing that works.
Peter
Telerik team
 answered on 05 Mar 2014
11 answers
682 views
The attachement shows show my graph looks like.

I want to display the labels on the y-axis instead of the default "ALL" text. How do I do this?

Secondly, the x-axis starts at 1 as shown in the attachment. How do I make it start at 0?

Thanks.
Nasko
Telerik team
 answered on 05 Mar 2014
2 answers
183 views
I have posted the problem here:
http://www.telerik.com/forums/issue-with-telerik-report-viewer#YHzoAB0DRUOI3q1oXCJc2Q

Since there is no reply, i will create a new thread.

I am currently running Telerik Report ver Q1 2014, Telerik UI for WPF ver 2014.1.224.40, VS2010.
I wonder what is missing?
Nasko
Telerik team
 answered on 05 Mar 2014
7 answers
639 views
Hi

Is there a way to open the print dialog when you press the print button. Currently it askes if I want to open or save a PDF.

Andy
Peter
Telerik team
 answered on 05 Mar 2014
1 answer
567 views
Hi,
i have a table on my report. The Table is dynamic.
Now i would change the backgroundColor of a specified row.

How can i do something like this?
table.Bindings.Add( new Telerik.Reporting.Binding("Style.Background.Color"),"=IIF(Fields.1 == 'Summe', 'Red','Green')");

Thnaks for your answer....
Thomas
Top achievements
Rank 1
 answered on 05 Mar 2014
1 answer
114 views
So I'm currently part of a team that has been tasked with revamping a major corporation's reporting systems. There are a massive amount of reports done in Crystal Reports 8 (circa 1999) that we'd like to move over into Telerik Reporting. I know Telerik can convert from Crystal 10 and later, but what are my options for Crystal 8? Are there any converters that will get me from 8 to 10, so I can use Telerik for the conversion from 10 to Telerik? Any advice would be appreciated.
IvanY
Telerik team
 answered on 04 Mar 2014
Top users last month
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Hiba
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
Max
Top achievements
Rank 1
Veteran
Iron
Alina
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?