Telerik Forums
Reporting Forum
0 answers
116 views
Hi,

I've seen your tutorial http://blogs.telerik.com/blogs/posts/11-04-12/how-to-telerik-reporting-in-microsoft-lightswitch-beta-2.aspx to integrate a reporting on a lightswitch app.

It's currently working, but I've one little problem with it:

I've to start separately a server which only host the service, it implies to problem:
  • I've to specify the absolute URL in the XAML(this point is very problematic for me, I need at last the possibility to set it in a config file)
  • I've to deploy every time two website

Is there a way to avoid those two problems?

Thank you very much!
Julien
Top achievements
Rank 1
 asked on 14 Dec 2011
1 answer
328 views
I have a report that contains 10 subreports in the details section...all works well except for one thing.

one of the subreports (call it subreport 1) contains a subreport (call it subreport 1a) also. they use 2 different datasources for their data.

subreport1 gets its data (data coming from a custom business object and just fills textboxes, no tables or lists) and all looks prefect.

subreport1a gets its data which has 3 rows  from a different datasource and puts its data into a list on its details section. (data coming from a different custom business object than for its parent).

the problem is that subreport1a instead of showing 3 rows of data shows 6 rows (3 of which are duplicates). I have seen posts that talk about subreports nested in lists or tables but I am not doing that.

any help or suggestions would be greatly appreciated as I dont see anyway to get data to the subreport1a without it being a seperate datasource.

thanks,
richard
Elian
Telerik team
 answered on 14 Dec 2011
16 answers
373 views
Hi All,

I want to display report in two different culture (English and Arabic). I set report localized property to true and then change the language and change the label values as per each languages. When I change the language in design mode labels are changed accordingly. I read one of the thread here and telerik report is rendered on server ui culture. Even if i change the culture and ui culture in asp.net page (contains silverlight object) to Arabic (ar-AE), still default language (english) is displayed on the report. What did I missed?
Chris Thierry
Top achievements
Rank 1
 answered on 14 Dec 2011
5 answers
394 views
Hi,

I am new to Telerik... I am using .Net 2010.
I have bind the data in the Telerik ReportViewer  using sqldatasource by storeprocedure But, my requirement is to scribble some thing in the C# code and then i need to bind it.
I have a page as Reportpage.aspx and repot  as report.CS

I am using that reportviwer in reportpage.aspx like

 <telerik:ReportViewer ID="ReportViewer1" runat="server" Height="655px"       CssClass="rgSelectedRow"
                Width="1434px" ondatabinding="ReportViewer1_DataBinding" >
                
             </telerik:ReportViewer>

Where and how can i use Itemdatabound to bind data to REPORT.

Please advice me or give me the sample code...

Thanks
Ragu
Ragu
Top achievements
Rank 1
 answered on 14 Dec 2011
1 answer
210 views
I have downloaded and installed the trial for Telerik Reporting tools.

The problem I am having is:

I create a report. The header is 2in in Height. The Detail is .25in height and the footer is 3in in height.

When I view or preview the report the page footer is cliped to the 25in height. If I increase the detail section height the foot changes the same height.

the Height in the properties box gives the height I set it to.

Thanks
Steve
Telerik team
 answered on 14 Dec 2011
2 answers
124 views
Simple question... We'd like to install and use Telerik Reporting to use with a Firebird database. Is this possible? 
Patrick
Top achievements
Rank 1
 answered on 13 Dec 2011
4 answers
378 views
Using Telerik 5.1.11.928, .Net 4.0 Full, and the WPF report viewer.  

One single user clicks print in my app.  Print preview comes up.  They click print there.  The printer dialog box comes up.  They select a printer and hit OK.  Nothing happens at all.  The dialog goes away and nothing is printed.  No errors of any kind.  This user can print from all other applications.  We tried printing to the XPS printer as well, same result.

All other users can print just fine (so far).  What could be missing?  Any way to debug/log anything here?
Steve
Telerik team
 answered on 13 Dec 2011
2 answers
371 views
Hi,

I'm building a PDF report which has two groups and a detail. I use a custom entity for report data source. However, this entity contains a nested collection. I want to group the outermost group on the "ID" values that are contained in the nested entity collection.

So, my entity looks like:

class ReportEntity
{
...
...
  public List<NestedEntity> Nested { get; set; }
...
...
}

For my report, I set,
ReportEntity repData = .... // Get data from database
Report.DataSource = repData

Now, in designer, I right click on Report, go to "Groups" and create an expression for a group that I've added there. The expression looks like:
=Fields.Nested.ID // Assume ID is a member for NestedEntity class

It throws exception saying "ID" is no defined in current context. I then tried using ObjectDataSource, go to data explorer and drag and drop fields from the data explorer. The expression that designer generated was:
=Fields.Nested.Items.ID

However, when I run the report, I get the exception saying "Items" is not defined in current context.

This issue has been bugging me for a while. While I can assign a collection of NestedEntity directly as Report's data source but I would not prefer to do that. It makes certain other things complex for me given the complexity of the report and data structure.

How can I achieve grouping in this scenario?

[P.S.] I am using Q2 2010
Elian
Telerik team
 answered on 13 Dec 2011
1 answer
158 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
132 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
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?