Telerik Forums
Reporting Forum
1 answer
584 views

Hi,

I have two different projects, one for the reporting service which uses telerik REST services and other is the web appication with HTML 5 report viewer (javascript).

As my web application is used by different clients the connection strings for each client is different so I am sending the connection string for the data source as one of the report parameter. So how do I assign this connection string to the report datasource when the report is run.

First I tried the below code in report constructor but it did not work.

public Quotation()
        {
            // Required for telerik Reporting designer support
            //
            InitializeComponent();
            this.sdsQuotationAmounts.ConnectionString = ReportParameters["connectionstring"].Value.ToString();
            this.sdsQuotationInfo.ConnectionString = ReportParameters["connectionstring"].Value.ToString();
            //
            // TODO: Add any constructor code after InitializeComponent call
            //    
        }

If I use the custom report resolver the report parameters are not accessible, so how to solve this requests by sending the connection string as report parameters.

Thanks

Katia
Telerik team
 answered on 06 Jun 2016
1 answer
409 views

Hi, I need some help getting the Telerik Report to show up when I add a new item to a class library project.

I have followed this guide completely yet I still cant get the template to show up: http://www.telerik.com/support/kb/reporting/details/telerik-reporting-item-template-is-missing.

I am using Visual Studio 2015, and the free trial of Telerik Reporting 2016.

Thanks.

Stef
Telerik team
 answered on 06 Jun 2016
1 answer
305 views

How can i perfome some custom action on the press of the refresh button in wpf ReprotViewer?

For example i would like to save some data to the database, or load some data from webservice.

Stef
Telerik team
 answered on 06 Jun 2016
5 answers
322 views

Hi,
I have been through the docs so many times but I am really struggling to work out how to hang this together.

What I am hoping to achieve (using an in-app hosted report server as this appears to be the new, recommended method):
1. Desing reports using the standalone designer on my dev machine, pointing to my local sql server
2. Deploy the reports to a live client site and view the report in my aspx page, using a db connection configured in the client website.

What I have done so far:
1. Created a report on my dev machine which runs just fine in the standalone designer
2. Add a report viewer page to my app using the .NET template 'Telerik web Forms Report Viewer Form R2 2106'
3. This gave me a report viewer page, a Reports folder, and a ReportController class.
4. I dumped my trdp file into the \Reports folder.
5. I set <ReportSource IdentifierType="UriReportSource" Identifier="Report1.trdp"> in my report viewer page
6. Running the page, gives an error about database connection being incorrect and a whole bunch of other stuff.

What I don't get:
1. How does the report viewer form know where to find the REST service serving the report?
2. Is the ReportsController.cs all I need or do I need additional stuff to make the REST service work?
3. How do I switch the report database connection at run time?

Please help.

Al
Top achievements
Rank 1
Iron
Iron
Iron
 answered on 06 Jun 2016
1 answer
140 views

I'm trying curently to change standart configuration of wpf report engine.

in the documentation is mentioned http://docs.telerik.com/reporting/configuring-telerik-reporting that its posible to configure an engine in App.config

 file. How ever couldn't find this section in my project or in examples projects.

Could you give me some example how do i configure engine  correctly:

To prevent font embedding

To comporess output file(if it's possible)

Stef
Telerik team
 answered on 06 Jun 2016
1 answer
214 views
Is there a way to configure a datasource to point to a url that returns data?
Katia
Telerik team
 answered on 06 Jun 2016
2 answers
396 views

The report was built in the stand-alone designer, so I've posted it here - if this thread belongs elsewhere, please feel free to move it.

 

I've a report that displays a generic line chart: value vs time (with a group, so that multiple lines can be generated).

Y axis is a value, X axis is a date.

I have both axes set to scale automatically.

I have the data points "turned on", and they are set to "auto", so that they each get a different glyph, 

In theory, I can feed the report any dataset that contains date, value, group, to get a line chart that has variable number of lines to represent the "group" data. (In actuality, this is a sub-report, the parent report passes in an identifier, which the datasource eventually uses to determine what data gets returned. This allows for generic reuse of my line graph...

This system works extremely well except:

 

#1

If the data comes back with only one value, the graph's scales render out to "logical" values, but the data point is not visible. Using the same report but ensuring two rows of data come back, a line is correctly generated on the report. Have I done something wrong? Or are line charts not designed to display anything when there isn't enough data to draw a line?

 

#2

If the values on the report are all the same "nice round number", it often generates a Y axis scale where the "top" value is that same "nice round number", resulting in a line that is "on" the top edge of the graph. Is there a way to force the "automatic scaling" of a numeric axis to be "larger" than the range? i.e., I'd like to suggest that Scale.Minimum and Scale.Maximum properties allow expressions so that that we might enter expressions equivalent to:  "= Min(Fields.Value) * 0.9" and "= Max(Fields.Value) * 1.1" respectively. This would provide the ability to have a hard-coded axis that could still scale.

Any help at all would be appreciated. Thanks.

Conor
Top achievements
Rank 1
 answered on 01 Jun 2016
1 answer
176 views

I am having a problem with cells merging when exporting to excel with the Q3 2011 Telerik. I have went through the process of Format | Align | Lefts and Make Same Size | widths. I have changed the UnitOfMeasure to Points instead of inches and then I have changed all the textbox sizes to points. I have turned CanGrow to false. I have double checked that all my textboxes have no spacing or overlapping. Still I have cell merging issues. See attached picture to view merging issue.

Is there something I have missed or something else I can try to eliminate the cell merging?

Tracy
Top achievements
Rank 1
 answered on 01 Jun 2016
1 answer
454 views

We have a requirement about the report display, we display image in report by the “PictureBox”, but our client want display a PDF image in report. For example, they scan a paper into computer and generate a PDF, this PDF will have only one page, the content is an image. How can I show the PDF image in report viewer.
We use the html report viewer in a html page.

 

Katia
Telerik team
 answered on 01 Jun 2016
8 answers
656 views

My report include Persian/English character. I configured the telerik text box by Localizing Reports and everything was OK in report viewer. however, when I exported the report in PDF format the English character replaced with boxes.

I used the font that called Nazanin. If I changed the font to Times New Roman the problem solved, however, I need the Nazanin font for Persian character.

I read the Design Considerations for PDF Rendering and applied it. I also read Reporting PDF export of RTL languages, Export to PDF (Arabic / Persian Language) problem and Report Localization / Globalization Problem in telerik forum.

In the Report Localization / Globalization Problem, Stef (one of the forum's Admin) refer to PDF Device Information Settings, so I configured the web.config for 'Full Font Embedding` using Telerik Reporting Configuration Section and Extensions Element, however, my problem hasn't been solved yet.

I used the HtmlTextBox instead of TextBox in telerik reporting too, but my problem didn't solve.

Any helps, appreciated.

peter
Top achievements
Rank 1
 answered on 01 Jun 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?