Telerik Forums
Reporting Forum
3 answers
126 views
Hi,
Telerik report printing is not working in Mozilla Firefox, but working in Internet Explorer and Google chrome. why?.

Thnaks & Regards
Anzar.M
Stef
Telerik team
 answered on 15 Mar 2013
3 answers
146 views
I am having an issue using the latest (internal) build with the the Reporting control HTMLTextBox.

When I use a HTML fragment like <u>Test</u> the control renders as expected with an underline. Attached is screen shot HTMLFragment.

But when I supply the HTMLTextBox well formed HTML like:
<p style="margin-top: 0px;margin-bottom: 12px;line-height: 1.15;"><span style="font-family: 'Verdana';font-size: 16px;"><u>Test</u></span></p>

The underline and last letter is missing does not render as in the attached screen shot HTML.

Any ideas on how I can overcome this?

XAML
<Window     x:Class="ReportViewer.MainWindow"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
            xmlns:tr="http://schemas.telerik.com/wpf"
            Loaded="WindowLoaded"
            Title="MainWindow">
    
    <StackPanel Orientation="Vertical">

        <tr:ReportViewer    x:Name="rvWorks"
                            Margin="5 5 5 5" />

        <tr:ReportViewer    x:Name="rvDoesNotWorks"
                            Margin="5 5 5 5" />

    </StackPanel>
</Window>

C#
    public partial class MainWindow : Window
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        private void WindowLoaded(object sender, RoutedEventArgs e)
        {
            UriReportSource works = new UriReportSource();
            UriReportSource doesNotWork = new UriReportSource();

            works.Uri = @"C:\Temp\HtmlTextBox.trdx";
            works.Parameters.Add(new Telerik.Reporting.Parameter("htmlTextBoxValue", "<u>Works</u>"));

            doesNotWork.Uri = @"C:\Temp\HtmlTextBox.trdx";
            doesNotWork.Parameters.Add(new Telerik.Reporting.Parameter("htmlTextBoxValue", @"<span style=""font-family: 'Verdana';font-size: 6px;""><u>Does Not Work</u></span>"));
            
            this.rvWorks.ReportSource = works;
            this.rvDoesNotWorks.ReportSource = doesNotWork;
        }
    }
}
Elian
Telerik team
 answered on 15 Mar 2013
1 answer
104 views
When I hit the print button in my asp.net application report viewer nothing happens (Firefox 19 + Acrobat Reader plugin 11). In IE and Chrome the print dialog is shown.

Using Firebug I open the URL that is requested in the print button (http://mydomain/myapp/Telerik.ReportViewer.axd?instanceID=31b15d2320034cdc994c3b00b0f6ca3c&optype=Print&format=PDF&rand=1363363942793) and If I open it in another tab, the acrobat reader plugin shows the report.

Any idea how to solve this?
Thanks!
Jorge
Top achievements
Rank 1
 answered on 15 Mar 2013
0 answers
125 views
I'm currently working on a Telerik report that will print out 2-sided ID cards for employees. The front side will be basic contact information and a picture, and the backside will display all courses that the employee has taken. I currently have it working by way of placing a page break after the contact information portion of the report. This accomplishes my goal.

A problem arises when their course list is too large to fit on the 2nd page (back of 1st ID Card) - and must extend into a third page (front of 2nd ID card). My desired functionality would be that the contact information is once again generated and the overflow of the 2nd page's courses is displayed on the 4th page (or back of 2nd ID card).

Example of what's happening now:
Page 1: [Contact Info front of card     ]
Page 2: [Overflow of course info e     ]
Page 3: [xtending onto different page]

Desired functionality:
Page 1: [Contact Info front of card     ]
Page 2: [Overflow of course info e     ]
Page 3: [Contact Info front of card     ]
Page 4: [xtending onto different page]

Does anyone have any ideas on how this might possibly be accomplished?
Atlas
Top achievements
Rank 1
 asked on 15 Mar 2013
1 answer
95 views
Hello. I'm in the middle of creating a report that requires some report controls to be rotated. I see in the Telerik Reporting Tutorial that control rotation is available by a property called Angle, and is directly editable in the designer indicated by 'small curved lines around each corner.' I'm using Telerik Reporting Q3 2012 release, and I see no angle property or small curved lines. Any ideas?
Atlas
Top achievements
Rank 1
 answered on 15 Mar 2013
1 answer
100 views
We are upgrading a project and moved .net version to 4.0 from 2.0.  Project is working fine, except that the reportviewer only displays many instances of "Submit Query" instead of the reportview toolbar, and the report does not run.

Any ideas how to get around it?  Windows server 2008.  Telerik.ReportViewer.WebForms  7.0.13.220, Asp.Net 4.0 app pool

Peter
Telerik team
 answered on 15 Mar 2013
4 answers
737 views
I've done a few reports using OpenAccess ORM that allow me to use a sql stored procedure that returns multiple datasets of complex type; however, I've been assigned to do these using EF5 only instead of using OpenAccess ORM since the rest of our app uses EF5.

The report is set up during design time and report params are assigned as sql stored proc params when the sqlDataSource is created. We are then using mvvm, so the report params are being passed in the viewmodel and then the report is run. I've successfully done this for reports using stored procedures returning only one dataset. However, I have not been successful figuring out how to configure a sqlDataSource with multiple data sets returned. It appears that the Data Explorer is only seeing the first return and the others cannot be accessed in any of the setups or explorer windows. I haven't been able to find any documentation to possibly set this in the viewmodel either.

Do any of you have any tips on how to go about setting up the sqlDataSource for multiple returns if this can even be done?
Stef
Telerik team
 answered on 15 Mar 2013
1 answer
115 views
Hi,
I want to design  telerik report like below attachment. How to  create tables in reports?. Also the data source is from a data set, containing multiple tables like basic details,qualification details and travel details. How to set all of the data table's as a data source for report?.

Thanks & Regards
Anzar.M
Hadib Ahmabi
Top achievements
Rank 1
 answered on 15 Mar 2013
1 answer
1.1K+ views
You can see my report layout/design/structure on report_design.jpg (attached)
You can see this report's output on report_1stpage.jpg and report_2ndpage.jpg (attached)

as you can see there's lightgray bottom borders for the elements in the table, I would like
to change the border for the bottom elements in the table to black line. I simulated that
behavior on the 1st page by adding a text box after the table with bottom border line black, 
but I don't think this covers the second page..... so a better solution would be to add a 
conditional style for those bottom rows (like biding???) .... but how do I do that? is this
even possible?

I already have row groups and column groups for the elements and as you can see,
that's how I spread the data vertically and horizontally across the pages... 

thanks for your help.
Obi-Wan Kenobi
Top achievements
Rank 1
 answered on 15 Mar 2013
0 answers
132 views
Just writing this here for anyone else who gets stuck by this.

My function was:
public static string CalculateFieldDescription(DateTime deliveredDate)
{
....
}

If deliveredDate was null in the data, I would get error:
"An error has ocured while procesing TextBox: The expression contains undefined function call CalculateFieldDescription() .

Now here:
http://www.telerik.com/support/kb/reporting/designing-reports/the-expression-contains-undefined-function-call-myuserfunction-error.aspx
Telerik in their wisdom say "3.A field specified as function argument is null. Make sure that such cases are handled in the user function.
Um, you don't get the opportunity dude, it is ERRORING BEFORE IT IS GETTING CALLED.
So your point #3 is clearly bogus and wrong.

A solution is simply, change your function to have Object parameter:
public static string CalculateFieldDescription(Object deliveredDate)
{
  if (deliveredDate != null)
  {
     // Do conversion and use it.
  }
}

Hope this is more helpful then Telerik's doco.

Pat.




Patrick Saunders
Top achievements
Rank 1
 asked on 14 Mar 2013
Top users last month
Rob
Top achievements
Rank 3
Bronze
Iron
Iron
Sergii
Top achievements
Rank 1
Iron
Iron
Dedalus
Top achievements
Rank 1
Iron
Iron
Lan
Top achievements
Rank 1
Iron
Doug
Top achievements
Rank 1
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?