Telerik Forums
Reporting Forum
1 answer
270 views
Hi,

I am trying to create a report based on report parameters, and one of these
values (integer) indicates the # of pages (not copies) the report must have.

The result should be a report with many identical pages with a single variation
on the pageHeader, which includes the PageNumber and PageCount objects (page x
of y).

The multiple-copies feature is not an option for me because the PageNumber
object will vary on each page. Which workaround may I use to achieve this functionality?

Thanks!
Hinata
Top achievements
Rank 1
 answered on 24 Dec 2014
1 answer
167 views
Hello there,

I was wondering if Telerik reporting can be able to create graphs like the one listed below.
I think the name for it is called Node graph/Tree Graph. 

http://visjs.org/examples/network/02_random_nodes.html
Hinata
Top achievements
Rank 1
 answered on 24 Dec 2014
1 answer
301 views
Good morning,

Below is the code i found from document~ I was trying to change PDF to CSV File. The problem is this method is being used in reportview or report?
Another question is what is reportName? I can pass parameters here but i dont know if it is report name here.

Thank you.

Telerik.Reporting.Processing.ReportProcessor reportProcessor =
new Telerik.Reporting.Processing.ReportProcessor();

// set any deviceInfo settings if necessary
System.Collections.Hashtable deviceInfo =
new System.Collections.Hashtable();

Telerik.Reporting.TypeReportSource typeReportSource =
new Telerik.Reporting.TypeReportSource();

// reportName is the Assembly Qualified Name of the report
typeReportSource.TypeName = reportName;

Telerik.Reporting.Processing.RenderingResult result =
reportProcessor.RenderReport("PDF", typeReportSource, deviceInfo);

string fileName = result.DocumentName + "." + result.Extension;
string path = System.IO.Path.GetTempPath();
string filePath = System.IO.Path.Combine(path, fileName);

using (System.IO.FileStream fs = new System.IO.FileStream(filePath, System.IO.FileMode.Create))
{
fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length);
}
Hinata
Top achievements
Rank 1
 answered on 24 Dec 2014
1 answer
830 views
How to use printer fonts of type text,
eg draft for epson lx 300 printer (dot matrix printers)?

There are dot matrix printers in some companies and how they have these models of dot matrix printers, change a super fast printing for printing in graphic mode is really unfeasible.

In Crystal Reports I defined fonts in text mode by default opted Draft, with telerik report can not choose sources of Draft type.

Regards
Rubens
Hinata
Top achievements
Rank 1
 answered on 24 Dec 2014
2 answers
626 views
Hi, I am running into a problem with the latest version of the reporting engine (8.2.14.1204).
I have a HtmlTextBox that contains some html (example below) and I want a currency value to be displayed properly formatted, e.g. $100.00. The problem is that I can't make the expression work no matter how I enter it... Assume that the following fields exist in the sql dataset:

Fields.owing    money not null
Fields.prevbalance    money not null

So this is what I want the text to show when the report is run,
Your current owing amount is $115.24 and the previous balance is $75.22. Please....

this is what I have tried in the Html source...
Your current owing amount is {Format("{0:C2}", Fields.owing)} and the previous balance is {Format("{0:C2}", Fields.prevbalance)}. Please....

This yields a error message when the report is run:
textBox1.Value expression [Your current owing amount is {Format("{0:C2}", Fields.owing)} and the previous balance is {Format("{0:C2}", Fields.prevbalance)}. Please....] is not valid:
Error evaluating embedded expression : Unexpected token inside an expression at index 39

What is the correct way to embed field values in text and properly format them? I cannot really split the text into separate textboxes, there is a lot of text that includes legal verbiage with field data embedded in it...

Thank you
Ali M.
Ali Mohamad
Top achievements
Rank 1
 answered on 23 Dec 2014
3 answers
195 views
I am designing a report that processes a massive amount (>3,000,000) of database rows.

I want to have a drill down report where the master report performs an aggregate query, and the query for the child report only gets run when the user expands on the master report node.

Can this be done with a drill down report? Or will it always populate each sub-report at the beginning, whether it's visible or not?
Stef
Telerik team
 answered on 23 Dec 2014
3 answers
102 views
Hi,

We have a Silverlight application and we recently updated to use the latest Telerik UI and Reporting. However, we encountered some issues when passing parameter to the report. It seems that with the latest update of Telerik Reporting, the report cannot capture the parameters passed from ReportViewer. I was able to reproduce the issue in the Telerik Report Examples by changing the following:

1. In MainPage of CSharp.SilverlightDemo project, I've added the ApplyParameters event:

<telerik:ReportViewer Grid.Row="1" x:Name="ReportViewer1" Width="1000" ReportServiceUri="../ReportService.svc"
Report="Telerik.Reporting.Examples.CSharp.ReportCatalog, CSharp.ReportLibrary"
ApplyParameters="ReportViewer1_OnApplyParameters"/>

private void ReportViewer1_OnApplyParameters(object sender, ApplyParametersEventArgs args)
{
  args.ParameterValues["Test1"] = "Test1";
  args.ParameterValues["Test2"] = "Test2";
}

2. In ReportCatalog.cs of CSharp.ReportLibrary project, I've added the following:

public ReportCatalog()
{
//
// Required for telerik Reporting designer support
//
InitializeComponent();

//
// TODO: Add any constructor code after InitializeComponent call
//
ReportParameters.Add(new ReportParameter { Name = "Test1", Type = ReportParameterType.String });
ReportParameters.Add(new ReportParameter { Name = "Test2", Type = ReportParameterType.String });
ItemDataBinding += ReportCatalog_ItemDataBinding;
}

void ReportCatalog_ItemDataBinding(object sender, System.EventArgs e)
{
var test1 = ReportParameters["Test1"].Value;
var test2 = ReportParameters["Test2"].Value;
textBox4.Value = test1 != null ? test1.ToString() : "Test1 null";
textBox8.Value = test2 != null ? test2.ToString() : "Test2 null";
}

When I run the application, I was not getting the values of Test1 and Test2 parameters. This approach works in the previous version of Telerik Reporting.

Can you take a look why it is not working the latest version anymore and advise if there is another way to accomplish this?

Thanks,
Sherwin

Sherwin
Top achievements
Rank 1
 answered on 23 Dec 2014
1 answer
333 views
I need to the Report Graph object displayed correctly at any data.
If a lot of data that establish the minimum size for each bar or auto change the size of the graph depending how much data. If the text can not fit you crop or change the angle of the text. Now I can not even develop it because classes like a Telerik.Reporting.Processing.Grpah is internal.

In your examples, each graph receives static settings. I attached screenshot and my test code https://dl.dropboxusercontent.com/u/15543358/WindowsFormsApplication1.zip


Help me pls.
Ivan Hristov
Telerik team
 answered on 23 Dec 2014
1 answer
91 views
Hello, I am trying to get an image onto the report. I had a previous version that works great. I have trouble updating to the latest version.

Version 5.1.11.928 (Works great)
string resource = HttpContext.Current.Server.MapPath(@".\Images");
resource is "F:\SolutionName\ProjectName\Images"

Upgrade to Version  8.2.14.1204
var resource = HttpContext.Current.Server.MapPath(@".\Content\images");
resource is "C:\LocalFolder\SolutionName\ProjectName\api\reports\clients\083132-aa72\instances\083132-14d3\Content\images"

However, my resources are located "C:\LocalFolder\SolutionName\ProjectName\Content\images" and it doesn't get found.

Please help!


Stef
Telerik team
 answered on 23 Dec 2014
4 answers
1.2K+ views
Hi!

Whenever we install a new font, which we want to use with Telerik Reporting, we have to restart the machine. It works fine after the restart.
We use Telerik Reporting for rendering (ReportProcessor) PDFs in an ASP.NET Web Website (.Net Framework 4). We also tried to restart IIS, but it didnt help. We use the current version of Telerik Reporting. It's a Windows Server 2008. It also doesn't work on my Windows 7 machine.

We need to install new fonts nearly every week, so it would be handy for us not having to restart the server each time. Is there a way or do we miss something?

Thanks for any suggestions,
Chris
KS
Top achievements
Rank 1
 answered on 22 Dec 2014
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?