Telerik Forums
Reporting Forum
8 answers
700 views
Hi

I have seem this thread from early 2009:

http://www.telerik.com/community/forums/reporting/telerik-reporting/print-parameters-on-report.aspx 

It indicates that it is not possible to trap the parameters and show them in a report at runtime. To relate this to my situation, I have a report which is being used as the basis of billing for services. Billing is conducted for different date ranges so I have start and end date parameters in my report. Finance have asked me to include these dates in the report so clients can see the billing period. Unless I have misinterpreted the response in the attached thread and if nothing has changed in the interim, am I right in saying there is no way I can capture these two parameters and include them in my report?

thx

Michael
Andrew Angell
Top achievements
Rank 2
 answered on 16 Mar 2016
2 answers
136 views

Hello everyone

I'm trying to add some fold marks on my Telerik report. The goal is to add such a fold mark each third of the whole A4 page. First I tried to add some textboxes with some value like "_" or "|". But logically this does not work.

I couldn't find any helpful thread/link in the forums or even in google. I'm talking about something similar to the attachment.

 To achieve this I'm using C# and a Telerik ReportViewer. Is this even possible?

Suggestions appreciated :)

Regards,
Danilo

Danilo
Top achievements
Rank 1
 answered on 14 Mar 2016
1 answer
360 views

I have previously used Telerik's Charts back in 2013 and now I need to start using it again with the new version.  I am trying to follow this example (http://docs.telerik.com/reporting/graphhowtocreateprogrammaticallygraph), but I can't seem to make basic changes to the graphs via code in this new version of the charts.  

Previously I was able to change the title of the chart by this syntax.

Chart1.ChartTitle.TextBlock.Text = "My Test Title"

 

How do I do this under the new graph?  

 

 

Katia
Telerik team
 answered on 12 Mar 2016
4 answers
121 views

Hi telerik support , I have a problem a i Want to change the width between categorys in the x axis , how can i get it ,

 

            categoryscale.SpacingSlotCount =  (I need dinamyc);            
            graphAxisCategoryScale.Scale = categoryscale;

the porpouse it´s change the distance between points in the x axis 

 

Hell me please =(

 

Stef
Telerik team
 answered on 12 Mar 2016
1 answer
89 views
Hi how ca i make the graph logarithmic  , i attacment the example , help me please i don know how to change the  vertical gridline, can you help me ?
Stef
Telerik team
 answered on 12 Mar 2016
4 answers
367 views

Hi All,

I have created a report in Report Designer (Standalone) whose neme is test.trdx.Which is working fine.

Now i have installed report server to publish test.trdx report in report server.

So i have uploaded test.trdx report file in report server.But when i click on test.trdx in report server then it shows error.

 

"Unable to get report parameters.
An error has occurred.
Unable to establish a connection to the database. Please, verify that your connection string is valid. In case you use a named connection string from the application configuration file, make sure the name is correct and the connection string settings are present in the configuration file of your application".

 

Thanks,

 

Narender

Stef
Telerik team
 answered on 12 Mar 2016
16 answers
859 views
Hi,

I am working on telerik reporting, every thing was fine until I receive one new requirement from client. Currently, on clicking "Generate" button, telerik reports viewer showing all data with paging and the new requirement is to give one option on page i.e. "View All", If user click on "View All" button, the viewer should show all data in one page only!!! i.e. without paging. User should be allow to show all report data in one shot without paging.

Is this possible in telerik reporting? if yes please let me know how? I am new in telerik reporting and have to finish this task ASAP.

Thanks,
Vatsal Desai
Stef
Telerik team
 answered on 12 Mar 2016
3 answers
928 views

I've created a customreportresolver in my project (mvc) so that I can make changes to the connection string (and other stuff) on the fly. I'm passing a dictionary<string,object> from my mvc view with the settings for all the report's parameters.

How does that dictionary get to my customreportresolver? I'm not seeing the parameters in my report being updated from the dictionary. 

@{
    var parameters = new Dictionary<string, object>();
    parameters.Add("s1", Model.ReportGeneratorOutput.s1);
    parameters.Add("s2", Model.ReportGeneratorOutput.s2);
    parameters.Add("g1", Model.ReportGeneratorOutput.g1);
    parameters.Add("sourceflag", Model.ReportGeneratorOutput.SourceFlag);
    parameters.Add("sid", Model.ReportGeneratorOutput.Sid);
    parameters.Add("hdr1", Model.ReportGeneratorOutput.hdr1);
    parameters.Add("hdr2", Model.ReportGeneratorOutput.hdr2);
    parameters.Add("session", Model.Session);
}
<div id="reportOutput">
    @(Html.TelerikReporting().ReportViewer()
        .Id("reportViewer")
        .ServiceUrl("/api/reports")
        .ReportSource("Report.trdx", parameters)
        .ViewMode(ViewMode.Interactive)
        .PersistSession(false)
        .ScaleMode(ScaleMode.FitPage)
    )
</div>

public class CustomReportResolver : Telerik.Reporting.Services.Engine.IReportResolver
    {
        public ReportSource Resolve(string source)
        {
            var settings = new XmlReaderSettings();
            settings.IgnoreWhitespace = true;
 
            using (var xmlreader = XmlReader.Create(Path.Combine(HttpContext.Current.Server.MapPath("~/Reports"), source), settings))
            {
                var serializer = new Telerik.Reporting.XmlSerialization.ReportXmlSerializer();
                var report = (Report)serializer.Deserialize(xmlreader);
 
                //need to set the correct connection string here
                //the parameter: session has the year
 
                //var efconnection = ConfigurationManager.ConnectionStrings[$"Connection{report.ReportParameters["session"].Value}"].ConnectionString;
                //var connection = new EntityConnectionStringBuilder(efconnection).ProviderConnectionString;
 
                //SetConnectionString(report, connection);
                 
                var instancereport = new InstanceReportSource { ReportDocument = report };
                return instancereport;
            }
        }
}

Stef
Telerik team
 answered on 12 Mar 2016
1 answer
1.2K+ views

I have a single cell that has data the following data:

Weight  <unit of measurement> @ speed <unit of measurement>

Example:  "40000 lbs @ 65 mph"      "18143 kg @ 105 km / h"

Expression example:

=Fields.weight + " " + IIf(uom = "metric", "kg", "lbs") + " @ " ......

I am trying to find a way to do number formatting to add the thousands separator. Is there a way to format one specific field in an expression? I am trying to keep most of the formatting to be as native as possible, instead of user functions, in case the culture changes from "," to ".", etc.

Stef
Telerik team
 answered on 11 Mar 2016
1 answer
92 views

Hi , how do we do access our database from outside of the network for Entity data source. I mean when we copy dll path and connection string to

report designer config file it only allows to access the data base if report designer is on the same network , how can we solve the problem so that from any network we can access our data from any network?

Stef
Telerik team
 answered on 11 Mar 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?