Telerik Forums
Reporting Forum
2 answers
124 views
Hi

I am trying to catch an exception that is being thrown in the Telerik.ReportViewer.Wpf.ReportViewerModel. 

System.Reflection.TargetInvocationException
Exception has been thrown by the target of an invocation.
   at System.RuntimeMethodHandle._InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.RuntimeMethodHandle.InvokeMethodFast(IRuntimeMethodInfo method, Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeType typeOwner)
   at System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
   at System.Delegate.DynamicInvokeImpl(Object[] args)
   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)
Inner Exception:System.Printing.PrintSystemException
Printing was canceled. Win32 error: The specified printer has been deleted.


   at Microsoft.Internal.GDIExporter.CGDIRenderTarget.StartDocument(String printerName, String jobName, String filename, Byte[] devmode)
   at Microsoft.Internal.AlphaFlattener.MetroToGdiConverter.StartDocument(String jobName, PrintTicket ticket)
   at System.Windows.Xps.Serialization.NgcSerializationManager.StartDocument(Object o, Boolean documentPrintTicketRequired)
   at System.Windows.Xps.Serialization.NgcDocumentPaginatorSerializer.SerializeObject(Object serializedObject)
   at System.Windows.Xps.Serialization.NgcSerializationManager.SaveAsXaml(Object serializedObject)
   at System.Windows.Xps.XpsDocumentWriter.SaveAsXaml(Object serializedObject, Boolean isSync)
   at System.Windows.Xps.XpsDocumentWriter.Write(DocumentPaginator documentPaginator)
   at System.Windows.Controls.PrintDialog.PrintDocument(DocumentPaginator documentPaginator, String description)
   at Telerik.ReportViewer.Wpf.ReportViewerModel.OnPrintingComplete(RenderingThreadResult result, EventArgs args)

While I could handle the error at the application  level, I would like to handle the error closer to the source. The ReportViewModel does not expose any interesting methods to override, and the ReportViewer.Error event does not pick up what is basically a system level error ("The specified printer has been deleted").

Where should I catch this kind of error?

Many thanks
Jeremy
jholt
Top achievements
Rank 1
 answered on 10 Mar 2011
8 answers
107 views
Hi guys,
Anybody can help me to complete this task in Telerik Report. I have a table in sql database with three fields: Id, name, visit_date. A person may visit several times in month. I would like to get a report which is showing the person name and number of his visit in each month acccording to the selection of year as a parameter. 
I want to pass 'year' as a parameter which is selected by user.
Out put should be

Year

Name

Jan

Feb

Mar

Apr

May

Jun

Jul

Aug

Sep

Oct

Nov

Dec

Total

Jeff

1

0

0

3

0

0

0

0

0

0

0

0

4

 

 

 

 

 

 

 

 

 

 

 

 

 

 


Jeff visited 1 time in Jan, and 3 times in Apr in the selected year
Anybody can help me?
Thanks
Ben 
Ben
Top achievements
Rank 1
 answered on 09 Mar 2011
0 answers
106 views
I was wondering if there was a way to have the details area repeat based on a data value.

The exact circumstances are these:
I have a table of items ordered (Order_Details) with the columns (OrderDetailID, ProductID, Quantity, etc)
I have a second table with the product information (Products) with columns (ProductID, ProductName, Barcode, etc.)

What i am trying to do is create a report with the barcodes for all the items sold.  The catch is, i need the details area of the report to print once for each Quantity rather than once for each record.
E.g. if i have product #1 quantity 4, the barcode for product #1 should print 4 times, rather than once.

Is there a setting or option i'm missing, or am i going to have to do SQL magic for this one?

Thanks!

P.S. Your barcode control is fantastic!
IIJ Tech Support
Top achievements
Rank 1
 asked on 09 Mar 2011
1 answer
80 views
I was trying to find my problem in this blog http://www.telerik.com/community/forums/reporting/telerik-reporting/ar-culture-text-align-viewing-vs-expt-pnt.aspx#977779 but couldn't get that. I have made a report which correctly translate english in arabic but problem is that it pick up the arabic from resources but doesn't make text as right align. I also watched this video http://tv.telerik.com/watch/reporting/localize/localizing-telerik-reports but still not able to find the resolution. Can you please tell me ASAP how should I make resource file value to be right aligned when report is opening in Arabic. Please see the attached file for reference.

Thanks & Regards,
Muzammil
Steve
Telerik team
 answered on 09 Mar 2011
3 answers
105 views
Hello,

It's possible to use the Report Book in a pure Silverlight application (not embedded in an asp.net page)?

I see the Report Book control in the toolbook when I am in an aspx page but not in a xaml page.

Any idea?
Steve
Telerik team
 answered on 09 Mar 2011
1 answer
76 views
I'm very new to Telerik and trying to create a very basic Barchart using the Report Viewer.  I've created a Class Library to hold the report and have sucessfully generated the report which is just a date and a number. I'm then embedding this in an ASPX page in another project where I use the resulting DLL.  The problem I'm having is getting labels to work.  I want the date to be the label on the X axis and the number to be height of the bar.  Maybe it's me, but I can't seem to find anything out there that smacks me in the head and says "here's out you do that" and it's quite frustrating.  Can anyone tell me how to do that?

Thanks,
Rich
Steve
Telerik team
 answered on 08 Mar 2011
0 answers
87 views
hi,

i am using telerik reporting 2010 q2 , and my objects is working with Nhibernate as ORM.
the problem is i got Session is Closed! sometimes during generating the report.
i searched and found that nhibernate have problem with multi thread using of objects. it seems that telerik reporting use multi threads to generate and render the reports , so is there anyway i can turn it off ?

thanks.
Eastern
Top achievements
Rank 1
 asked on 08 Mar 2011
3 answers
161 views

Hello,

I noticed  that you are planning to add a new feature in Reporting 2011, that allows connecting to an XML Data Source. My question is: would be also possible to connect to a Sharepoint list using this new Data Source type?
If not, then what is the way to access a list in Sharepoint, I mean see the fields in designer and be able to drag and drop these fields on the report?

(Note: there are some articles on the web describing this XML data source technique to connect to a Sharepoint list but I didn't have too much success using it as it doesn't seem to allow passing parameters)

Thank you,

M. R.

Peter
Telerik team
 answered on 07 Mar 2011
3 answers
322 views
I have a stack of picture boxes which grab a static image based on the value of the field. If the value of a field is < a certain value I set Visible = False. However, there is an empty space where the (now) invisible picture box would have been placed. I suspect this is because the Location for the next box is hard coded.

Is there a way to eliminate that blank space?

Thanks,

Matthew
Steve
Telerik team
 answered on 07 Mar 2011
6 answers
683 views
Hi,

What I want to achieve is to hide the panel by clicking a hyperlink. The panel can be hided without problem, however, the whitespace is still there. For example, if the panel takes half a page in the document template, half of the page will be blank after toggle.

Is it possible to make the things work just like the toggle function in html?  If yes, could you provide me with a sample project or code?


Regards
Bill
Peter
Telerik team
 answered on 07 Mar 2011
Top users last month
Anislav
Top achievements
Rank 6
Silver
Bronze
Bronze
Jianxian
Top achievements
Rank 1
Iron
Marco
Top achievements
Rank 3
Iron
Iron
Iron
Jim
Top achievements
Rank 2
Iron
Iron
Nurik
Top achievements
Rank 2
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?