Telerik Forums
Reporting Forum
11 answers
181 views

in the Q1 2012 release of the Silverlight Reporting control the attribute

telerik1:StyleManager.Theme="Windows7"

isn't working anymore.
I get the error:

Fehler 85 A ResourceDictionary '/Telerik.Windows.Themes.Windows7;component/Themes/Telerik.ReportViewer.Silverlight.xaml' cannot be found. Please make sure that references to the needed theme assemblies have been added to the project. C:\Documents and Settings ...

Is it possible that you forgot to implement this style?

Regards
Dirk

Stef
Telerik team
 answered on 16 Aug 2013
1 answer
1.4K+ views
I tried to add a Report in my MVC project and tried to add SQL datasource to the report.
At Configure DataSource Command I have selected Stored Procedure and my selected stored procedure contains two parameters of type datetime.
On ExecuteQuery when I give value "07/01/2013" for parameters of type datetime error occurs saying "Failed to convert parameter value from a string to a DateTime."
Tried giving the above value in following formats but still error persist.
"07/01/2013"
'07/01/2013'
20130701
Please help me out from this and I am new to telerik reporting.

Any help would be appreciated. Thanks in advance.
Ivan Hristov
Telerik team
 answered on 16 Aug 2013
2 answers
223 views
Hi all,

I'm hoping someone could tell me how to implement some custom logic around page breaks & borders in a telerik report.

Please see the attached "output screenshot.png". The issue should be obvious - I need to put a bottom border on the top page, and a bottom border on the middle page, at the point that the page has broken.

I wish to be able to tell from a condition (or property on the report) whether the current row in the DetailSection is the final one on any page so I can insert a horizontal line in places like after point 4.2 (top page in screenshot). Using a page footer is not suitable because of situations like after condition 4.5 (middle page in screenshot), where the subsequent item is long so the page breaks further up the page. Unless, there is a way to tell how much of the page has been cleared by the page break, so I would be able to extend the vertical bars down to the bottom?

At the moment, the vertical bar length in each row is bound to a method, which calculates it based on the length of the text, so it appears as one long continuous vertical bar.

Can anyone tell me how to implement this?
Stef
Telerik team
 answered on 16 Aug 2013
2 answers
262 views
Hi
I have a small test website on the untrusted side of my firewall and I need to know what port telerik uses to pass parameters to a stored procedure.
I can access the db fine when the SQL is embedded in the report but not when it is using a stored procedure.
Thanks
Andy
Hadib Ahmabi
Top achievements
Rank 1
 answered on 16 Aug 2013
1 answer
173 views
Hi
I have an application that needs to print several hundred pre-existing PDF files based on user selection.
Is it possible to get Reportviewer to print these files and preferably silently?

`The application would provide a list of PDF filenames and reporting could loop trough that list and print all the files in one go.
At the moment the user gets x-number of printerdialogs......not user frendly.

regards
Alexander
Ivan Hristov
Telerik team
 answered on 16 Aug 2013
4 answers
122 views
Hi

If the pie chart has one of its four data points equaling zero it will not print correctly or export to pdf correctly. Yet if it has a value greater than zero it will work as normal see screen shots.

Unsure how to fix this as it renders in html fine?

Thanks
Duncan

 
Duncan
Top achievements
Rank 1
 answered on 15 Aug 2013
5 answers
564 views
Hi

I am wanting to do something like the Product Catalog example where I have a long list of the same "report" that has different data in it.  Unfortunately, my data is generated dynamically at runtime and I cannot tie it to a sql table.  I have tried adding all my reports which I generate into a report book, but it creates a page break after each report and I don't want that but otherwise the functionality is what I want.  Is there a way to add multiple subreports dynamically?  I have also seen the example here: http://www.telerik.com/community/forums/reporting/telerik-reporting/113406-sub-reports.aspx but my data will also not always be the same size so it would be difficult to specify size and location.

Alex
Stef
Telerik team
 answered on 15 Aug 2013
1 answer
358 views
I have a project using Telerik Reporting 2013 Q2.  All was going well until I attempted to export my report to an external file (I had been testing using a Telerik Report Viewer).  when I export my report I get multiple blank pages interspersed in the report.  I have looked at the post http://www.telerik.com/support/kb/reporting/general/problem-telerik-reporting-renders-blank-pages.aspx but that is not my problem.  Here is a code sample of my code:

 Dim rg As New MainReport

            rg.txtReportName.Value = "Contractor One"
            rg.txtRunDate.Value = Now.Date.ToShortDateString

            rg.ReportGuid = xxxxxx
          
            rg.GenerateReport()

            Dim rs As New Telerik.Reporting.InstanceReportSource
            rs.ReportDocument = rg

            Dim tf As New testform
            tf.ReportViewer1.ReportSource = rs
            tf.ReportViewer1.RefreshReport()
            tf.ShowDialog()

            Dim processor As New Telerik.Reporting.Processing.ReportProcessor
            Dim deviceInfo As New Hashtable
         
            Dim rr As Telerik.Reporting.Processing.RenderingResult

            rr = processor.RenderReport("PDF", rs, deviceInfo)

            System.IO.File.WriteAllBytes("d:\temp\pdfexp.pdf", rr.DocumentBytes)

The report displays fine in the Report Viewer but when it gets exported, blank pages appear randomly.

Alex
Stef
Telerik team
 answered on 15 Aug 2013
1 answer
143 views
Let's say that I have a crosstab report and the # of columns will exceed the width of the page.  If I have columns A,B,C,D,E and only  three columns, and three rows print on a page I get a print out like this (for invoices 1-6):

Page 1

Invoice # |   A   |   B   |   C
---------------------------------------
1
2
3

Page 2
Invoice # |   D   |   E
---------------------------------------
1
2
3

Page 3
Invoice # |   A   |   B   |   C

---------------------------------------
4
5
6

Page 4
Invoice # |  D   |  E   

---------------------------------------
4
5
6


What can I do to so that the report will display information that looks like this:
Page 1

Invoice # |   A   |   B   |   C
---------------------------------------
1
2
3

Page 2
Invoice # |   A   |   B   | C
---------------------------------------
4
5
6

Page 3
Invoice # |   D   | E   

---------------------------------------
1
2
3

Page 4
Invoice # |  D   |  E   

---------------------------------------
4
5
6



I hope that this example is clear, please let me know how I can clarify my request.  


Stef
Telerik team
 answered on 15 Aug 2013
1 answer
1.7K+ views
Can I get some help with this dilemma?

I tried to create a new Q2 2013 report into an existing project only to see this error:

"Could not load file or assembly 'Telerik.Reporting, Version=4.2.10.1110, Culture=neutral, PublicKeyToken=a9d7983dfcc261be' or one of its dependencies. The system cannot find the file specified."

Prior to adding this new item I had deleted the reference to Telerik.Reporting from my project, and then let VS2010 add the appropriate reference. The version is 7.1.13.802; the runtime version is v4.0.30319.

All of my projects in this solution are configured to use .net 4.0.

I have tried to use the Reporting --> Upgrade Wizard, which tells me the upgrade was successful. I have cleaned and rebuilt the project after running the wizard. I have restarted Visual Studio, and the workstation (running Win7 Pro x64).

All of the other Telerik controls work fine in the project and solution.

Here is the call stack information:
at System.Reflection.RuntimeAssembly._nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.nLoad(AssemblyName fileName, String codeBase, Evidence assemblySecurity, RuntimeAssembly locationHint, StackCrawlMark& stackMark, Boolean throwOnFileNotFound, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.RuntimeAssembly.InternalLoadAssemblyName(AssemblyName assemblyRef, Evidence assemblySecurity, StackCrawlMark& stackMark, Boolean forIntrospection, Boolean suppressSecurityChecks)
at System.Reflection.Assembly.Load(AssemblyName assemblyRef)
at Microsoft.VisualStudio.Design.VSTypeResolutionService.System.ComponentModel.Design.IDesignTimeAssemblyLoader.LoadRuntimeAssembly(AssemblyName targetAssemblyName)
at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUniverse.LoadRuntimeAssembly(AssemblyName assemblyName)
at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUtil.GetRuntimeType(Type type)
at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkType.TryGetRuntimeType()
at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUtil.EnsureRuntimeType(Type type)
at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUtil.GetAttributeArgumentValue(Type argType, Object value)
at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUtil.ConstructAttribute(CustomAttributeData data)
at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUtil.GetCustomAttributes(ICustomAttributesDataProvider member, Type filter, CustomAttributesCache cache)
at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkUtil.GetCustomAttributes(Type type, Type filter, Boolean inherit, CustomAttributesCache cache)
at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkType.GetCustomAttributes(Type filter, Boolean inherit)
at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkAttributeCollection.GetAttributes(Type type, Type filter)
at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkAttributeCollection.GetAttributes(MemberInfo member, Type filter)
at Microsoft.VisualStudio.Shell.Design.VsTargetFrameworkAttributeCollection.get_Attributes()
at Microsoft.VisualStudio.Design.VSDesignSurface.EnsureExtensions(IComponent component)
at Microsoft.VisualStudio.Design.VSDesignSurface.CreateInstance(Type type)
at System.ComponentModel.Design.DesignerHost.System.ComponentModel.Design.IDesignerHost.CreateComponent(Type componentType, String name)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.DesignerSerializationManager.System.ComponentModel.Design.Serialization.IDesignerSerializationManager.CreateInstance(Type type, ICollection arguments, String name, Boolean addToContainer)
at System.ComponentModel.Design.Serialization.TypeCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at Telerik.Reporting.Design.ReportCodeDomSerializer.Deserialize(IDesignerSerializationManager manager, CodeTypeDeclaration declaration)
at System.ComponentModel.Design.Serialization.CodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager manager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.PerformLoad(IDesignerSerializationManager serializationManager)
at Microsoft.VisualStudio.Design.Serialization.CodeDom.VSCodeDomDesignerLoader.DeferredLoadHandler.Microsoft.VisualStudio.TextManager.Interop.IVsTextBufferDataEvents.OnLoadCompleted(Int32 fReload) 
Trent
Top achievements
Rank 1
 answered on 14 Aug 2013
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?