Telerik Forums
Reporting Forum
1 answer
74 views
Hi there, There is a problem with HTML text box with "Invalid Unit Type"
the HTML I wish to display are the following

<DIV><SPAN STYLE="color:black"><SPAN style="background-color:window"><SPAN style="font:normal normal normal 10pt/normal Arial">1</SPAN><SPAN STYLE="background-color:window">.</SPAN><SPAN STYLE="background-color:window">8</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">h</SPAN><SPAN STYLE="background-color:window">e</SPAN><SPAN STYLE="background-color:window">c</SPAN><SPAN STYLE="background-color:window">t</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">r</SPAN><SPAN STYLE="background-color:window">e</SPAN><SPAN STYLE="background-color:window">s</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">f</SPAN><SPAN STYLE="background-color:window">l</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">t</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">l</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">n</SPAN><SPAN STYLE="background-color:window">d</SPAN><SPAN STYLE="background-color:window">.</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">C</SPAN><SPAN STYLE="background-color:window">l</SPAN><SPAN STYLE="background-color:window">o</SPAN><SPAN STYLE="background-color:window">s</SPAN><SPAN STYLE="background-color:window">e</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">t</SPAN><SPAN STYLE="background-color:window">o</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">l</SPAN><SPAN STYLE="background-color:window">l</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">s</SPAN><SPAN STYLE="background-color:window">c</SPAN><SPAN STYLE="background-color:window">h</SPAN><SPAN STYLE="background-color:window">o</SPAN><SPAN STYLE="background-color:window">o</SPAN><SPAN STYLE="background-color:window">l</SPAN><SPAN STYLE="background-color:window">s</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">n</SPAN><SPAN STYLE="background-color:window">d</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">w</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">l</SPAN><SPAN STYLE="background-color:window">k</SPAN><SPAN STYLE="background-color:window">i</SPAN><SPAN STYLE="background-color:window">n</SPAN><SPAN STYLE="background-color:window">g</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">d</SPAN><SPAN STYLE="background-color:window">i</SPAN><SPAN STYLE="background-color:window">s</SPAN><SPAN STYLE="background-color:window">t</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">n</SPAN><SPAN STYLE="background-color:window">c</SPAN><SPAN STYLE="background-color:window">e</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">t</SPAN><SPAN STYLE="background-color:window">o</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">T</SPAN><SPAN STYLE="background-color:window">o</SPAN><SPAN STYLE="background-color:window">w</SPAN><SPAN STYLE="background-color:window">n</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">C</SPAN><SPAN STYLE="background-color:window">e</SPAN><SPAN STYLE="background-color:window">n</SPAN><SPAN STYLE="background-color:window">t</SPAN><SPAN STYLE="background-color:window">r</SPAN><SPAN STYLE="background-color:window">e</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">n</SPAN><SPAN STYLE="background-color:window">d</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">C</SPAN><SPAN STYLE="background-color:window">o</SPAN><SPAN STYLE="background-color:window">m</SPAN><SPAN STYLE="background-color:window">m</SPAN><SPAN STYLE="background-color:window">e</SPAN><SPAN STYLE="background-color:window">r</SPAN><SPAN STYLE="background-color:window">c</SPAN><SPAN STYLE="background-color:window">i</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">l</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">r</SPAN><SPAN STYLE="background-color:window">e</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">.</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">L</SPAN><SPAN STYLE="background-color:window">o</SPAN><SPAN STYLE="background-color:window">t</SPAN><SPAN STYLE="background-color:window">s</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">o</SPAN><SPAN STYLE="background-color:window">f</SPAN><SPAN STYLE="background-color:window"</SPAN><SPAN STYLE="background-color:window">P</SPAN><SPAN STYLE="background-color:window">o</SPAN><SPAN STYLE="background-color:window">t</SPAN><SPAN STYLE="background-color:window">e</SPAN><SPAN STYLE="background-color:window">n</SPAN><SPAN STYLE="background-color:window">t</SPAN><SPAN STYLE="background-color:window">i</SPAN><SPAN STYLE="background-color:window">a</SPAN><SPAN STYLE="background-color:window">l</SPAN><SPAN STYLE="background-color:window">.</SPAN></SPAN></SPAN></DIV

any Idea?

Also, another question. when I try to have the report rendered as HTML or MHTML(it's working at moment) and send as Email, I wish to have certain image "linked" not embbed (otherwise will create a 10mb email), how would I do that? Any Suggestions will be appreciated.
Steve
Telerik team
 answered on 15 May 2009
2 answers
252 views
I'm trying to display the user-selected value of a parameter (with automatic UI) in my report, but I'm not sure how to correctly access the value.  In this report, I have a DateTime parameter which I would to display in the report header.

The best idea I could come up with was to use:
this.ReportParameters["DateStart"].Value.ToString() 

However, that gives me the original value I set ("=DateTime.Now").  It makes sense that it just displays the string entered as the default value, but I'm trying to get the actual input from the user.  So if the user selected 5/11/2009 as the date, I'm looking to get a DateTime object back that represents 5/11/2009 so I can format it and display it in my report header.

How can I do this?

Thanks.



turntablistlp
Top achievements
Rank 1
 answered on 13 May 2009
0 answers
132 views
Hi,

  I created one report that I pass same parameters by url, get this with request and pass it to the report class.

   The problem is when I execute the report it render not complete, when I click on refreh it render correctly.

   Someone can help me?

    Thanks,
     Jose
Jose Ferreira Lima Filho
Top achievements
Rank 1
 asked on 13 May 2009
2 answers
124 views
Hi, I am having a problem when exporting my report to PDF.

I have a table in a subreport and when the table has too much rows, it goes on several pages. That fine and logic. My problem is that the table borders are badly cut as shown on the picture (follow the link).

I tried to play with the header and footer of report and subreport but nothing change I still have those 2 small vertical lines, that doesn't look really nice.

Thank you

  
regis
Top achievements
Rank 1
 answered on 13 May 2009
2 answers
252 views
Hi,

I have a report with a HtmlTextBox using a special font "RotisSansSerif". The textbox contains both bold and italic text and it all looks fine in the reportviewer but when exporting to pdf the bold and italic text just shows up as normal unformatted text.

When I look in the pdf it tells me that 3 fonts are embedded "RotisSansSerif", "RotisSansSerif, Bold" and "RotisSansSerif, Italic" but still it only shows normal text.

I have only the font "RotisSansSerif" installed on my computer. Do I need to install "RotisSansSerif, Bold" and "RotisSansSerif, Italic" also to have it show up in the pdf?

Thanks,
Brian
Mercell
Top achievements
Rank 2
 answered on 13 May 2009
1 answer
171 views
Hi, I have some textboxes in pageHeader which may have grown. If they have grown I need to expand the pageHeader.Height accordingly. But at runtime I can only see the initial height for a textbox. How can I find the correct height for a textbox?

The textbox is populated in the .ctor for the report.
public myReport(object[] params){
InitializeComponent();
if(.... some params checks)
txtHeader.Value += "Filter1" + Environment.NewLine

//Here I want to add the height of the pageHeader... something like
pageHeader.Height = txtHeader.Height + new Unit("2cm");  //does not work since txtHeader.Height always equals the height set in designtime...

rgds
john even pedersen
Steve
Telerik team
 answered on 12 May 2009
1 answer
355 views
Hello there,

Is there any possibility to define formatting for embedded expressions? I am providing a DateTime parameter for the report and would like to use it in an embedded expression. However, it formats always as a full date (with the time part), even I'd like to have only date part printed. I could not find any information from the previous threads nor documentation.

So, any advice is welcome. =)

Thanks,
Ville
Steve
Telerik team
 answered on 11 May 2009
1 answer
300 views
I have a report that is bound to a list of objects representing a tract of land. Each tract object has a property that is a list of owners for that tract. I am using the new Table control introduced in Q1 2009 to list the owners of the tract without having to use a subreport. 

The Table is in the detail section and I am programatically binding the owners for each tract by handling the ItemDataBinding event of the detail section using the following code:

Telerik.Reporting.Processing.ReportItemBase section = (Telerik.Reporting.Processing.ReportItemBase)sender;
Telerik.Reporting.Processing.Table table = (Telerik.Reporting.Processing.Table)section.ChildElements["tblOwners"];
table.DataSource = section.DataObject["Owners"];

In this case the DataObject is equal to the Tract object currently being bound, as expected, and I'm accessing the Owners property which is the list of tract owners.

This all works fine, however, I now have the need to access a property of the Owner object that is currently being bound. I am using a similar technique to the one I used for the detail section by handling the ItemDataBinding event of the table with the following code:

Telerik.Reporting.Processing.Table table = (Telerik.Reporting.Processing.Table)sender;
Owner tractowner = (Owner)table.DataObject.RawData;

I would expect the DataObject to be for an Owner object, however, at runtime the report throws an exception indicating that it is not possible to cast a Tract object to an object of type Owner. For some reason the table.DataObject is not for an Owner object, but instead for a Tract object even though the table is bound to a list of Owners.  

This does not make sense to me. Is this a bug, or am I misunderstanding the use of the DataObject property and if so, how do I access the Owner object that is currently being bound?
Steve
Telerik team
 answered on 11 May 2009
3 answers
116 views
Hello, Telerik Team! I've installed Q1 2009 version of Telerik reporting after installation of Q3 2008. So we have upgrade. But there's some problems with Max function in the detail section. Instead of getting result Max as maximum of all detail items, I get Max only for every element of the detail section. For i.e. we have 200, 300, 400 it's good if we get 400 by Max function, but not Max(field) = Value(field). What's wrong and how can we solve this problem?
Svetoslav
Telerik team
 answered on 11 May 2009
1 answer
220 views
Hi,

How can to show a PictureBox in the ReportViewer in webforms?
I dont find a example....

        Dim Imagen As New Telerik.Reporting.PictureBox()
        Imagen.Value = "C:\tmp\" + ControlID + ".jpg"
        ReportViewer1.What?  =  What? 

Thx
Steve
Telerik team
 answered on 11 May 2009
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?