Telerik Forums
Reporting Forum
4 answers
377 views
Type of project: Web Site, Class library, Windows forms application, WPF or Silverlight application?
Silverlight

Does the problem relate to the Win Viewer, Web Viewer, WPF or Silverlight viewer?
Silverlight Viewer

Step by step instructions on how to reproduce the problem.
User opens report of 5 pages. Prints specific pages 4-5. Actually prints pages 1-2.
Current workaround is to export or print to pdf, then print specific pages from adobe reader.

Used programming language (C# or VB.NET).
C#

OS version and applied service packs.
Windows Server 2012

Exact version of Telerik Reporting.
7.0.13.426

Have tried filing this in Telerik Public Issue Tracker on many occasions, always with no response.
Stef
Telerik team
 answered on 02 Dec 2015
1 answer
127 views

 

Generate report fault: 

No runtime item is defined for MyProject.Report1 item System.NotImplementedException: No runtime item is defined for MyProject.MyReport1 item

at Telerik.Reporting.Processing.ItemFactory.Create(Object itemDef)

at Telerik.Reporting.Processing.ReportProcessor.ProcessReport(ReportSource reportSource, IRenderingContext context)

at Telerik.Reporting.Processing.ReportProcessor.ProcessReport(ReportSource reportSource, Hashtable deviceInfo, IRenderingContext context)

at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRender(String format, ReportSource reportSource, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)

at Telerik.Reporting.Processing.ReportProcessor.ProcessAndRenderStateless(String format, ReportSource reportSource, Hashtable deviceInfo, IRenderingContext renderingContext, CreateStream createStreamCallback)

at Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, ReportSource reportSource, Hashtable deviceInfo)

at MyProject.ReportService.Export(ParameterReport param) at BR01Report.BR01Report.StartProcess()

 

Whats mean message: No runtime item is defined for... ?

Stef
Telerik team
 answered on 01 Dec 2015
1 answer
85 views

Hi,

 i want change icon resource collappse in reporting view, can you support me!

you can see attach files collapse, and i want change to file collapse-change

 thanks!

 

Stef
Telerik team
 answered on 30 Nov 2015
1 answer
295 views

Hi,

 

I'm using WPF with visual studio 2015.

I'm trying to display a basic report in a wpf telerik report viewer control.

I created the report Test.trdx using Report Designer Q3 2013 witch seems to be working fine in Preview mode.

1) I tried to connect the report viewer to display Test.trdx using visual studio 2015, however in report viewer properties, when clicking on Report Source -> New

    I receive the following message box from visual studio 2015 "No types are available for you to add to this collection".

2) I tried to connect the report viewer to display Test.trdx programmatically as follow but the report is not displayed:

    Telerik.Reporting.UriReportSource uriReportSource = new Telerik.Reporting.UriReportSource();
    uriReportSource.Uri = "C:\\WorkingDir\\Reporting\\Test.trdx";
    reportViewer.ReportSource = uriReportSource;
    reportViewer.RefreshReport();

 

Why am I receiving the message box error in (1) and why telerik report viewer is not displaying Test.trdx in (2)?

 Thanks

Sam

 

    

Stef
Telerik team
 answered on 30 Nov 2015
1 answer
63 views
Hello guys, 
like to know the release date of the last Telerik Testing Framework installer file? 
http://www.telerik.com/download/testing-framework

and also could tell me how to download *.msi installer?
Stef
Telerik team
 answered on 27 Nov 2015
1 answer
224 views

Hi!

 My customer has some strange requirement. From the ReportViewer (WPF) window he wants to click a button, then page one gets printed 4 times and all other pages from page two onwards should be printed 2 times. How can I achieve this with Telerik reporting?

Regards

Heiko

Stef
Telerik team
 answered on 27 Nov 2015
2 answers
252 views

I have this HTML code:

@(Html.TelerikReporting().ReportViewer()
    .Id("reportViewer")
.ServiceUrl(Url.Content("~/api/reports/"))
.TemplateUrl(Url.Content("~/ReportViewer/templates/telerikReportViewerTemplate-9.2.15.930.html"))
.ReportSource("Coordinaciones/Report1.trdx", new Dictionary<string, object>() { { "@Daes_id", "DAE011" } })
.ViewMode(ViewMode.Interactive)
.ScaleMode(ScaleMode.Specific)
.Scale(1.0)
.PersistSession(false)
.PrintMode(PrintMode.AutoSelect)
.ParametersAreaVisible(false)

Nasko
Telerik team
 answered on 27 Nov 2015
1 answer
215 views

Hi,

I create a report and i try to export it to PDF, I'm using C# ASP.net MVC 4 , but an unknown error occured and I can't resolve it, can you help me please, 

this is the C# Source code
and I the print screen of the generated PDF file in the attachements

 

        public ActionResult PrintRpt(int myId)
        {
            try
            {
                myReport report = new myReport();
                report.sqlDataSourceMyReport.Parameters[0].Value = myId;
                report.sqlDataSourceMyReport.ConnectionString = "";
                var processor = new ReportProcessor();
                var res = processor.RenderReport("PDF", report, null);
                var pdfSteream = new MemoryStream(res.DocumentBytes);
                FileStream file = new FileStream("d:\\file.pdf", FileMode.Create, FileAccess.Write);
                pdfSteream.WriteTo(file);
                file.Close();
                pdfSteream.Close();
                byte[] bytes = pdfSteream.ToArray();
                string base64String = string.Empty;
                try
                {
                    base64String = System.Convert.ToBase64String(bytes, 0, bytes.Length);
                    byte[] binaryData = System.Convert.FromBase64String(base64String);
                }
                catch (System.ArgumentNullException)
                {
                    throw new Exception("Binary data array is null.");
                }
                return Json(base64String, JsonRequestBehavior.AllowGet);
            }
            catch (Exception e)
            {
                return Json(e, JsonRequestBehavior.AllowGet);
            }
        }

 

 

haitham
Top achievements
Rank 1
 answered on 26 Nov 2015
3 answers
239 views

Dear users,

i want to use a class from my project to generate a report. i am able to use Public Property's from my class as long as it holds just one value with success

When i try to use a property like (remark: i want to print all values in it as a list)

Public Property douRundenZeiten As New BindingList(Of Double)        ' Feld mit allen Rundenzeiten - Messwerte

instead of the values the report shows  System.ComponentModel.BindingList1[System.Double] in the tablecell (table wizard as used)

Why will this happen and how to access the real values from the BindingList

A close by behavior also happens when i read in an xml file like

<?xml version="1.0" encoding="utf-8"?>
<TicketRun>
  <Fahrer>
    <Pos>1</Pos>
    <Kart>8</Kart>
    <NameOfDriver>Kart-Nr. 08</NameOfDriver>
    <Rnd>13</Rnd>
    <Rundenzeiten>
      <Laptime>120,06</Laptime>
      <Laptime>119,15</Laptime>
      <Laptime>126,12</Laptime>
      <Laptime>159,8</Laptime>
      <Laptime>147,46</Laptime>
      <Laptime>119,07</Laptime>
      <Laptime>119,22</Laptime>
      <Laptime>120,2</Laptime>
      <Laptime>119,64</Laptime>
      <Laptime>120,3</Laptime>
      <Laptime>120,2</Laptime>
      <Laptime>120,85</Laptime>
      <Laptime>121,34</Laptime>
    </Rundenzeiten>
    <Best>119,07</Best>
    <Speed>19,05</Speed>
  </Fahrer>

Using

Function ReadTicketWithTimesXml(xmlfile As String)
       Dim ds As New DataSet
       xmlfile = "e:/karatris/LTR.xml"
       ds.ReadXml(xmlfile)
       Return ds.Tables("Fahrer")
   End Function

and use this function as a source for an objectdatasource all values can be used in a report except the <Rundenzeiten> <Laptime> values.

The Report shows  System.Data.RelatedView in the table cell instead of the values.

Using the same xml in Altova Style Vision works like a charm for generating HTML Reports.

What is the reasons why it does not work the same way in reporting. Where is my mistake?

Attached is the view how the objectdatasource looks in visual studio 2012.

Any help is welcome

Martin Gartmann
 

Nasko
Telerik team
 answered on 26 Nov 2015
2 answers
133 views

Hello

Im having trouble reaching the detailsection of a loaded subreport, in my mainreport contructor.

 

here is my subreport loading procedure:

 

   this.subLP5.ReportSource = new subLP5a();

//change pagebreak of subreport detailsection

     DetailSection ds = (DetailSection)this.subLP5.Report.Items["detaillp5a"];
     ds.PageBreak = PageBreak.None;

 

I get ds=null despite "detaillp5a" is the existing name for subLP5a detailsection.

Should I adress the detailarea in another manner?

 

regards

Mark

 

 

Mark
Top achievements
Rank 1
 answered on 25 Nov 2015
Top users last month
Chester
Top achievements
Rank 1
Iron
Simon
Top achievements
Rank 1
Iron
Douglas
Top achievements
Rank 2
Iron
Iron
SUNIL
Top achievements
Rank 3
Iron
Iron
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?