Telerik Forums
Reporting Forum
3 answers
124 views
     I have a problem with Telerik Reporting Trial Version. I've just downloaded the trial version of Q3 09 Release of Telerik Reporting and instaled it on my computer with Windows 7 and Visual Studio 2010 Beta 2. Then I launched the VS, I created a new Class Library Project and when I tried to add new Item, the Telerik Report doesn't appear.
     
     I tried to repair and reinstall the The Telerik Reporting but still doesn't work. what can I do?

     Thanks for your time and sorry for my English.

Iván from Spain
Peter Staev
Top achievements
Rank 1
 answered on 05 Dec 2009
2 answers
125 views
Problem: A user should be able to select a number of Reports that are to be included in a ReportBook. 
(1) How do I go about showing the Available Reports e.g. in a DropDown List that can be included in a ReportBook.
(2) How do I add the selected Reports to a ReportBook programmatically.


For (2), I know I could for example add the eventual selected Reports as follows:
ReportBook reportBook = new ReportBook();
        reportBook.Reports.Add(new UserSelectedReport);
        ReportViewer1.Report = reportBook;


But how can I ensure that UserSelectedReport is linked to a ReportPage that the user selected.

Note: The Reports that are selected are saved in a DatabaseTable ("ReportPages") which gives the ReportPageName and UserID.

Hopefully the above is clear.
Mark Holdt
Top achievements
Rank 1
 answered on 04 Dec 2009
3 answers
160 views
I have a web application that is not displaying the reports as designed in the report viewer.  They seem to print okay (except for 1), but the report viewer has everything all jumbled up.  Textboxes are no where near where they should be etc.  I am using Telerik Reporting Q2 2008.   Any ideas?
Steve
Telerik team
 answered on 04 Dec 2009
2 answers
93 views
Hello,
suppose you have a String(from a datasource) to display on a report and the requirements are that the you could have different reports that display that string for example:
1° report. Display only the string on a TextBox
2° report. Display the string on a textbox and an image from a file
3° report: Display the string as a barcode


so the datasource is the same(the string from the db). What if i create a 4° report and want to distribuite to the application that is already in production? So how can i handle this situation? using dll and reflections(i believe its too bad)?

thank you.
evald80
Top achievements
Rank 1
 answered on 04 Dec 2009
0 answers
105 views
Hi,

I have a question about the page header. I have a customer list. Each customer has a list of orders. I want to print the customer info on each page (that is why I put the customer info in the page header section). When the customer is changed, the report will print a page break and change the data in the page header for the following pages until it reaches another customer. For example:

Page 1:
        Name: Mike
        Order 1 ..............
        Order 2 ..............
        ...........................
Page 2:
        Name: Mike
        Order m .............
        ...........................
Page 3:
        Name: John
        Order n ..............
        ...........................

...................................

Thank you for your response.
Bruce
Bruce Liu
Top achievements
Rank 1
 asked on 03 Dec 2009
1 answer
96 views
Hi, I'm using the Silverlight ReporViewer control but i need to pass some parameter to my reports and i just cant find the way to do that. I hope somebody can help me.

Thanks in advance
Chris Gillies
Top achievements
Rank 1
 answered on 03 Dec 2009
4 answers
476 views
I have pretty complex report (3 sub-reports in detail section).
The main report had Footer  with Page number (no Page header).
The footer is not shown at all.... Visible set to true, Print on First Page, Print On Last Page set to true, No formatting rules.
If i ad the Page Header with Page Counter the Header does print. But footer still not visible.

What can be a problem?
I had attached the screenshot where footer's properties are visible.

PS: Forgot to mention that it's a WinForm report.
Also seems to me the file attachment did not work.

Thanks
George.
George
Top achievements
Rank 1
 answered on 02 Dec 2009
1 answer
73 views
I'm trying to create a report from within a Silverlight application but am running into problems. I can successfully create reports from a C# application, but not Silverlight.

First for C# - I create a C# Windows Forms application and add a "New Item" of Telerik Report Q3 2009 to the project. Using the Report Wizard, I connect to a remote SQL server and point to the appropriate database and then use the Query Builder to select the fields from the tables I wish to display. I place the fields into the Detail section and finish out the report. The Preview option properly displays the report with all of the appropriate data from the tables selected.

Next for Silverlight - I create a Silverlight Application (set to run in a hosted environment) and add a new Telerik report item to the .Web project. I follow the exact same steps as with the C#, even running the query to verify that the select statement is selecting the data properly. Fields are placed in the Detail section as in the C# project, and I finish out the report in the same way. The Preview and HTML Preview both display the field headers but no data is displayed.

I also repeated the above steps with a local data source with the exact same results. What am I doing wrong?
Chris Gillies
Top achievements
Rank 1
 answered on 02 Dec 2009
3 answers
254 views
The export report to pdf stopped working after upgrading to Q3 2009 Reporting. I found a fix you posted about adding the following web.config to the folder the report viewers are being used.

<?xml version="1.0"?><configuration>
  <system.web>
    <httpHandlers>
      <add path="Telerik.ReportViewer.axd" verb="*" type="Telerik.ReportViewer.WebForms.HttpHandler, Telerik.ReportViewer.WebForms, Version=3.1.9.807, Culture=neutral, PublicKeyToken=a9d7983dfcc261be" validate="true"/>
    </httpHandlers>
  </system.web>
</configuration>

It was working fine until I upgraded to latest release, any idea how to get pdf exports working again? Here my error when exporting.

Server Error in '/' Application.

Security Exception

Description: The application attempted to perform an operation not allowed by the security policy.  To grant this application the required permission please contact your system administrator or change the application's trust level in the configuration file.

Exception Details: System.Security.SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

Source Error:

An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.

Stack Trace:

[SecurityException: Request for the permission of type 'System.Security.Permissions.SecurityPermission, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.]
   Telerik.Reporting.Pdf.Rendering.PdfRenderer.DrawString(String text, PdfFont font, Brush brush, RectangleF rect, Boolean rightToLeft) +0
   Telerik.Reporting.Pdf.Drawing.PdfGraphics.DrawString(String s, Font font, Brush brush, RectangleF rect, StringFormat format) +124
   Telerik.Reporting.ImageRendering.CanvasPdf.DrawString(String s, Font font, Brush brush, RectangleF rect, StringFormat format) +107
   Telerik.Reporting.Processing.TextRenderer.DrawText(IGraphics g, String text, Font font, Brush brush, RectangleF bounds, Double angle, StringFormat stringFormat) +793
   Telerik.Reporting.ImageRendering.CompositionBase.DrawTrialMessage() +250
   Telerik.Reporting.ImageRendering.CompositionBase.SendPhysicalPages(Boolean force) +59
   Telerik.Reporting.ImageRendering.CompositionBase.End() +75
   Telerik.Reporting.ImageRendering.CompositionPdf.End() +39
   Telerik.Reporting.ImageRendering.CompositionBase.Dispose(Boolean disposing) +22
   Telerik.Reporting.ImageRendering.CompositionPdf.Dispose(Boolean disposing) +11
   Telerik.Reporting.ImageRendering.CompositionBase.System.IDisposable.Dispose() +17
   Telerik.Reporting.ImageRendering.ImageRendererBase.RenderReport(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +242
   Telerik.Reporting.ImageRendering.ImageRendererBase.Telerik.Reporting.Processing.IRenderingExtension.Render(Report report, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback, EvaluateHeaderFooterExpressions evalHeaderFooterCallback) +21
   Telerik.Reporting.Processing.ReportProcessor.Render(IList`1 reports, ExtensionInfo extensionInfo, Hashtable renderingContext, Hashtable deviceInfo, CreateStream createStreamCallback) +353
   Telerik.Reporting.Processing.ReportProcessor.RenderReport(String format, IReportDocument reportDocument, Hashtable deviceInfo, CreateStream createStreamCallback, String& documentName) +421
   Telerik.ReportViewer.WebForms.ServerReport.Render(HttpResponse response, String format, Int32 pageIndex) in ServerReport.cs:90
   Telerik.ReportViewer.WebForms.ReportExportOperation.PerformOperation(NameValueCollection urlQuery, HttpContext context) in ReportExportOperation.cs:23
   Telerik.ReportViewer.WebForms.HttpHandler.System.Web.IHttpHandler.ProcessRequest(HttpContext context) in HttpHandler.cs:65
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +181
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously) +75


Version Information: Microsoft .NET Framework Version:2.0.50727.3603; ASP.NET Version:2.0.50727.3053
Steve
Telerik team
 answered on 02 Dec 2009
4 answers
605 views
When I use the wizard to set up a report how can I pass a parameter to the report's query. I am simply looking to have a report embedded in a web page and the report will only show certain records (such as the last ten items purchased by the current user). This will require passing a parameter to the report each time it is generated.
I had a good dig through the docs but I cant see anything on this. Is there a good example of this (including creating the reports in a separate project and then using the reports in the web project and passing different parameters to the reports).

Thanks.
Ghezzo
Top achievements
Rank 1
 answered on 02 Dec 2009
Top users last month
Will
Top achievements
Rank 2
Iron
Motti
Top achievements
Rank 1
Iron
Hester
Top achievements
Rank 1
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Thomas
Top achievements
Rank 2
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?