Telerik Forums
Reporting Forum
1 answer
57 views
How do I add a support page to end of the report.  Heard something about using the report book, like to see an example on how to do this.  As much detail as possible, thanks in advance.
Peter
Telerik team
 answered on 15 Oct 2012
6 answers
365 views
Hi. I have built a DLL that generates  a PDF. The problem is that the error message "PDF rendering format is not available" appears, unless the Telerik dlls are referenced in the calling application.

How do I need to proceed?

Here is the code in the Calling Application:
            byte[] b = conv.GeneratePDF();  
 
            FileStream oFile = File.Open("C:\\test.pdf",FileMode.OpenOrCreate,FileAccess.Write,FileShare.None);  
            oFile.Write(b, 0, b.Length);  
            oFile.Close(); 

This is the code that is failing in the DLL:
        public byte[] GeneratePDF(List<FieldDescriptor> fieldList, DataTable dtFields, string reportName)  
        {  
            ReportDataTable = dtFields;  
            FieldList = fieldList;  
            ReportName = reportName;  
            Telerik.Reporting.Report report = GetReport();  
              
            string mimeType = string.Empty;  
            string extension = string.Empty;  
            Encoding encoding = null;  
            byte[] buffer = Telerik.Reporting.Processing.ReportProcessor.Render("PDF", report, null, out mimeType, out extension, out encoding);  
 
            return buffer;  
 
        }  
 

Of course, it fails on the "Render" call.
Mandar
Top achievements
Rank 1
 answered on 15 Oct 2012
3 answers
299 views
I have a report where I display the data in 2 columns, side by side.
In the group section I said to do a pagebreak when the group item changes.
However, the instead of going to the next page, it goes to the next column.

Therefore I tried to give a page break before and after the group. But it didn't help either.

Any idea on how to fix this bug?

Thanks.
Steve
Telerik team
 answered on 15 Oct 2012
2 answers
343 views
Hi

Is that in any way possible to set the detail section to a specific height and keep it even though there is not enough data in the child list to expand it? 
I have a fix layout, where the detail section has to have a background company logo that has to be shown on all pages.

As of now, when the list in the detail section expands to a second page, and takes up only one row, the rest of the detail section on that page is blank, and no logo is shown.

Is there a way to overcome this behaviour? (Please don't say it's design behavior ;) )

Thanks.
Steve
Telerik team
 answered on 15 Oct 2012
2 answers
162 views
Hi guys, just wondering if the telerik reporting pack can support Dynamic columns via the use of Pivot query(row data to column header)

i already have my SQL code set, and i cant have both Crystal Reports and SSRS work for me..

Let me know thank you!

Glenn
Top achievements
Rank 1
 answered on 13 Oct 2012
2 answers
167 views
When I run my application inside of Visual Studio 2010 the Ajax Report Viewer works beautifully.  When I run the same exact code inside of IIS on Windows 7, I get a "503 Service Unavailable" error out of IIS.  IIS isn't writing any log entries to any of the logs (event viewer, access logs, failed request trace logs, etc.).

I have the same exact code working on a Windows 2008 Server with no problems.

Is there something special that needs to be done for deploying the Telerik Report Viewer on Windows 7?

Is there any way to find out what is causing the 503 error?

Chris
Top achievements
Rank 1
 answered on 12 Oct 2012
1 answer
100 views

 We are getting Error

No parameterless constructor defined for this object. at Telerik.ReportViewer.WebForms.SerializableReportInfo.GetReport()

at System.RuntimeTypeHandle.CreateInstance(RuntimeType type, Boolean publicOnly, Boolean noCheck, Boolean& canBeCached, RuntimeMethodHandle& ctor, Boolean& bNeedSecurityCheck)
at System.RuntimeType.CreateInstanceSlow(Boolean publicOnly, Boolean fillCache)
at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly, Boolean skipVisibilityChecks, Boolean fillCache)
at System.Activator.CreateInstance(Type type, Boolean nonPublic)
at Telerik.ReportViewer.WebForms.SerializableReportInfo.GetReport()
at Telerik.ReportViewer.WebForms.SerializableReportDocument.GetDeserializedReport()
at Telerik.ReportViewer.WebForms.SerializableReportSourceWrapper.get_ReportSource()
at Telerik.ReportViewer.WebForms.ParametersPage.get_ReportDocument()
at Telerik.ReportViewer.WebForms.ParametersPage.get_ParamsManager()
at Telerik.ReportViewer.WebForms.ParametersPage.CreateChildControls()
at System.Web.UI.Control.EnsureChildControls()
at Telerik.ReportViewer.WebForms.ParametersPage.OnPreLoad(EventArgs e)
at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)


Binding datatable to telerik:ReportViewer

using Telerik.Reporting;
/// <summary>
/// Summary description for VersionHistory.
/// </summary>
public partial class RptVersionHistory : Report
{
public RptVersionHistory(DataTable dtable )
{
//
// Required for telerik Reporting designer support
//
InitializeComponent();
this.textBox8.Name = "Title";
this.textBox2.Name = "Version";
this.textBox3.Name = "Created By";
this.textBox7.Name = "Created Date";
this.textBox5.Name = "Modified By";
this.textBox4.Name = "Modified Date";
this.textBox1.Name = "Title";
this.DataSource = dtable;
//
// TODO: Add any constructor code after InitializeComponent call
//
}

In sharepoint application page in Page_Load calling as..

if (!this.IsPostBack)
{
InstanceReportSource reportSource = new InstanceReportSource
{ ReportDocument = new RptVersionHistory(this.DataTable) };
this.ReportViewer1.ReportSource = reportSource;
}

It’s working fine in Dev. Server but not on production it showing above error anyone knows how to find out error?

Chavdar
Telerik team
 answered on 12 Oct 2012
1 answer
68 views

For testing, I have a pie chart with 8 items.  The YValue of the item will be set in the NeedDataSource event. Since I am using the Telerik skin, the first item is green, second is yellow, third is red, and so on.  I need to have these color consistent since I will be referencing the color elswhere on the report.

Item1 = green
Item2 = yellow
Item3 = red
Item4 = blue

If I add only the items that have non-zero value the color will not be consistent.   For example, Item2 is zero then if I add Item1 then Item3:

Item1 = green
Item3 = yellow
Item4 = red
Item5 = blue

I need to make some of the items invisible.  However, setting Visible = false does NOT hide the item.  Suggestion?

I also tried the Remove() method but I get "An eroor occured while processing Chart... Object reference not set to an instance of an object."

foreach (ChartSeriesItem i in responseSeries.Items)
{
    ...
    if (i.YValue == 0)
    {
        i.Visible = false;                   
    }
   ...
}

 

Peter
Telerik team
 answered on 12 Oct 2012
3 answers
201 views
I successfully bound the datasource of the reportviewer, but the reportviewer itself isn't showing anything up. What am I missing?

var thisDataSet = SqlHelper.ExecuteDataset ( "Data Source=localhost;Initial Catalog=QmanagerDEV;User ID=sa;Password=secret", CommandType.StoredProcedure, "spQtask_SelectTaskBySimpleSearchToReport", SqlParameterList ( true ).ToArray () );
 
var objectDataSource = new Telerik.Reporting.ObjectDataSource();
objectDataSource.DataSource = thisDataSet;
 
Telerik.Reporting.Report report = new Report();
report.DataSource = objectDataSource;
 
Telerik.Reporting.InstanceReportSource reportSource = new InstanceReportSource();
reportSource.ReportDocument = report;
 
ReportViewer1.ReportSource = reportSource;
ReportViewer1.RefreshReport ();

I haven been trying to set the design of a Telerik ReportViewer, but not succeeded.
Is there a how-to somewhere, where I can see how to bind the design?

Thanks in advance,
Regards
 -Martin
Steve
Telerik team
 answered on 11 Oct 2012
2 answers
131 views
I have chosen the Mac skin and added a hatch to the Series-->Appearance-->FillStyle. In Fill Settings I have made my MainColor White and left the SecondColor what the skin populated.
In the designer the changes look the way I want and expect however at runtime it reverts back to the skin without hatching.
See the two images for a better idea. I am suspecting the Skin is overiding any changes I am trying to make.
Is there a way to add a hatch to series when you use a skin?

Thanks for any help
Steve
Telerik team
 answered on 11 Oct 2012
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?