Telerik Forums
Reporting Forum
1 answer
174 views

Hello,

I use Telerik MVC. Sample Report viewer, created with Visual Studio 'Teleik MVC Report Viewer' works fine. I use .trdp file from disk.  But it works only in IISExpress, with UTL like http://localhost:51330/. When I tried do same in VD, it shows Viewer controls, renders process of reportting, shows 8 pages completed (correct), but does not show report's content. And viewer controls looks incomplete. I think, the problem is in relative paths.I have changed all path to absolute, but it does not help

   <script src="@Url.Content("http://localhost/MY_VD/ReportViewer/js/kendo.subset.2015.3.930.min.js")"></script>

...
<script src="@Url.Content("http://localhost/MY_VD/ReportViewer/js/telerikReportViewer-10.2.16.914.min.js")"></script>

.

@(Html.TelerikReporting().ReportViewer()
        // Each report viewer must have an id - it will be used by the initialization script
        // to find the element and initialize the report viewer.
        .Id("reportViewer1")
        // The URL of the service which will serve reports.
        // The URL corresponds to the name of the controller class (ReportsController).
        // For more information on how to configure the service please check http://www.telerik.com/help/reporting/telerik-reporting-rest-conception.html.
        .ServiceUrl(Url.Content("http://localhost/MY_VD/api/reports"))
        // The URL for the report viewer template. The template can be edited -
        // new functionalities can be added and unneeded ones can be removed.
        // For more information please check http://www.telerik.com/help/reporting/html5-report-viewer-templates.html.
        // .TemplateUrl(Url.Content("/ReportViewer/templates/telerikReportViewerTemplate-10.2.16.914.html"))
        // Strongly typed ReportSource - TypeReportSource or UriReportSource.
        .ReportSource(new UriReportSource() { Uri = "myreport.trdp" })
        // Specifies whether the viewer is in interactive or print preview mode.
        // PrintPreview - Displays the paginated report as if it is printed on paper. Interactivity is not enabled.
        // Interactive - Displays the report in its original width and height with no paging. Additionally interactivity is enabled.
        .ViewMode(ViewMode.Interactive)
        // Sets the scale mode of the viewer.
        // Three modes exist currently:
        // FitPage - The whole report will fit on the page (will zoom in or out), regardless of its width and height.
        // FitPageWidth - The report will be zoomed in or out so that the width of the screen and the width of the report match.
        // Specific - Uses the scale to zoom in and out the report.
        .ScaleMode(ScaleMode.Specific)
        // Zoom in and out the report using the scale
        // 1.0 is equal to 100%, i.e. the original size of the report
        .Scale(1.0)
        // Sets whether the viewer’s client session to be persisted between the page’s refreshes(ex. postback).
        // The session is stored in the browser’s sessionStorage and is available for the duration of the page session.
        .PersistSession(false)
        // Sets the print mode of the viewer.
        .PrintMode(PrintMode.AutoSelect)
        .TemplateUrl("http://localhost/MY_VD/ReportViewer/templates/telerikReportViewerTemplate.html")
)


Stef
Telerik team
 answered on 03 Nov 2016
1 answer
177 views

Hi,

i want to connect my report to postgresql data base , how to do that ?

Thanks,

 

Stef
Telerik team
 answered on 02 Nov 2016
20 answers
725 views
Hi, I have a report consisting of a crosstab in the reportheader section, with 3 row groups and 1 data column. I applied Toggle Visibility on  the second row group so that it should expand or collapse the third row group, but the report loads with all rows expanded. I tried changing the toggle mark initial expanded setting, but it just changes the + to -. Is it possible to load the report with rows not expanded initially?

Thanks
Naureen
Top achievements
Rank 1
 answered on 02 Nov 2016
6 answers
167 views
Is it possible to include other pre-existing PDF pages for a PDF export?
We are wanting to dynamically generate reports with a cover page and some language with legal/definitions/restrictions.

Can this be done with reporting?  The idea is that a user will make a few selections in a form and then be given the option to export a report with a few dynamically generated table of results on pages 4 & 5....the rest of the pages are main content pages...of which pages 2 & 3 will be dynamically selected from a collection of 4 different sets of legal/restrictions - depending on the region the report is being generated for.

Any suggestions?
Katia
Telerik team
 answered on 01 Nov 2016
1 answer
150 views

How Can I Handle The Telerik ReportViewer Print Button , after click on Print Button (after completion of print) , it should redirect to another page

 

How can i achieve this ?

 

please help me..

 

 

Regards,

Chaitanya.

Stef
Telerik team
 answered on 01 Nov 2016
1 answer
79 views

HI All,

What am l doing wrong (using the standalone designer or visual studio), as for whatever reason l cannot get the stacked bar chart to display all the data / data point labels, if l use a column chart instead then it works? See screenshots attached.

Sample data (sql below for anyone wishing to reproduce)

AdminDistrict   StatCount
===========================================
-- Other districts --          298994
Amber Valley                  0
Bolsover                         0
Chesterfield                    4 ---- this value goes missing along with all the zero's
East Riding of Yorkshire 0
North East Derbyshire    1002

I have checked all settings, which are fine, if l change the scale from numeric (which) l want to logarithmic then it works, its almost as if, the range of numbers from the smallest to the largest is too great as if l reduce the max number i.e in the example above change -- other districts -- to say 700 then it works, however the data point labels still do not show the zeros like they do in the column chart.
Anyone know whats wrong?

Thanks in advance

Paul

Create Table dbo.TestData
(
    AdminDistrict nvarchar(100) Not Null,
    StatCount     int  Not Null
)
Go
Insert Into dbo.TestData (AdminDistrict, StatCount)
Values  (N'-- Other districts --', 298994),
 (N'Amber Valley', 0),
 (N'Chesterfield', 4),
 (N'East Riding of Yorkshire',0),
 (N'North East Derbyshire', 1002)
Go


Stef
Telerik team
 answered on 31 Oct 2016
7 answers
108 views
We have a bunch of reports and report viewer in our application that were working just fine.  We were using buttons to make the reports visible.  We just upgraded to the latest version of Telerik reporting and now none of the reports will open up when the buttons are clicked.  We also upgraded our UI for ASP.net AJAX to the latest version as well.  Not sure if that would effect it also.
Troy
Top achievements
Rank 1
 answered on 31 Oct 2016
3 answers
525 views
How to Print Report Directly With Out Showing(using) In ReportViewer In HTML5 or JQuery
Stef
Telerik team
 answered on 31 Oct 2016
1 answer
132 views

Hi,

I use telerik R3 2016 and 2016 versions of R3 reports, I want to use report viewer in my application, I put the report viewer in a  window, but when I run the application, report viewer  does not exisit (I get a blank window).

plz help

Stef
Telerik team
 answered on 31 Oct 2016
13 answers
506 views
Hi!


I am struggling with a report that contains several detailsections with several sub-reports.


The problem is that when the report prints to pdf the last subreport overlaps the one above as you can see in picture one.


Picture two show how it looks in the Telerik Report Designer. As you can see in the red ring "CommonEquity" goes up and overlap the other sub-reports, and the other sub-reports below that tag along up.


Now to the funny part.. If there is data in the sub-report "WorkInProgressOnContract1" (Green ring) the report looks good.. As shown in picture three.


I have compared the .trdx files and there is no big difference between them.. 
If there is something more you need to know please ask!
&#8203;


The help is much appreciated, I have worked many hours to fix this issue..
Tomas
Top achievements
Rank 1
 answered on 28 Oct 2016
Top users last month
Edmond
Top achievements
Rank 1
Iron
fabrizio
Top achievements
Rank 2
Iron
Veteran
RobMarz
Top achievements
Rank 2
Iron
Fakhrul
Top achievements
Rank 1
Iron
Tejas
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?