Telerik Forums
Reporting Forum
1 answer
224 views

Hi,

I accidentally posted this to the main report forum. Sorry for the duplicate. Anyhow … 

I am using asp.net core and we have dev and production environments set up on different machines.
How can I pass a connection string that is appropriate for the given environment to the .trdf report? I've tried everything I can think of.
There was a long winded article with what seemed to be a very complicated way of doing something that should be simple.
(https://www.telerik.com/support/kb/reporting/details/changing-the-connection-string-dynamically-according-to-runtime-data).
All I want is to read the appsettings.json file, pull the correct connection string from there and pass it to the .trdf at runtime.
My kingdom for a simple example!
Thanks ... Ed


Silviya
Telerik team
 answered on 17 May 2019
1 answer
593 views
Hello Everyone,
I am using Telerik Standalone Report designer.
I have following issues regarding export to excel.
1. Padding is not working in Excel.
2. Text color set through HTMLBox is not working in excel.
3. Page layout is not working  as PDF.(I can print report from PDF in one Landscape page but from excel it will expand columns so it will not fit in one Landscape page )

in attached Excel screenshot you can see the Padding issue in right and Left side and also text color issue.
PDF screenshot is perfect.

Please reply if you have any Solutions related this issues.
Neli
Telerik team
 answered on 16 May 2019
4 answers
711 views

We are using HTML 5 Report Viewer and sometimes the report doesn't render correctly (please see attached). If we press the refresh button in the viewer again, the report cleans up.

This happens intermittently and not all the time.

Todor
Telerik team
 answered on 16 May 2019
2 answers
224 views

 Hi, 

    I have created a trdx report and i can download it as .txt file by changeing codes in we config by referring CSV device information settings.

 

Neli
Telerik team
 answered on 16 May 2019
3 answers
1.1K+ views

Hi..

    Good morning..

Againg Suriya...

Now I have trying to wraping the text in a single textbox.... but i have no idea about it...

For example :

        i need output as :

       

          Raja ia a good boy.

          Pooja also too.

         but the input is   

         Raja ia a good boy.Pooja also too.

please solve my problem as soon as problem...

             By Suriya

Jolanta
Top achievements
Rank 1
Veteran
 answered on 15 May 2019
1 answer
263 views

Hello,

I am new to the telerik reports.

I am trying to create a report, I have managed to create them using static data, linking the report to a class and creating a list in its constructor, but now what I want is:

I have an object which contains a list of dynamic data,similar to the obj.png, which I want you to see in my report.

How do I pass the suscripcion object to the report1 to show the fields, as in the suscrip.png image?

 

Thank you.

Neli
Telerik team
 answered on 15 May 2019
1 answer
1.5K+ views

Hi,

I am using asp.net core and we have dev and production environments set up on different machines.

How can I pass a connection string that is appropriate for the given environment to the .trdf report? I've tried everything I can think of.

There was a long winded article with what seemed to be a very complicated way of doing something that should be simple.

(https://www.telerik.com/support/kb/reporting/details/changing-the-connection-string-dynamically-according-to-runtime-data).

All I want is to read the appsettings.json file, pull the correct connection string from there and pass it to the .trdf at runtime.

My kingdom for a simple example!

Thanks ... Ed

 

Todor
Telerik team
 answered on 15 May 2019
0 answers
64 views

I have a crosstab with this structure (year, quarter, month columns) (see attachment)

Based on which column group is expanded I want to show a different value in the yellow field.

 

  • if the Year column is collapsed I want to show field1.Value
  • if the Year column is expanded I want to show field2.Value
  • if the Quarter column is expanded I want to show field3.Value

I tried using scopes but I the scope doesn't exists I get an error. So in case the Year column is collapsed I get an error that the month scope doesn't exists.

Is there a function to check if a certain scope does exists?

 

 

 

 

Marcel
Top achievements
Rank 1
 asked on 14 May 2019
6 answers
202 views

I got a big question!

 

I used reporting and its DocumentMapText 

The content of the DocumentMapText contains Chinese

but it can display Chinese it becomes symbols

 

what can I do to solve it ?

Silviya
Telerik team
 answered on 14 May 2019
1 answer
476 views

I have a report book which I create through C# code. I want to have a single TOC covering all the reports in the report book. 

Following this (https://docs.telerik.com/reporting/designing-reports-reportbook-toc) I started creating a TOC but this article (https://docs.telerik.com/reporting/table-of-contents-report-book) says to add TocReportSource of ReportBook programmatically. But the problem is it doesn't have any example of how to do that. Can you add a sample code of how to achieve this..

 

//Report Book
var reportBook = new ReportBook();
 
//Cover Page
var coverPageReportSource = new InstanceReportSource();
var coverPagereport = new CoverPage(reportId)
{
    DocumentName = "Cover Page Report"
};
coverPageReportSource.ReportDocument = coverPagereport;
reportBook.ReportSources.Add(coverPageReportSource);
 
//TOC Page
var tocPageReportSource = new InstanceReportSource();
var tocPagereport = new FirstPage()
{
    DocumentName = "toc Page Report"
};
tocPageReportSource.ReportDocument = tocPagereport;
reportBook.ReportSources.Add(tocPageReportSource);
 
//Image Report
var imagesReportSource = new InstanceReportSource();
var imagesDatareport = new ImageReport()
{
    DocumentName = "Image Report"
};
imagesReportSource.ReportDocument = imagesDatareport;
reportBook.ReportSources.Add(imagesReportSource);
 
var instanceReportBookSource = new InstanceReportSource
{
    ReportDocument = reportBook
};
 
var reportProcessor = new ReportProcessor();
var renderingResult = reportProcessor.RenderReport("PDF", instanceReportBookSource, new Hashtable());
Neli
Telerik team
 answered on 14 May 2019
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?