Telerik Forums
Reporting Forum
1 answer
587 views
Current Telerik Version: Q1 2014 (Just updated)
Type of project: WinForms

Hello,

I am currently having a problem with my report viewer showing an inaccurate count of page numbers for my Telerik Report.  After looking into the issue more, I found that the viewer shows additional rows when viewing, then what is printed out on paper.  It looks to be around the height for a normal Portrait view when viewing it, andit still stretches its width to fit a landscape view (so its around 11" x 11" when viewing, but 11"w x 8.5"h when printing).

I have set the report PageSettings as follows:

this.PageSettings.Landscape = true;
this.PageSettings.PaperKind = System.Drawing.Printing.PaperKind.Letter;

I assumed that having it set to Landscape true would get the desired results for the report.  I also have been unable to find a setting in the report viewer that forces the document viewer to view the report in a specific size.

Is there something I am doing wrong?  Is there a setting that I need to set in order for the viewer to recognize that it is a landscape layout and not a portrait layout?

Thank you for your assistance.
Nasko
Telerik team
 answered on 06 Mar 2014
3 answers
901 views
Hello,
I'm having trouble finding out how to accomplish this...I'm on Reporting Q1 2010.

I'm creating an invoice report.  It has a header, footer, and a detail section in the middle with the line items on the invoice.  It's a half page report (8.5 x 5.5) that needs to print twice on one full page, and will be torn on a perforation in the middle, giving the user 2 copies.  If there's not too many line items, there's no problem.  However, when the line items exceed what fits on the first page, I need them to overflow to a 2nd page.  I've attached an image to represent what I'm trying to do.

I've tried the Report Book, but each report starts on a new page, so that won't work.

I've also tried doing it with Subreports.  However, the detail section just keeps going when there's too many items, which eventually just "pushes" the 2nd copy over onto a new page.

What is the best way to accomplish this?

Thanks,
Jay
Stef
Telerik team
 answered on 06 Mar 2014
6 answers
674 views
As odd as it may sound, this is what i am facing.
I am printing the barcode report to Agrox CP-2140 PPLB label printer.
The paper size is set to 104 mm (W) and 60mm (H).
When print, the label appears in landscape orientation (which is not what i want because it occupies 2 stickers)

When the paper size is set to 104mm (W) and 104mm(H), the label is printed in portrait orientation. However, this is also not desirable because the printer is advancing more empty labels.

I am using Q3 2013 SP1, version 7.2.14.127.

Here is my print code:
m_ReelLabel.UnitOfMeasure = UnitType.Mm;
m_ReelLabel.Width = new Unit(98.0, UnitType.Mm);
DetailSection detail = new DetailSection();
detail.Height = new Unit(50.0, UnitType.Mm);

m_ReelLabel.PageSettings.PaperKind = PaperKind.Custom;
m_ReelLabel.PageSettings.PaperSize = new SizeU(new Unit(104, UnitType.Mm), new Unit(60, UnitType.Mm));
m_ReelLabel.PageSettings.Margins.Left = new Unit(2.0, UnitType.Mm);
m_ReelLabel.PageSettings.Margins.Right = new Unit(2.0, UnitType.Mm);
m_ReelLabel.PageSettings.Margins.Top = new Unit(2.0, UnitType.Mm);
m_ReelLabel.PageSettings.Margins.Bottom = new Unit(2.0, UnitType.Mm);
 
InstanceReportSource src = new InstanceReportSource();
src.ReportDocument = m_ReelLabel;
 
PrinterSettings printerSettings = new PrinterSettings();
PrintController standardPrintController = new StandardPrintController();
Telerik.Reporting.Processing.ReportProcessor processor = new Telerik.Reporting.Processing.ReportProcessor();
processor.PrintController = standardPrintController;
processor.PrintReport(src, printerSettings);

Nasko
Telerik team
 answered on 06 Mar 2014
1 answer
139 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
134 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
565 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
494 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
296 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
602 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
148 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
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?