Telerik Forums
Reporting Forum
7 answers
803 views

Hi,

I use trdx files for my reports and switch the database connection at runtime using the connection string manager code here, that code is used in a custom resolver.

Everything works fine but I have now added a parameter to my report that I would like to set the value of in c# at rutime. Looking through the connection manager code listed above I find that 'originalReportSource.Parameters' as below is empty - surely this should contain the parameter that is defined in my report or am I missing something?

ReportSource CreateInstanceReportSource(IReportDocument report, ReportSource originalReportSource)
{
    var instanceReportSource = new InstanceReportSource { ReportDocument = report };
    instanceReportSource.Parameters.AddRange(originalReportSource.Parameters);
    return instanceReportSource;
}

Stef
Telerik team
 answered on 15 Aug 2016
3 answers
313 views

I am using Telerik.Reporting in an ASP.NET MVC5 app.  We have recently upgraded to version 10.1.16.615.  When we deployed to QA, all reports fail with this message:

Error registering the viewer with the service.
An error has occurred.
Access to the path 'C:\Windows\TEMP\MvcApp\10.1.16.615\Cs\A\value.dat' is denied.

I have read several threads on this message, and tried deleting the file and then revising web.config

1. Deleting the file - no joy, next report run creates the file and throws same error.  I ma the only user on the system at this time.

2. Specifying a cache provider.  web.config contains:

under <configuration><configSections>

<section name="Telerik.Reporting" type="Telerik.Reporting.Configuration.ReportingConfigurationSection, Telerik.Reporting, Version=10.1.16.615, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" allowLocation="true" allowDefinition="Everywhere" />

under <configuration>

<Telerik.Reporting>
    <Cache provider="Memory" />
    <Extensions>
        <Render>
            <Extension name="IMAGE" visible="false" />
            <Extension name="MHTML" visible="false" />
            <Extension name="RTF" visible="false" />
            <Extension name="XPS" visible="false" />
        </Render>
    </Extensions>
</Telerik.Reporting>

The Extension element already existed - just showing the complete set.

Same error, not only restarted site but rebooted machine.

Ideas?

 

 

Stef
Telerik team
 answered on 15 Aug 2016
1 answer
255 views

Hi

I just installed the latest R2 reporting verson and set up an empty ASP.NET app with the standard report controller, and one simple report that I created in the Stand Alone designer (trdp).

I am calling the REST API using PostMan.

The call to formats works, as does clients, and I get a clientId

However, the call to /parameters or /instances hangs... it doesnt even show up in fiddler (whereas the other calls do).

What could be wrong?

POST http://localhost/ProjectCentral.Reporting/api/reports/clients

returns

{
  "clientId": "175035-70fc"
}

 

and

 

POST http://localhost:ProjectCentral.Reporting/api/reports/clients/173346-5ee7/parameters

{
  "report": "RDCertificate.trdp",
  "parameterValues": {
    "ProjectNumber": 2050122
  }
}

Hangs.

I am deploying to my local IIS Server on Windows 10 Anniversary Edition, 64 bit. Integrated App Pool running as Network Service, with access to the cache and reports folder (I see the cache files being written).

 

 

 

Stef
Telerik team
 answered on 15 Aug 2016
1 answer
403 views

In our testing of the report viewer, was found that it will not load properly in Microsoft Edge. It fails with the error message "This page is having a problem loading". Looking at the Report Viewer Browser support page it appears that Edge is not currently supported. Is there an ETA on when this will be a supported browser? We likely will need Edge working before we can fully consider this product.

Stef
Telerik team
 answered on 15 Aug 2016
4 answers
660 views
Hi,

I want to change the style / the theme of my report based on the User.
All my User have a UserGroup. My UserGroup has custom style.
All this information are in the DB.
UserStyle: ID | ID UserGroup | LOGO | Style 1 | Color 1 | ect..

I want change my report style with those informations.
I know it is possible to give my item a style name.
But Can i define it in the main report Code behind.

Bonus: Can I do this Only once for the Main Report?

Basically using Style Name as a CssClass.
Stef
Telerik team
 answered on 12 Aug 2016
18 answers
227 views

Hi

I am using reporting v.7.1.13.612

I have a graph with one line series, the Y axis is Numeric and the X axis is Category(numbers also).

When I have a lot of records I want to hide some of the category labels since it looks bad.

I found only a way to do that with Chart class but not with Graph class.

Thanks

Ron

Katia
Telerik team
 answered on 12 Aug 2016
2 answers
99 views

Hi Team,

 

I have used a excel to bind to my script and have done two iterations.

After the script is done when i am exporting my report, i want to see the data passed for the step in the report .But for each iteration it shows the same data whereas it runs for all sets of data in the excel :

"Enter text '/demo' in 'HdfsUrlText' - DataDriven: [$(path)]"

 

I want something of the following type i.e different data passed should be visible in the result so that we can know the difference of the result:

#Iteration1

"Enter text '/demo' in 'HdfsUrlText' - DataDriven: [$(path)]"

#Iteration2

"Enter text '/demo1' in 'HdfsUrlText' - DataDriven: [$(path)]"

 Please let me know how to set the value in the text field and make it data driven.

 

Katia
Telerik team
 answered on 12 Aug 2016
5 answers
705 views
I am currently evaluating Telerik reporting.  One of the projects that I work on requires that a report be generated so it will be formated as we have designed it to look, however we do not want it previewed by the user.  There are two seperate functionalities that we require.  One is the report would be sent directly to a printer.  The other function requires the report to be formated, converted to .pdf and saved directly into our SQL Database by means of a file stream into a binary max field.  We currently have this functionality in a VS2008 project using Crystal Reports.  My desire is to get away from Crystal as quickly as possible, I hope you tell me this can be done.   
Katia
Telerik team
 answered on 12 Aug 2016
5 answers
448 views
I'm trying to convert sqldatasource to dataTable but I recieved an error.

Here is the error:
'Telerik.Reporting.SqlDataSource' does not contain a definition for 'Select' and no extension method 'Select' accepting a first argument of type 'Telerik.Reporting.SqlDataSource' could be found (are you missing a using directive or an assembly reference?)


DataSourceSelectArguments args = new DataSourceSelectArguments();
DataView view = (DataView)sqlDataSource1.Select(args);
DataTable table = view.ToTable();

Which namespace should I use and which assembly should I add? Or maybe its not supported?

Stef
Telerik team
 answered on 12 Aug 2016
1 answer
83 views

Hello, 

I was wondering how I access the SelectedDocumentMapNode and DocumentMapNodes properties in WPF? 

The goal is to display my own document map with checkboxes next to each item so I can provide the user with a simple way to remove reports. Seems redundant to display a list of sections to include along with displaying the built-in Document Map. 

Thanks,

Amy

 

 

Stef
Telerik team
 answered on 12 Aug 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?