Telerik Forums
Reporting Forum
1 answer
47 views

After the the report initialization when I call the reportViewer.RefreshReport() my screen resolution and size stays the same, but my application dimension (screen size) changes, causing my application to become smaller.

 

any idea what is causing this ?

Katia
Telerik team
 answered on 08 Sep 2016
1 answer
83 views

Hi,

I am trying to set my report datasource at runtime but it always seems to be recreated each time the report is refreshed. Basically I need to pass some complex parameters into my object's constructor (meaning that using report parameters wont be sufficient as they aren't basic types). I'm using the WinForms viewer and Q1 2016 reporting.

            var report = new MyReport();
            var ds = new MyReportDataSource();
            var objDs = new ObjectDataSource(); // I want to be able to pass some complex parameters here to initialize the object - this is just a trivial example
            objDs.DataSource = ds;
            objDs.DataMember = "Text";
            report.DataSource = objDs;
            var reportSource = new InstanceReportSource();
            reportSource.ReportDocument = report;
            ctl_Report.ReportSource = reportSource;
            ctl_Report.RefreshReport(); // This causes the constructor of MyReportDataSource to be called again

 

I have also tried setting the report.DataSource property to null, which causes the NeedDataSource event to fire - but this doesn't help as even if I set the datasource in the event callback, the constructor of MyReportDataSource gets called AGAIN when calling RefreshReport().

Is there a way to "inject" data into the report without it explicitly calling the constructor of the ObjectDataSource's data member?

 

Thanks,

Phil

Stef
Telerik team
 answered on 07 Sep 2016
3 answers
187 views

Hi,

When creating a report programmatically, using the old charts for reporting I could populate the data for the chart directly using eg. series.Items.Add(mydataitem) - this way I could build a chart by simply inserting data items manually without any datasource. I am now using the new Graph object and I cannot figure out how to dot his - is it even possible?

Katia
Telerik team
 answered on 07 Sep 2016
4 answers
286 views

Hi,

I have a custom resolver working with my html report viewer to display trdx's just fine. Some reports though are not trdx though so I will create these purely in code (in my resolver?) and pass the report to the viewer. I have tried the code below and it seems to work but I just need to confirm that I am doing it the correct way?

ie. is it correct to return a report object instance from the custom resolver?

public class MyResolver : IReportResolver
{
    public Telerik.Reporting.ReportSource Resolve(string report)
    {
        Report rpt = new Report();
 
        ObjectDataSource ods = new ObjectDataSource();
        ods.DataSource = GetSomeData();
        rpt.DataSource = ods;
     
    /*
    ...code to set up report items...
    */
             
        return rpt;
}
 }

 

 

Katia
Telerik team
 answered on 07 Sep 2016
1 answer
291 views

Hi,

We are evaluating telerik reports.

The below code snippet is defined in the Report Controller. Report works fine. But when a report is generated, the number of open connection of the telerikSession (used only for cache) is high and they do not get closed. I tried with one user, running one report and the number of openconnections is 30. Can you help me sort out this issue?

static ReportServiceConfiguration preservedConfiguration;
static IReportServiceConfiguration PreservedConfiguration
{
get
{
if (null == preservedConfiguration)
{
preservedConfiguration = new ReportServiceConfiguration
{
HostAppId = "ABC",
Storage = new MsSqlServerStorage(ConfigurationManager.ConnectionStrings["TelerikSession"].ConnectionString),
//Storage = new FileStorage(),
ReportResolver = new OrgnResolver(),
ReportSharingTimeout = 0,
// ClientSessionTimeout = 15,
};
}
return preservedConfiguration;
}
}

Thanks

Stef
Telerik team
 answered on 07 Sep 2016
1 answer
148 views

If I have the Reporting WebAPI setup so that it's working, ie http://localhost:56200/api/v1/report/ is returning:

[{"name":"PDF","localizedName":"Acrobat (PDF) file"},{"name":"CSV","localizedName":"CSV (comma delimited)"},{"name":"XLS","localizedName":"Excel 97-2003"},{"name":"RTF","localizedName":"Rich Text Format"},{"name":"IMAGE","localizedName":"TIFF file"},{"name":"MHTML","localizedName":"Web Archive"},{"name":"XPS","localizedName":"XPS Document"}]

What would cause a 404 when attempting to retrieve a template? ie:

http://localhost:56200/api/v1/report/resources/templates/telerikReportViewerTemplate-html

Stef
Telerik team
 answered on 07 Sep 2016
1 answer
340 views
Hey my headers sometimes are not attaching to a csv export at work. I am doing nothing differently. Example of scenario today. Logged in exported to csv and worked no problem. Reset the application repeated exact same steps with no difference and no headers. I've attached screenshots of the problem. Any pointers on how to fix this would be greatly appreciated.
Katia
Telerik team
 answered on 05 Sep 2016
12 answers
893 views

  We are using Telerik Reporting to generate our report, we are facing following problems.

Stef
Telerik team
 answered on 02 Sep 2016
5 answers
169 views
In crosstab when I set the angle to 270, the text alignment is ignored and is always right aligned. Please see the attached screenshots. Is there a way for the report to actually align as set on design?
Katia
Telerik team
 answered on 02 Sep 2016
7 answers
250 views

Can anyone explain the paging that is happening in this report?

Ive set KeepTogether = false everywhere I can think of. Also Group Keep Together is false.

But it is still throwing pages as if KeepTogether was true in some places.

Katia
Telerik team
 answered on 02 Sep 2016
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?