Telerik Forums
Reporting Forum
16 answers
776 views
Hi

     I installed the telerik_reporting_2010_1_10_317_trial.msi on my xp pro system. I followed the instruction to create a new telerik report. but received error message :
  The assembly reference "Telerik.Reporting, Version=4.0.10.317,Culture=neutral,PublicKeyToken=a9d7983dfcc261be" could not be added to the project. This wizard will continue to run , but the resulting project may not build properly.

Please help

regards

Willie
KS
Top achievements
Rank 1
 answered on 24 Jan 2014
5 answers
287 views
Hi,
           
              I need to have a table sort of structure appear from second page on wards at the top of the page after header section. table I add should be visible if pageNumber > 1. I added a set of texboxes in a panel to the header section and made it visible conditionally using pageNumber, but when hidden it leaves a space :(. if I can repeat a table structure in page body section and make visible after the first page would help me. I need an answer soon. thank u in advance guys.

                 
Shivanka
Top achievements
Rank 1
 answered on 24 Jan 2014
5 answers
277 views
Hi,

I have a report with a dateTime type report parameter, which is used in a where quairy in sqldatasource   . It works when I run it with with this

Thread.CurrentThread.CurrentUICulture = new System.Globalization.CultureInfo("en-US");

 

 

Thread.CurrentThread.CurrentCulture = new System.Globalization.CultureInfo("en-US");

 


in the report initializer.

How ever when running the report in my default culture (is-IS) the report fails with the message 

The conversion of nvarchar data type to datatime data type resulted in an out of range value.

This happens when the day of month is greater than 12 , so it thinks that the day is the month.

Is this a bug ?.

Best 

Ole 
erwin
Top achievements
Rank 1
Veteran
Iron
 answered on 23 Jan 2014
1 answer
148 views
How i can change the labels language of reportViewer, e.g. "Imprimir" instead of "Print", "Vista previa" instead of"Preview"
Daniel
Top achievements
Rank 1
 answered on 23 Jan 2014
4 answers
2.4K+ views
Hello,
I have a report that contains a SubReport. The sub report ReportSource is set to a type name.
What I would like to define in the designer is that the DataSource of the sub report is the same as the DataSource of the main report. How can I do this?
Patrick
Patrick
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 23 Jan 2014
2 answers
149 views
Hi,

I'm trying to layout a cross tab report with 2 sub rows on the Column details.
Take a closer look at my sample.


Thanks,
Ron Jay
Top achievements
Rank 2
 answered on 23 Jan 2014
1 answer
91 views

In other projects I have had no problems using the HTML5 Report viewer extension for MVC but I can not implement it in my current project.


The page containing the report viewer displays "loading.." in the top left corner but the report is never loaded.

I have debugged the application with Fiddler and Firebug but can see no errors.

The report service (Web API) controller is never called which is probably the root cause.



Comparing Fiddler traces between applications where reporting works and the application with the problem shows that the call

http://localhost:34639/ReportViewer/templates/telerikReportViewerTemplate.html is never made



Does anybody have any suggestions on how to debug this problem.

Stef
Telerik team
 answered on 22 Jan 2014
6 answers
414 views
I have been looking for an example of displaying data in objects that have data items in a list. I can display the first level "items" in a table but cannot retrieve the attributeItems data to display.

I want the report to look like this:
Name        Attribute Name     Attribute Value
XXXX        XXXXXXX                XXXXXX
                XXXXXXX                XXXXXX
XXXX        XXXXX                    XXXX
                XXXX                        XXXXXXX
                XXXXX                        XXXXX
I have yet to find any examples using objects or even a decent tutorial on crosstab reports. I have downloaded one project but this is returning a datatable object.

Here is the report code.

namespace

 

 

Reports

 

{

 

 

using System;

 

 

 

using System.Collections.Generic;

 

 

 

using System.ComponentModel;

 

 

 

using System.Drawing;

 

 

 

using System.Windows.Forms;

 

 

 

using Telerik.Reporting;

 

 

 

using Telerik.Reporting.Drawing;

 

 

 

/// <summary>

 

 

 

/// Summary description for CrossTabReport.

 

 

 

/// </summary>

 

 

 

public partial class CrossTabReport : Telerik.Reporting.Report

 

{

 

 

public CrossTabReport()

 

{

 

InitializeComponent();

}

}

[

 

DataObject]

 

 

 

public class CrossTabReportModel {

 

[

 

DataObjectMethod(DataObjectMethodType.Select)]

 

 

 

public CrossTabData getData() {

 

 

 

return new CrossTabData();

 

}

}

 

 

public class CrossTabData {

 

 

 

public CrossTabData() {

 

title =

 

"CROSS TAB DATA";

 

items =

 

new List<CrossTabItem>() {

 

 

 

new CrossTabItem { itemName = "FRED",

 

itemAttributes =

 

new List<ItemAttribute>()

 

{

 

 

new ItemAttribute{ attribName = "HAIR", attribValue= "BROWN"},

 

 

 

new ItemAttribute{ attribName = "EYES", attribValue= "BROWN"},

 

 

 

new ItemAttribute{ attribName = "HEIGHT", attribValue= "5'6"},

 

 

 

new ItemAttribute{ attribName = "WEIGHT", attribValue= "200"}

 

}

},

 

 

new CrossTabItem { itemName = "SAM",

 

itemAttributes =

 

new List<ItemAttribute>()

 

{

 

 

new ItemAttribute{ attribName = "HAIR", attribValue= "BLONDE"},

 

 

 

new ItemAttribute{ attribName = "EYES", attribValue= "BLUE"},

 

 

 

new ItemAttribute{ attribName = "HEIGHT", attribValue= "6'0"},

 

 

 

new ItemAttribute{ attribName = "WEIGHT", attribValue= "210"}

 

}

},

 

 

new CrossTabItem { itemName = "CHILLY",

 

itemAttributes =

 

new List<ItemAttribute>()

 

{

 

 

new ItemAttribute{ attribName = "HAIR", attribValue= "BROWN"},

 

 

 

new ItemAttribute{ attribName = "EYES", attribValue= "GREEN"},

 

 

 

new ItemAttribute{ attribName = "HEIGHT", attribValue= "5'10"},

 

 

 

new ItemAttribute{ attribName = "WEIGHT", attribValue= "150"}

 

}

}

};

}

 

 

public string title { get; set; }

 

 

 

public List<CrossTabItem> items { get; set; }

 

}

 

 

public class CrossTabItem {

 

 

 

public string itemName { get; set; }

 

 

 

public List<ItemAttribute> itemAttributes { get; set; }

 

}

 

 

public class ItemAttribute {

 

 

 

public string attribName { get; set; }

 

 

 

public string attribValue { get; set; }

 

}

}

Thanks for any help.

Stef
Telerik team
 answered on 22 Jan 2014
1 answer
904 views

I have a simple report.

I want this displayed:

--------------------------------------------

Product Name 1

  Product ID 1

     Product 1 Feature 1

     Product 1 Feature 2

     Product 1 Feature 3

Product Name 2

   Product ID 2

      Product 2 Feature 1

      Product 2 Feature 2

-------------------------------------------------------

I have the layout in a table like this (in one column):

--------------------------------------------------------

Fields.ProductName

Fields.ProductID

Fields.ProductFeature

---------------------------------------------------------

The printout is ok but how do you page break for the entire group? In other words, I want a page break after Product 1 Feature 3 and a page break after Product 2 Feature 2.  I have looked everywhere. You don't have a page break for groups.

I am using a Crosstab. How do you set a page break after a Crosstab?

Stef
Telerik team
 answered on 22 Jan 2014
1 answer
120 views

Can someone please tell me what is incorrect with the following code. It only fails when the TIFF is one page.

Public Sub CreateProcessNotesTIFF()
    Dim instanceReportSource As New Telerik.Reporting.InstanceReportSource()
    instanceReportSource.ReportDocument = New ProcessNotes
    instanceReportSource.Parameters.Add(New Telerik.Reporting.Parameter("ProcNo", _procNo))
    instanceReportSource.Parameters.Add(New Telerik.Reporting.Parameter("ApplicantName", _applicantName))
    Dim reportProcessor As New Telerik.Reporting.Processing.ReportProcessor()
    'set any deviceInfo settings if necessary
    Dim deviceInfo As New System.Collections.Hashtable()
    deviceInfo("OutputFormat") = "TIFF"
    deviceInfo("TiffCompression") = "ccitt4"
    deviceInfo("DpiX") = 300
    deviceInfo("DpiY") = 300
    'deviceInfo("DpiX") = 120
    'deviceInfo("DpiY") = 120
    'Dim result As Telerik.Reporting.Processing.RenderingResult = reportProcessor.RenderReport("PDF", instanceReportSource, deviceInfo)
    Dim result As Telerik.Reporting.Processing.RenderingResult = reportProcessor.RenderReport("IMAGE", instanceReportSource, deviceInfo)
    Dim fileName As String = result.DocumentName + "." + result.Extension
    'Dim path As String = System.IO.Path.GetTempPath()
    Dim path As String = System.IO.Directory.GetCurrentDirectory()
    Dim filePath As String = System.IO.Path.Combine(path, fileName)
    Using fs As New System.IO.FileStream(filePath, System.IO.FileMode.Create)
        fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length)
    End Using
End Sub
The following code has TiffCompression commented and both single and multiple page TIFFs are exported

Public Sub CreateProcessNotesTIFF()
    Dim instanceReportSource As New Telerik.Reporting.InstanceReportSource()
    instanceReportSource.ReportDocument = New ProcessNotes
    instanceReportSource.Parameters.Add(New Telerik.Reporting.Parameter("ProcNo", _procNo))
    instanceReportSource.Parameters.Add(New Telerik.Reporting.Parameter("ApplicantName", _applicantName))
    Dim reportProcessor As New Telerik.Reporting.Processing.ReportProcessor()
    'set any deviceInfo settings if necessary
    Dim deviceInfo As New System.Collections.Hashtable()
    deviceInfo("OutputFormat") = "TIFF"
    'deviceInfo("TiffCompression") = "ccitt4"
    deviceInfo("DpiX") = 300
    deviceInfo("DpiY") = 300
    'deviceInfo("DpiX") = 120
    'deviceInfo("DpiY") = 120
    'Dim result As Telerik.Reporting.Processing.RenderingResult = reportProcessor.RenderReport("PDF", instanceReportSource, deviceInfo)
    Dim result As Telerik.Reporting.Processing.RenderingResult = reportProcessor.RenderReport("IMAGE", instanceReportSource, deviceInfo)
    Dim fileName As String = result.DocumentName + "." + result.Extension
    'Dim path As String = System.IO.Path.GetTempPath()
    Dim path As String = System.IO.Directory.GetCurrentDirectory()
    Dim filePath As String = System.IO.Path.Combine(path, fileName)
    Using fs As New System.IO.FileStream(filePath, System.IO.FileMode.Create)
        fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length)
    End Using
End Sub




Nasko
Telerik team
 answered on 22 Jan 2014
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?