Telerik Forums
Reporting Forum
1 answer
129 views
This week I'm finally getting around to updating my Telerik Reporting binaries to Q3 2011 and have run into a couple issues.

Issue #1
In the past, my report has appeared center justified in the report viewer. After the update the report appears left justified. How do I get it back to center justified? This fail case is reproducible on Windows on IE9, Chrome, and Firefox.
>> Attached are before & after screen shots. <<

Issue #2
When viewing a report, it seems to extend beyond the fixed height of the report viewer. How do I get this fixed? This issue only seems to happen in IE9 (does not occur in Chrome or Firefox).
>> Attached is a screen shot that captures the issue. <<
Steve
Telerik team
 answered on 13 Dec 2011
3 answers
101 views
Hi,

I've an urgent problem, I've to finish the report printer I've started with telerik reporting. I've each time tested one report and print it, and everything is working fine.

But now, I've to print in one time a lot of report(the report is the same, only things given in the constructor change).

So I created the reportBook(at runtime, I've to):
ReportBook reportBook = new ReportBook();
foreach (Participant participant in participants)
{
    reportBook.Reports.Add(new ConfirmationLetter() { DataSource = participant });
}
uxReportViewer.Report = reportBook;

(if I create the "ConfirmationLetter", and set it to uxReportViewer.Report, everything works).

But now when I generate the report:

I got this 
System.ArgumentException was unhandled
  Message=Parameter is not valid.
  Source=System.Drawing
  StackTrace:
       at System.Drawing.Image.get_RawFormat()
       at Telerik.Reporting.PictureBox.set_Value(Object value)
       at J4N.GroopleReports.Reports.Documents.ConfirmationLetter.InitializeComponent() in C:\Users\J4N\Dropbox\WorkSpaces\DotNET\GroopleReports\Reports\Documents\ConfirmationLetter.Designer.cs:line 90
       at J4N.GroopleReports.Reports.Documents.ConfirmationLetter..ctor() in C:\Users\J4N\Dropbox\WorkSpaces\DotNET\GroopleReports\Reports\Documents\ConfirmationLetter.cs:line 23
       at J4N.GroopleReports.UI.NemesisReports.ReportView..ctor(IEnumerable`1 participants) in C:\Users\J4N\Dropbox\WorkSpaces\DotNET\GroopleReports\NemesisReports\ReportView.xaml.cs:line 42
       at NemesisReports.MainWindow.Button_Click(Object sender, RoutedEventArgs e) in C:\Users\J4N\Dropbox\WorkSpaces\DotNET\GroopleReports\NemesisReports\MainWindow.xaml.cs:line 158
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs e)
       at System.Windows.Controls.Primitives.ButtonBase.OnClick()
       at System.Windows.Controls.Button.OnClick()
       at System.Windows.Controls.Primitives.ButtonBase.OnMouseLeftButtonUp(MouseButtonEventArgs e)
       at System.Windows.UIElement.OnMouseLeftButtonUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.ReRaiseEventAs(DependencyObject sender, RoutedEventArgs args, RoutedEvent newEvent)
       at System.Windows.UIElement.OnMouseUpThunk(Object sender, MouseButtonEventArgs e)
       at System.Windows.Input.MouseButtonEventArgs.InvokeEventHandler(Delegate genericHandler, Object genericTarget)
       at System.Windows.RoutedEventArgs.InvokeHandler(Delegate handler, Object target)
       at System.Windows.RoutedEventHandlerInfo.InvokeHandler(Object target, RoutedEventArgs routedEventArgs)
       at System.Windows.EventRoute.InvokeHandlersImpl(Object source, RoutedEventArgs args, Boolean reRaised)
       at System.Windows.UIElement.RaiseEventImpl(DependencyObject sender, RoutedEventArgs args)
       at System.Windows.UIElement.RaiseTrustedEvent(RoutedEventArgs args)
       at System.Windows.UIElement.RaiseEvent(RoutedEventArgs args, Boolean trusted)
       at System.Windows.Input.InputManager.ProcessStagingArea()
       at System.Windows.Input.InputManager.ProcessInput(InputEventArgs input)
       at System.Windows.Input.InputProviderSite.ReportInput(InputReport inputReport)
       at System.Windows.Interop.HwndMouseInputProvider.ReportInput(IntPtr hwnd, InputMode mode, Int32 timestamp, RawMouseActions actions, Int32 x, Int32 y, Int32 wheel)
       at System.Windows.Interop.HwndMouseInputProvider.FilterMessage(IntPtr hwnd, WindowMessage msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at System.Windows.Interop.HwndSource.InputFilterMessage(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndWrapper.WndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam, Boolean& handled)
       at MS.Win32.HwndSubclass.DispatcherCallbackOperation(Object o)
       at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs)
       at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler)
       at System.Windows.Threading.Dispatcher.InvokeImpl(DispatcherPriority priority, TimeSpan timeout, Delegate method, Object args, Int32 numArgs)
       at MS.Win32.HwndSubclass.SubclassWndProc(IntPtr hwnd, Int32 msg, IntPtr wParam, IntPtr lParam)
       at MS.Win32.UnsafeNativeMethods.DispatchMessage(MSG& msg)
       at System.Windows.Threading.Dispatcher.PushFrameImpl(DispatcherFrame frame)
       at System.Windows.Threading.Dispatcher.PushFrame(DispatcherFrame frame)
       at System.Windows.Application.RunDispatcher(Object ignore)
       at System.Windows.Application.RunInternal(Window window)
       at System.Windows.Application.Run(Window window)
       at System.Windows.Application.Run()
       at NemesisReports.App.Main() in C:\Users\J4N\Dropbox\WorkSpaces\DotNET\GroopleReports\NemesisReports\obj\x86\Debug\App.g.cs:line 0
       at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
       at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
       at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
       at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean ignoreSyncCtx)
       at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
       at System.Threading.ThreadHelper.ThreadStart()
  InnerException:

On the last line of this:

//
// pictureBox1
//
this.pictureBox1.Location = new Telerik.Reporting.Drawing.PointU(new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(0D, Telerik.Reporting.Drawing.UnitType.Cm));
this.pictureBox1.MimeType = "image/jpeg";
this.pictureBox1.Name = "pictureBox1";
this.pictureBox1.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(19D, Telerik.Reporting.Drawing.UnitType.Cm), new Telerik.Reporting.Drawing.Unit(4D, Telerik.Reporting.Drawing.UnitType.Cm));
this.pictureBox1.Value = ((object)(resources.GetObject("pictureBox1.Value")));

Which is generated by the telerik viewer. What's going wrong???

Thank you!

Steve
Telerik team
 answered on 12 Dec 2011
1 answer
689 views
Running the reportview in asp.net mvc 3 following the example at:  

http://fullsaas.blogspot.com/2011/02/how-to-use-telerik-report-in-aspnet-mvc.html

The report looks right but I'm getting a javascript error when running in Chrome.  It is:
"Telerik.ReportViewer.axd:204     Uncaught SyntaxError: Unexpected token &"

Full trace below:
Telerik.ReportViewer.axd:204 Uncaught SyntaxError: Unexpected token &
ReportViewer.NavigateReportFrame     Telerik.ReportViewer.axd:204
ReportViewer     Telerik.ReportViewer.axd:88
(anonymous function)     report:196

Any ideas on how to resolve this?  I'm using the trial version and testing with both MVC2 and MVC3 in order to verify things are solid before purchasing.

Thanks - wg

Steve
Telerik team
 answered on 12 Dec 2011
3 answers
66 views
Hello,
I am having the same error as discussed here: http://www.telerik.com/community/forums/reporting/telerik-reporting/reports-in-ipad.aspx I am using version 5.1.11.713. Is there a solution without upgrading or downgrading?
Thank you!
Steve
Telerik team
 answered on 12 Dec 2011
2 answers
106 views
Hi i am working with htmltextbox to obteing some data from data source and text for example y write this in value:Notice: Personnel is wroking for {Fields.Name}   it was working good until one field has an "&" mixing with the text.
soraya
Top achievements
Rank 1
 answered on 09 Dec 2011
7 answers
486 views
We have a report containing a subreport.  When we export to CSV all the fields from the report are added to each line of data from the Subreport.

Is there some way to prevent this or to intercept the request to the export feature so that we only export the subreport raw data?

Thanks!
Kevin
Top achievements
Rank 1
 answered on 09 Dec 2011
5 answers
1.1K+ views
Hi All,
I am trying to generate Telerik report with dynamic columns.So I create data table at run time in reporting.So I don't add Datasource in design mode.When I add report to report viewer.This error occurs "Exception has been thrown by the target of an invocation"..
How can I solve this problem.I use the following code in reporting at run time..
private void table1_ItemDataBinding(object sender, EventArgs e)
        {
            Telerik.Reporting.Processing.Table processingTable = (sender as Telerik.Reporting.Processing.Table);
            DataTable dtCashBook = new DataTable();
            dtCashBook = control.GetCashBookListForReport();
            processingTable.DataSource = dtCashBook;
            Telerik.Reporting.HtmlTextBox textboxGroup;
            Telerik.Reporting.HtmlTextBox textBoxTable;
            table1.ColumnGroups.Clear();
            table1.Body.Columns.Clear();
            table1.Body.Rows.Clear();
            int i = 0;
            foreach (DataColumn dc in dtCashBook.Columns)
            {
                Telerik.Reporting.TableGroup tableGroupColumn = new Telerik.Reporting.TableGroup();
                table1.ColumnGroups.Add(tableGroupColumn);
                table1.Body.Columns.Add(new Telerik.Reporting.TableBodyColumn(Unit.Inch(1)));

                textboxGroup = new Telerik.Reporting.HtmlTextBox();
                textboxGroup.Style.BorderColor.Default = Color.Black;
                textboxGroup.Style.BorderStyle.Default = BorderType.Solid;
                textboxGroup.Value = dc.ColumnName.ToString();
                textboxGroup.Size = new SizeU(Unit.Inch(1.1), Unit.Inch(0.3));
                tableGroupColumn.ReportItem = textboxGroup;

                textBoxTable = new Telerik.Reporting.HtmlTextBox();
                textBoxTable.Style.BorderColor.Default = Color.Black;
                textBoxTable.Style.BorderStyle.Default = BorderType.Solid;
                textBoxTable.Value = "=Fields." + dc.ColumnName;
                textBoxTable.Size = new SizeU(Unit.Inch(1.1), Unit.Inch(0.3));
                table1.Body.SetCellContent(0, i++, textBoxTable);
                table1.Items.AddRange(new ReportItemBase[] { textBoxTable, textboxGroup });

            }
        }
Elian
Telerik team
 answered on 09 Dec 2011
3 answers
179 views
Hi,

I have 2 sections in my report. One isTextbox and other is panel. The textbox is added to the detail section and then the panel. I want to set the width of textbox to the panel. I tried to do it in Textbox_itemDatabound property but no change. I see that once the report is rendered the colspan of td in which this textbox is set to 1 instead of 2. Is there any way of setting the width equivalent to the panel width before rendering the report.

Thanks in advance.
Subra
Elian
Telerik team
 answered on 09 Dec 2011
1 answer
112 views
Hi,

I want to do modification to the data before exporting it to excel. IS there any way by which I will come to know that export evernt is fired so I can modify the data and will export it to the excel. I'm using Telerik.ReportViewer.WebForms. I know that for Windows it is available.

Thanks in Advance.
Subra

Steve
Telerik team
 answered on 09 Dec 2011
1 answer
68 views

Hi,

I am using the Telerik  Reporting Q2 2011 (version 5.1) with Silverlight (4.0.60531.0). When I click on the print button at ReportViewer, just a quick progress bar show at IE and print dialog does not pop-up. Moreover, save dialog works for all formats except PDF and TIF formats. On selecting these formats following error occurs:

Value cannot be null

Parameter name: Key

The request URL is as follows:

http://www.loanvantageprm.com/dev/cre.sl/ReportService.svc/resources/exportcachedreport?instanceId=e5203627-88e0-4458-b5df-099bdcdcab63&format=PDF&deviceInfo=%5b%7b%22Key%22%3a%22CurrentCulture%22%2c%22Value%22%3a%22en-US%22%7d%2c%7b%22Key%22%3a%22CurrentUICulture%22%2c%22Value%22%3a%22en-US%22%7d%2c%7b%22Key%22%3a%22Telerik.ReportViewer.PageNumber%22%2c%22Value%22%3a1%7d%2c%7b%22Key%22%3a%22Telerik.ReportViewer.InstanceID%22%2c%22Value%22%3a%22e5203627-88e0-4458-b5df-099bdcdcab63%22%7d%2c%7b%22Key%22%3a%22ImmediatePrint%22%2c%22Value%22%3atrue%7d%5d&sequence=22c2b34d-dc4f-4112-8dec-37cd7bfd6dd6

This dev URL can be accessed for report service: http://www.loanvantageprm.com/dev/cre.sl/ReportService.svc

This can also be used to generate wsdl: http://www.loanvantageprm.com/Dev/CRE.SL/ReportService.svc?wsdl

Please look at the issue and suggest possible solution. Thank you for your time and consideration.

BR

Adil

Steve
Telerik team
 answered on 09 Dec 2011
Top users last month
Rob
Top achievements
Rank 3
Bronze
Bronze
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?