Telerik Forums
Reporting Forum
4 answers
229 views
Hi,

I'm running the VS.Net 2010 and the Q3 2010 release of Telerik Reporting.  I'm not sure how I can get the Crosstab wizard to launch.  I see all the other Telerik Reporting controls in my Toolbox but not the Crosstab Wizard.  I've tried uninstalling and reinstalling the Telerik Reporting software and also looked for it in "Add Items" under the Telerik Reporting tab in my toolbox. Not sure what is going on.

Thanks

Eric
Sebastian
Top achievements
Rank 1
 answered on 27 Sep 2013
5 answers
311 views
Hi,

I am using Telerik Reporting Q2 2010 in silverlight 4 application. To show report, I am using Telerik reportviewer in xaml file.
My requirement is to update status in database if report is printed and its very crucial requirement.
I tried several ways and looked into Telerik help as well as googling but could not found any meaningful solution.
Please help me finding a solution or at least a workaround.

A quick help will be greatly appreciated.

-Jono
Stef
Telerik team
 answered on 27 Sep 2013
1 answer
144 views
Hi,
I'm aware that this product is in Beta, so I figured I'd point out a bug I found.  When attempting to apply parameters to my report, the javascript fails and I get the following response:

Uncaught TypeError: Object #<Object> has no method 'applyParameters' parametersArea.js:509
(anonymous function) parametersArea.js:509
b.event.dispatch jquery-1.9.1.min.js:3
v.handle

It happens in this block here:

var $previewButton =
            $("<button class='k-button trv-parameters-area-preview-button'></button>")
                .html("Preview")
                .appendTo($footer)
                .on("click", function () {
                    controller.applyParameters();
                    /*
                    if ($validator.validate()) {
                        controller.applyParameters();
                    }
                    else {
                        alert("Invalid parameter values!");
                    }
                    */
                });


Also, and this is a side note, when the page loads, the report is received through the api fine, but it does not actually load the report into the report viewer until I hit the refresh icon. Should I manually call for a refresh?  I noticed the sample code provided on the announcement blog post does not require a manual refresh and just properly loads the report on page load.

Thanks
Chavdar
Telerik team
 answered on 27 Sep 2013
1 answer
69 views
Hi

With our current product we use Crystal for reporting. Report designers create the Crystal rpt file, a stored procedure for the data, and some report meta information to go into our database (the name of the rpt file, name of report, the stored procedure to use, the parameters that can be passed).
We then have an ASP site which reads the database to get the meta information of all the reports that are available on it's database. The site allows the user to navigate through and run the report they want, specifying the parameters as per the meta information. The Crystal report viewer then renders the report.
The site can also save the users parameter input to be run as a scheduled report later (a windows service checks the db periodically and renders the report to pdf for email)
This means that the ASP site never changes, report writers just need to know crystal and sql, and new reports can be added on the fly.

So, we are now looking for a modern, non-crystal solution, for our new product. One proposal is ASP.MVC with Telerik Reporting. I've seen that there is a standalone designer which is good and there are self contained trdx files. But is there the ability to create and drop in new reports on the fly like we have with our current crystal solution - without any changes to the mvc compiled code?
And if so are there any documents/guides/examples on getting that going?

Many Thanks
Elian
Telerik team
 answered on 27 Sep 2013
1 answer
233 views
I have a report that links (drills down) to other reports.  It actually has links to 10 other reports. 

I see 2 options for this: Navigate to an Object Instance, and Navigate to a Type name.

Object Instance:  The problem I'm running into with this is it creates an instance of each of the 10 reports. Some of the reports have code in the constructor that calls a web service that may or may not be there at design time. This causes the designer to crash (even though the code is wrapped in  if (!this.DesignMode))  My other concern is performance/memory issues since it creates these 10 reports at run time, instead of on-demand. (when link is clicked)

Type Name:  This option works well for us, except for the fact that the type name includes the assembly version, which gets updated every build (so we would have to constantly update the links).  This would not be maintainable without a script that searches for version numbers and updates them before each build. (which I'd rather not develop and maintain)

Any solutions to my scenario?


Justin Lee
Top achievements
Rank 1
 answered on 27 Sep 2013
2 answers
223 views
Hi there,

I have noticed something extremely odd. It seems like TextBox or is choosing heights in unexpected ways when they are children of a table.
What I have is a loop iterates over some data rows and adds TextBoxes to a table. The reason I am doing this is because by requirements are to build a report based on report configuration data stored in the data base. So a report template would not work for me (as most of your examples are).

So what I have is the following.

private void BuildReport()
{
    Table tbl = new Table();
 
    Unit columnWidth = Unit.Inch(0.5);
    tbl.Body.Columns.AddRange(new TableBodyColumn[] {
        new TableBodyColumn(columnWidth),
        new TableBodyColumn(columnWidth),
        new TableBodyColumn(columnWidth),
        new TableBodyColumn(columnWidth),
        new TableBodyColumn(columnWidth),
        new TableBodyColumn(columnWidth),
        new TableBodyColumn(columnWidth),
        new TableBodyColumn(columnWidth),
        new TableBodyColumn(columnWidth),
        new TableBodyColumn(columnWidth),
        new TableBodyColumn(columnWidth),
        new TableBodyColumn(columnWidth)
    }.AsEnumerable());
 
    tbl.Style.BorderWidth.Top = new Unit(1D, UnitType.Pixel);
    tbl.Style.BorderWidth.Bottom = new Unit(1D, UnitType.Pixel);
    tbl.Style.BorderWidth.Left = new Unit(1D, UnitType.Pixel);
    tbl.Style.BorderWidth.Right = new Unit(1D, UnitType.Pixel);
 
    tbl.Style.BorderStyle.Top = BorderType.Solid;
    tbl.Style.BorderStyle.Bottom = BorderType.Solid;
    tbl.Style.BorderStyle.Left = BorderType.Solid;
    tbl.Style.BorderStyle.Right = BorderType.Solid;
 
    for (int idx = 0; idx < tbl.Body.Columns.Count; idx++)
    {
        TableGroup group = new TableGroup();
        tbl.ColumnGroups.Add(group);
    }
 
    this.DetailSection.Items.AddRange(new ReportItemBase[] { tbl });
    int rowNumber = 0;
    for (int idx = 0; idx < fieldComps.Count; idx++)
    {
        ModelTableFieldComposition_Flatten field = fieldComps[idx];
        GetLabelRow(field, ds, tbl, ref rowNumber);
    }
}
 
private void GetLabelRow(ModelTableFieldComposition_Flatten field, Table tbl, ref int rowNumber)
{
    TableGroup tableGroupRow = new TableGroup();
 
    tbl.RowGroups.Add(tableGroupRow);
    tbl.Body.Rows.Add(new TableBodyRow(Unit.Inch(0.1D)));
 
    int colIndex = 0;
 
    Telerik.Reporting.TextBox labelTextBox = new TextBox();
    labelTextBox.Name = "labelField";
    labelTextBox.Size = new SizeU(Unit.Inch(0.1), Unit.Inch(0.1));
    labelTextBox.Style.BorderStyle.Bottom = Telerik.Reporting.Drawing.BorderType.Solid;
    labelTextBox.Style.BorderStyle.Left = Telerik.Reporting.Drawing.BorderType.Solid;
    labelTextBox.Style.Font.Name = "Segoe UI";
    labelTextBox.Style.Font.Size = Unit.Point(10);
    labelTextBox.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
 
    labelTextBox.Value = field.DisplayName;
    labelTextBox.Visible = field.FieldLabelVisible;
 
    labelTextBox.Style.BackgroundColor = Color.Wheat;
    labelTextBox.Style.Color = Color.Black;
 
    tbl.Body.SetCellContent(rowNumber, 0, labelTextBox, 0, field.ReportFieldLabelColumnSpan);
    tbl.Items.AddRange(new ReportItemBase[] { labelTextBox });
 
    int columnSpanCounter = field.ReportFieldLabelColumnSpan;
 
    colIndex = field.ReportFieldLabelColumnSpan;
 
    while (columnSpanCounter < 12)
    {
        Telerik.Reporting.TextBox emptyLabelTextBox = new TextBox();
        emptyLabelTextBox.Name = "emptyField";
        emptyLabelTextBox.Size = new SizeU(Unit.Inch(0.1), Unit.Inch(0.1));
        emptyLabelTextBox.Visible = true;
        emptyLabelTextBox.Value = string.Empty;
 
        emptyLabelTextBox.Style.BorderStyle.Bottom = Telerik.Reporting.Drawing.BorderType.Solid;
        emptyLabelTextBox.Style.BorderStyle.Left = Telerik.Reporting.Drawing.BorderType.Solid;
        emptyLabelTextBox.Style.Font.Name = "Segoe UI";
        emptyLabelTextBox.Style.VerticalAlign = Telerik.Reporting.Drawing.VerticalAlign.Middle;
 
        tbl.Body.SetCellContent(rowNumber, colIndex, emptyLabelTextBox, 0, 1);
        tbl.Items.AddRange(new ReportItemBase[] { emptyLabelTextBox });
 
        columnSpanCounter++;
        colIndex++;
    }
 
    rowNumber++;
}
Stef
Telerik team
 answered on 27 Sep 2013
3 answers
396 views
I have a silverlight/wcf application that uses Telerik reporting. One of the requirements of the app is to be able to combine multiple reports into a single pdf. In order to do this, I have a custom report service class that inherits from ReportServiceBase. The silverlight app passes a list of report names to the wcf service, which loops through the list and calls the report service's Render("PDF", etc...) method. In order to keep the file size small, I set FontEmbedding to None in the Render call's deviceInfo. Using the DocumentBytes from each RenderingResult, I append each pdf into a single pdf using a third party tool (PDFSharp). The bytes of the single pdf are then sent back to the silverlight side, where they're loaded into a RadPdfViewer, where users can then save the pdf (using the method described here: http://www.telerik.com/community/forums/silverlight/pdfviewer/save-pdf-file.aspx)

All of this works as expected, except that the resulting pdf is using Identity-H font encoding and a TrueType (CID) font. If I create (roughly) the same pdf using another tool (PDFXchange), the resulting pdf has WinAnsiEncoding and a TrueType font (not CID). When viewing the resulting pdfs on an iPad, the Telerik rendered pdf doesn't display italics or bold, whereas the non-Telerik pdf does. The font encoding is the only readily apparent difference between the two pdfs, which leads me to believe that's the issue (Note: The issue still occurs if I just render a single report and don't use the third party tool to merge, so it's not an issue with the third party tool).

Is there a way to change the font encoding used by the Telerik report service Render method? Or any other thoughts as to why an iPad can't display bold/italic fonts in a pdf generated in this manner?
Stef
Telerik team
 answered on 27 Sep 2013
1 answer
251 views
Hi

How can I pass a parameter value from ASP.NET page to a report displayed in a report viewer? Do you have a complete example for this scenario?

Thanx
Saeid Kdaimati
Top achievements
Rank 2
 answered on 27 Sep 2013
0 answers
86 views
i have report with graphAxis , i change angel to 270 , label show if the value is small else if value of x axis report disappear 
i want to fixed width of the label or warped label 
Ahmed
Top achievements
Rank 1
 asked on 26 Sep 2013
7 answers
362 views
I have a list that sometimes has no data but its full height is blank even when it is empty.

I've tried conditional formatting and setting visibility to false when there are no items but still whitespace.

I've tried binding the height of the list to this expression =iif(Fields.PatientCases.Count = 0, ".01in", "1in") but no change.

Any other suggestions?

Thanks,
Don Rule
Nasko
Telerik team
 answered on 26 Sep 2013
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?