Telerik Forums
Reporting Forum
3 answers
388 views
i am trying to do a conditional statement in a report that results in a

chr(0252) or a

chr(0251) as the result.  a "x" or a checkmark in wingding font.  using telerik latest reporting and VS 2010.  this works in ssrs vs 2008 but not in telerik.  it does not recognizt the CHR()

An error has occurred while processing TextBox 'textBox87':

The expression contains undefined function call chr().

 
how do yuo do this in telerik reporting?  need this asap

 

 

 

 

Elian
Telerik team
 answered on 27 Feb 2012
1 answer
152 views
I am attempting to export a database of over 1,000 individuals to an excel file. Attached is a screenshot of the results I get when I try to do this. It only displays 10 results at a time for some reason, rather than the entire set of data. Clearly it is not acceptable to repeat this process 300 times (or more as the community continues to expand) to export the entire user database. I was wondering if there was some way to get the program to export the entire list into one excel spreadsheet. Any thoughts/suggestions?
Hadib Ahmabi
Top achievements
Rank 1
 answered on 27 Feb 2012
2 answers
203 views
Hello,

I use a PictureBox to display a dynamic loaded Imagelist (Hardcopyscans) of a Document Manegement System.
Now i need to scale the report automaticaly so it fits the width of the 1st picture in the List.

But i allways got two pages instead of one, because the reportsize seems to be to small for the image.
Or, if i scale up the report size, the image wil be shown to small or does some uggly, scaling - that results in unreadable text.

Also, if i receive a "landscape formated image" the size of the report shuld manage this situation, not cuting off the document in two separate pages.

Right now i use something like this in the NeedDataSource Handler:
if (dicFormat["PageSettigs"] == "Landscape") 
    this.Report.PageSettings.Landscape = true;
else 
    this.Report.PageSettings.Landscape = false;

SizeU u1 =
new SizeU(new Unit(lstImage[0].Width, UnitType.Pixel),
new Unit(lstImage[0].Height, UnitType.Pixel));
this.Report.PageSettings.PaperSize = u1;

The content of the image shuld be printed best in 1:1 size.
Whats the best way to manage this?
Roger
Top achievements
Rank 1
 answered on 27 Feb 2012
0 answers
105 views
Hi,

I'm using the following code in order to group two columns by values.
I have a question regarding this issue: How can merge the grouped cells (Please view the attached image)?

c# code:
static string oldValueStatic = string.Empty;
        static string oldValueStatic2 = string.Empty;
 
        private void Nightly_ItemDataBinding(object sender, EventArgs e)
        {
            oldValueStatic = string.Empty;
            oldValueStatic2 = string.Empty;
        }
 
        public static string CutDuplicates(string data)
        {
 
            if (0 == string.Compare(oldValueStatic, data, true))
            {
                data = string.Empty;
            }
            else
            {
                oldValueStatic = data;
            }
            return data;
        }
 
        public static string CutDuplicates2(string data)
        {
 
            if (0 == string.Compare(oldValueStatic, data, true))
            {
                data = string.Empty;
            }
            else
            {
                oldValueStatic = data;
            }
            return data;
        }

I'm calling the functions as below:
= CutDuplicates(Fields.Env)

It is very appreciated to explain by supplying a step-by-step instructions how to solve the above issue.

Regards,
Bader
Bader
Top achievements
Rank 1
 asked on 26 Feb 2012
2 answers
522 views
I am getting above error when trying to assign below string to HtmlTextBox.

"question 1 (tips: <P><SPAN style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-AU; mso-fareast-language: EN-US; mso-bidi-language: AR-SA" lang=EN-AU><SPAN style="FONT-FAMILY: 'Times New Roman','serif'; FONT-SIZE: 12pt; mso-fareast-font-family: 'Times New Roman'; mso-ansi-language: EN-AU; mso-fareast-language: EN-US; mso-bidi-language: AR-SA" lang=EN-AU>After this is</SPAN></SPAN></P>)"

Telerik.Reporting.HtmlTextBox txtBox = new Telerik.Reporting.HtmlTextBox();
txtBox.Value = value;
In the above code value is equal to above string. How can I solve this error?

Also I want to know how to use StripHTMLTags function. Or if there is any other way to remove HTML tags.

HtmlTextBox1.Value = StripHTMLTags(IncomingHTMLText);

Above doesn't work. It gives an error saying that StripHTMLTags  is not found.

Help would be appreciated....
Milen | Product Manager @DX
Telerik team
 answered on 24 Feb 2012
2 answers
125 views
Nevermind.
AccMan
Top achievements
Rank 1
 answered on 24 Feb 2012
1 answer
93 views
I have a report with one parameter, a dropdown list where the length exceeds the width of the report,  when the report is rendered, a scrollbar covers most of the dropdown list parameter.  I'm assuming this is because of some sort of style setting that handles the overflow.  Is there a way to change the displayed width of the dropdown so that this scrollbar does not appear?  As is, the report is virtually unusable.

Elian
Telerik team
 answered on 24 Feb 2012
3 answers
345 views

Hi team, well i have a problem with my report.

My report have 5 pages. I want show de header only in the first page and the footer only in the last page. This is easy i enable the property printOnFirst in the header and printOnLast in the Footer.
Now I want the blank space header and footer to shrink, to report data go well without those spaces, because my header is large

how i can do it ?
Casey
Top achievements
Rank 1
 answered on 23 Feb 2012
1 answer
103 views
Hi

Just a simple question shouldn't the Report header be on top then followed by Page header ..but now its page header then report header ..why is this ? . Any particular reason.

Regards
Saneesh-B
Saneesh
Top achievements
Rank 1
 answered on 23 Feb 2012
5 answers
755 views
Hi,

I have a problem with Telerik.Reporting. When I create a report containing a lot of markup (many panels, textboxes etc.) with designer file size of about 1,2MB I get StackOverflow exception calling report object constructor in InitializeComponent() method:

private void InitializeComponent()
        { //in this line a StackOverflow exception happens
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(MyOffer));
            Telerik.Reporting.TableGroup tableGroup7 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.TableGroup tableGroup8 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.TableGroup tableGroup9 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.TableGroup tableGroup1 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.TableGroup tableGroup2 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.TableGroup tableGroup3 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.TableGroup tableGroup4 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.TableGroup tableGroup5 = new Telerik.Reporting.TableGroup();
            Telerik.Reporting.TableGroup tableGroup6 = new Telerik.Reporting.TableGroup();

Exception message:
"An unhandled exception of type 'System.StackOverflowException' occurred in MyApplication.DLL"

What is interesting it takes place before executing method's first line of code - it breaks on bracket '{'. Described situation happens when I run my application on IIS 7, the exception causes my application proccess to break and I get server error page. When running on built-in Visual Studio 2010 development server everything seems fine. I noticed that when I decreased the report designer file size (removing some elements) down below 600KB the exception is gone and everything seems fine on IIS 7. It looks like 600KB is a boundary and larger designer files cause problem.
Thanks for any support.
Sridhar Bolisetti
Top achievements
Rank 1
 answered on 22 Feb 2012
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?