Telerik Forums
Reporting Forum
4 answers
363 views
So far I've been formatting reports by simply modifying the Style property of the various elements. However, I now have a situation where I would like for users to be able to override the default style. Actually, users are very unlikely to modify the styles themselves, but we need to be able to customize the styles for them.

This "report" is currently done with HTML and we use CSS to make customizations. I'm hoping we can achieve something similar with Telerik reports.

First off, is there a way to feed XML representing an "external stylesheet" directly to the report? Or do we need to write the XML to a file then set a path to that file? The XML will be stored in a database and it would be nice if we could feed the XML directly to the report without having to create a temporary file. I see that there is an overload on the ExternalStyleSheet constructor that takes a Stream. I'll see if I can get that to work.

Second, I don't see a Style Selector that is analogous to the "#ControlId" CSS selector. Is it possible to create styles in the external style sheet that target a specific control by name? If not, I guess I can work around this by setting the StyleName to always match the control name?

Third, when I try to override a style that is defined in the report with a different value in the external style sheet, it doesn't appear to work. For example, the report defines a "InfoPanel" style with a solid border. If I try to remove the border in the external style sheet the border is still there. Here is the external style sheet XML:

<?xml version="1.0" encoding="utf-8"?> 
<StyleSheet xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
  <StyleRule> 
    <Style> 
      <BorderStyle> 
        <Default>None</Default> 
      </BorderStyle> 
    </Style> 
    <Selectors> 
      <StyleSelector> 
        <Type>ReportItemBase</Type> 
        <StyleName>InfoPanel</StyleName> 
      </StyleSelector> 
    </Selectors> 
  </StyleRule> 
</StyleSheet> 

Interestingly, setting the border style to "Dashed" instead of "None" does work (the border becomes dashed). But I seem to be unable to remove the border using "None".

I think that's it for now.

Scott
Scott R
Top achievements
Rank 1
 answered on 03 Oct 2008
1 answer
113 views
*****Page PDFReport.aspx******

<%

@ Register assembly="Telerik.ReportViewer.WebForms, Version=2.8.8.925, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" namespace="Telerik.ReportViewer.WebForms" tagprefix="telerik" %>

<

telerik:ReportViewer ID="PDFReportViewer1" runat="server" ></telerik:ReportViewer>

*****Code behind PDFReport.aspx.vb******
*****Class C_PDFReport*****

Me.PDFReportViewer1 = Nothing

*****Compile error*****

Error 1 'PDFReportViewer1'
 is not a member of 'LHLP.C_PDFReport'.
 D:\IISPUB_LHLP\LHLP\C\PDFReport.aspx.vb

*******************************************************

Intellisense Me. finds PDFReportViewer1

Due to compile error, unable to open the web reportviewer

Any clues as to the cause or workaround?

Thanks


Chavdar
Telerik team
 answered on 03 Oct 2008
2 answers
151 views
Have three panels in report designer.
In the report designer, report designer preview, and report designer PDF export, the right margin of the three stacked panels are aligned vertically,
set to the page width of 7.50 inches in properties.

In an ASP.NET web page, launching the Telerik: ReportViewer, the margin of the first panel is now about 1 physical inch wider than the following two panels, but in the PDF export, all three panels are realigned just as they were in report designer preview PDF export test.
All other report objects, header, panels 2 and 3, footer, and page numbering
are all aligned properly to the page width.

The first panel contains four side by side graphics
with four text boxes underneath.
Text boxes are set to auto wrap.

Any ideas as to how to control the reportviewer panel width in ASP.NET page?

Thanks 
Chavdar
Telerik team
 answered on 03 Oct 2008
5 answers
332 views
Hi, I am try to draw a table-like format report using Dock. But can not get it work.

What I want for my report is like the following:

----------------------------------
| col1     | col2      |  col3  |   col4  |
----------------------------------
|             |             |          |            |
|             |             |          |            |
|             |             |          |            |
|             |             |          |            |
|             |             |          |            |
|             |             |          |            |
-----------------------------------

basically, no horizontal lines for data items, only vertical lines to seperate every column.

I tried to set dock to left for every col header (which is in my group header section), but the col1 kept moving to the most right position. other col also moved, the column sequency is change as I set dock property to left for each of them.           

Another problem is there is always a blank between the vertical lines  in the detail section.

Am I doing this right. or we have another better to achieve what I am trying to do.

Thanks in advance


 
Rossen Hristov
Telerik team
 answered on 03 Oct 2008
1 answer
257 views
Hello, Im new at this, I am watching how the Telerik Reporting and I have the following questions:

We need a developer to download and install the Telerik Reporting Trial solution to see if it addresses our needs.  We need to specifically look at the following feature evaluation:
  1. What type of data source specifications are supported?  Can we specify a data source at run-time?  This may be necessary to properly implement our multi-tenant reporting solution.
  2. Can we build a chart/graph only report that would work in our dashboard.  These would have a different data source than the standard reports.
  3. Can parameters be passed via URL to a report?
  4. How is the reporting solution installed?  Will it require a dedicated server?
  5. Can we foresee any security issues?  Will we have to expose the reporting or transactional database to the web tier?
  6. How effective is it's support for MySQL?
  7. How do we implement hidden parameters in a report?  We need to be able to implement a CustomerID parameter that is programatically set which cannot be intercepted or modified by the end user.  This is required for multi-tenant security.
  8. Need to determine if we need to purchase the source code.
  9. Can we programatically invoke an existing report, intercept the output and send it to a mail server as an attachment to an email?  Basically, this would be a roll-your-own report scheduler.
  10. How are reports persisted (file system, compiled code, etc.)?  How difficult to add new reports to the system?


I hope you can help me.
Thank you!

Greetings. Damian from Argentina
Rossen Hristov
Telerik team
 answered on 01 Oct 2008
1 answer
335 views
hi, i had ready the telerik report but i need to change the query of the datasource to be dynamic, i mean, before the report is shown in web page the user uses some criteria to filter the report, is there any example of how i can do this?
Kalina
Telerik team
 answered on 30 Sep 2008
3 answers
619 views

Hello everybody...

I have created a report and i need to display images. This images are in db. On the design of my report I put this code:

this.pictureBox3.Value = "=Fields.Front";

When I run my report from a Windows Form , I get the "Parameter is not valid" exception.

Please, if someone has an idea, tell me what must I do...
Thanks...

Rossen Hristov
Telerik team
 answered on 30 Sep 2008
1 answer
293 views
Hello,

When I use expression to bound a value to a textbox I would have something like this:
this.textBox2.Value = "=Fields.JobID";
Now, how can I access this value in the code.
I tried:
string str = textbox2.value.ToString();
but I got "=Fields.JobID" which I expected to get an integer number.
I also tried string str = "=Fields.JobID" and it didn't work either.
How can I get this fields value in the code.

Many thanks
Hrisi
Telerik team
 answered on 29 Sep 2008
4 answers
194 views
Hi,

i have created one transaction report. In the report i display all transaction with quntity and price field. I need  to display grand total of total field. i used aggregate function =Sum(Fields.Total). it display correct data in detail section but when i used same textbox in footer section then it is not working. it showing blank data. how i will display grand total in footer section? is any other way to solve this issue. i am using "TelerikReporting_Q1_2008_dev_setup" reporting services.

Thanks & Regards
Santosh Lonkar
Rossen Hristov
Telerik team
 answered on 29 Sep 2008
1 answer
81 views
Hello,

When exporting a report to excel, I always get the following error:

"Trying to subtract from Unit.Empty!"

After some tests, I discovered that when I copy/paste all the objects of the report one by one or a group of objects to a new report, everithing works fine. But, when I select a specific area of the report (repor theader, report details, etc.) and do a copy/paste, then the error appears.

Can you tell me what seems to be the problem? This behavior is very strange and I think that its not a good idea do a copy/paste everytime this error appears in a report.

Thanks for your support.
LM
Svetoslav
Telerik team
 answered on 26 Sep 2008
Top users last month
Top achievements
Rank 1
Iron
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ivory
Top achievements
Rank 1
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
YF
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?