Telerik Forums
Reporting Forum
1 answer
849 views
Hi,

I'm looking at your demos... the Product Sales Per Period... and wanting to create something similar.

See attached.

Can the report sample that I've attached (layout only) be done?

Is there any sample code you could provide to create something similar.

Thanks
Mike
Peter
Telerik team
 answered on 05 Jul 2011
2 answers
108 views
hello and thanks in advice

is there any way to localize the label associated to a report parameter?
i'm using  version Q1 2011 5.0.11.510

fabio
fabio bongiovanni
Top achievements
Rank 1
 answered on 05 Jul 2011
1 answer
96 views
Good Day All

i have always had a report that is working. i might have play with it around a bit. i can access the url

http://myserver:1111/myapp/ReportService.svc


and it working, but my report viewer is showing me a white line not a report.

I have attached the screenshot and the xaml looks like this


<my:ReportViewer Height="285" HorizontalAlignment="Right" Margin="0,-5,102,0" Name="reportViewer1" Report="ReportLibrarydev.ReportLibrary,ReportLibrarydev" ReportServiceUri="http://myserver:1111/myapp/ReportService.svc" VerticalAlignment="Top" Width="480" ZoomPercent="50" />


thanks


Steve
Telerik team
 answered on 05 Jul 2011
3 answers
178 views
Good Day Guys

Months  ago i posted this thread

http://www.telerik.com/community/forums/reporting/telerik-reporting/silverlight-report-dont-show-a-basic-barcode-report.aspx


and the problem was that my barcode does not show. I hosted my application in IIS Service(Not my machine) and i get the Following Error,

The type 'Telerik.Reporting.Service.ReportService, Telerik.Reporting.Service, Version=5.0.11.316, Culture=neutral, PublicKeyToken=a9d7983dfcc261be', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.



if you look at the thread i created you will notice that i am familiar with the Endpoint article.

<?xml version="1.0" encoding="UTF-8"?>
<configuration>
  <configSections>
    <sectionGroup name="system.serviceModel">
      <section name="domainServices" type="System.ServiceModel.DomainServices.Hosting.DomainServicesSection, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" allowDefinition="MachineToApplication" requirePermission="false" />
    </sectionGroup>
  </configSections>
  <connectionStrings>
    <add name="ReportLibrarydev.Properties.Settings.Ecashcdb_devmotovate" connectionString="Data Source=oops;Initial Catalog=oops;Persist Security Info=True;User ID=oops;Password=oops" providerName="System.Data.SqlClient" />
    <add name="ReportLibrarydev.Properties.Settings.oops connectionString="Data Source=oops;Initial Catalog=oops;Persist Security Info=True;User ID=oops;Password=oops" providerName="System.Data.SqlClient" />
    <add name="FilesDataBaseConnectionString" connectionString="Data Source=oops;Initial Catalog=oops;Persist Security Info=True;User ID=oops;Password=oops" providerName="System.Data.SqlClient" />
  </connectionStrings>
  <system.web>
    <httpRuntime maxRequestLength="2147483647" executionTimeout="2147483647" />
    <identity impersonate="true" />
    <httpModules>
      <add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" />
      <add name="Session" type="System.Web.SessionState.SessionStateModule" />
    </httpModules>
    <compilation targetFramework="4.0" />
    <globalization culture="auto" uiCulture="auto" />
    <!-- Enable session state for all the pages in the Web application. -->
    <pages enableSessionState="true" enableViewState="true" enableViewStateMac="true" validateRequest="false" />
  </system.web>
  <system.serviceModel>
    <bindings>
      <basicHttpBinding>
        <binding name="BasicHttpBinding_ILogger" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
          <security mode="None">
            <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
        <binding name="BasicHttpBinding_IBLLService" closeTimeout="00:10:00" openTimeout="00:10:00" receiveTimeout="00:10:00" sendTimeout="00:10:00" allowCookies="false" bypassProxyOnLocal="false" hostNameComparisonMode="StrongWildcard" maxBufferSize="2147483647" maxBufferPoolSize="2147483647" maxReceivedMessageSize="2147483647" messageEncoding="Text" textEncoding="utf-8" transferMode="Buffered" useDefaultWebProxy="true">
          <readerQuotas maxDepth="2147483647" maxStringContentLength="2147483647" maxArrayLength="2147483647" maxBytesPerRead="2147483647" maxNameTableCharCount="2147483647" />
          <security mode="None">
            <transport clientCredentialType="None" proxyCredentialType="None" realm="" />
            <message clientCredentialType="UserName" algorithmSuite="Default" />
          </security>
        </binding>
      </basicHttpBinding>
    </bindings>
    <client>
      <endpoint address="http://XXXXXXXXX/BusinessLayer/BLLService.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_IBLLService" contract="Business.IBLLService" name="BasicHttpBinding_IBLLService" />
      <endpoint address="http://XXXXXXXXX/Logger/Logger.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_ILogger" contract="Logger.ILogger" name="BasicHttpBinding_ILogger" />
    </client>
     
    <services>
      <service name="Telerik.Reporting.Service.ReportService" behaviorConfiguration="ReportServiceBehavior">
 
        <endpoint address="" binding="basicHttpBinding" contract="Telerik.Reporting.Service.IReportService">
          <identity>
            <dns value="localhost" />
          </identity>
        </endpoint>
 
        <endpoint address="resources" binding="webHttpBinding" behaviorConfiguration="WebBehavior" contract="Telerik.Reporting.Service.IResourceService" />
 
        <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
      </service>
    </services>
    <behaviors>
      <serviceBehaviors>
        <behavior name="">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
        <behavior name="ReportServiceBehavior">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>
      </serviceBehaviors>
      <endpointBehaviors>
        <behavior name="WebBehavior">
          <webHttp />
        </behavior>
      </endpointBehaviors>
    </behaviors>
    <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
  </system.serviceModel>
  <system.webServer>
    <validation validateIntegratedModeConfiguration="false" />
    <directoryBrowse enabled="true" />
       
  </system.webServer>
</configuration>


Thanks
Steve
Telerik team
 answered on 05 Jul 2011
3 answers
1.2K+ views
Hello,

I have a multiline text box that I am filling with data from my SQL Server.  The contents of this field contain paragraphs of text with line breaks.  When I preview the report or run the project and view in the "Report Viewer" the line breaks are not shown.  If I look at the HtmlPreview I do see the line breaks as expected.  If I display the contents of the text box to the debugger using System.Diagnostics.Debug.Print I can see the linebreaks fine in the output window. If I export the report to PDF, I also see the line breaks. 

So it seems that the data is good but I have problems when viewing the the report viewer or preview mode.  Any suggestions on what may be going on here?

Thanks,

Chris
Ryan
Top achievements
Rank 1
 answered on 05 Jul 2011
2 answers
148 views
Hi I have a quite simple report with 3 panels each panel has two textboxes: a title texbox with a static small text and a data bound text box that will receive a relatively large text at runtime: almost half a page of text.
Each panel is configured with KeepTogether so that the title is kept on the same page as the text.
All the three panels are in the detail section. they are packed vertically and take almost all the report width.
the report is bound to a list with just one object. So I only have a report with one detail section containing three block of texts.

When rendering in Silverlight viewer, the text overlaps.
When rendering in the pdf the text is truncated.
In both rendering, the computed size of the textbox does not seem enough to hold all the text.

Do you have any documentation, samples with large text? what the rendering engine is supposed to do.
Is there any flag to tell the rendering engine to allow breaking a textbox in the middle instead of having a large blanc space on the previous page?

Any help is welcomed.
Thank you.
Peter
Telerik team
 answered on 04 Jul 2011
1 answer
633 views
The type 'Telerik.Reporting.Service.ReportService, Telerik.Reporting.Service, Version=5.0.11.316, Culture=neutral, PublicKeyToken=a9d7983dfcc261be', provided as the Service attribute value in the ServiceHost directive, or provided in the configuration element system.serviceModel/serviceHostingEnvironment/serviceActivations could not be found.

Any Idea about this error http://localhost:62719/ReportService.svc
My Web.Config details:
<system.serviceModel>
  <serviceHostingEnvironment aspNetCompatibilityEnabled="true" multipleSiteBindingsEnabled="true" />
  <services>
   
    <service name="Telerik.Reporting.Service.ReportService" behaviorConfiguration="ReportServiceBehavior">
      <endpoint address="" binding="basicHttpBinding" contract="Telerik.Reporting.Service.IReportService">
        <identity>
          <dns value="localhost" />
        </identity>
      </endpoint>
      <endpoint address="resources" binding="webHttpBinding" behaviorConfiguration="WebBehavior" contract="Telerik.Reporting.Service.IResourceService" />
      <endpoint address="mex" binding="mexHttpBinding" contract="IMetadataExchange" />
    </service>
  </services>
  <behaviors>
    <serviceBehaviors>
      
      <behavior name="ReportServiceBehavior">
        <serviceMetadata httpGetEnabled="true" />
        <serviceDebug includeExceptionDetailInFaults="False" />
      </behavior>
      <behavior name="">
        <serviceMetadata httpGetEnabled="true" />
        <serviceDebug includeExceptionDetailInFaults="False" />
      </behavior>
    </serviceBehaviors>
    <endpointBehaviors>
      <behavior name="WebBehavior">
        <webHttp />
      </behavior>
    </endpointBehaviors>
  </behaviors>
</system.serviceModel>


Looking forward for help!

Thanks,
Ed
Steve
Telerik team
 answered on 04 Jul 2011
1 answer
130 views
Hello,

I am trying to split a large bar chart into multple bar charts. Here is the scenario:

I have a result set that returns 150 records (for example).
I want to display this data on a bar chart but it is too much for one chart, so I only want to show 15 items per bar chart.
Each page will only display one bar chart.
So, what I would like the result to be is a 10 page report, each page being a bar chart that shows 15 items.

Is this possible to do with just the designer or do I need to write some code? Either way I need to do it could you give me some suggestions on how to get started?

Thanks,

Brian

Steve
Telerik team
 answered on 04 Jul 2011
3 answers
271 views
Hi,

im starting to use Telerik Reporting Chart, but i cannot find the onclick event on any of chart items. In documentation of Ajax Chart i've found:  "Use the RadChart OnClick event to handle server postbacks caused by clicking on areas of the chart.".  I would like to get any click event made on different chart bars to redirect to a page with details info and everything has to be done in-code.

Below you see my test code for chart configuration:

 

 Report report = new Report();

 DetailSection detail = new DetailSection();

 Telerik.Reporting.Chart progchart = new Telerik.Reporting.Chart();

 progchart.BitmapResolution = 96F;

progchart.ImageFormat = System.Drawing.Imaging.ImageFormat.Emf;

 progchart.Location =
new Telerik.Reporting.Drawing.PointU
(new Telerik.Reporting.Drawing.Unit(0.3, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Cm))),
new Telerik.Reporting.Drawing.Unit(1.8, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Cm))));

 progchart.Name = "progchart1";

 progchart.PlotArea.EmptySeriesMessage.Appearance.Visible = true;

 progchart.PlotArea.EmptySeriesMessage.Visible = true;

 progchart.Size = new Telerik.Reporting.Drawing.SizeU(new Telerik.Reporting.Drawing.Unit(9.6, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Cm))), new Telerik.Reporting.Drawing.Unit(6.1, ((Telerik.Reporting.Drawing.UnitType)(Telerik.Reporting.Drawing.UnitType.Cm))));

 // Create a ChartSeries and assign its name and chart type

 ChartSeries chartSeries = new ChartSeries();

 chartSeries.Name = "Sales";

 chartSeries.Type = ChartSeriesType.Bar;

 // add new items to the series,

 // passing a value and a label string

 chartSeries.AddItem(120, "Internet");

 chartSeries.AddItem(140, "Retail");

 chartSeries.AddItem(35, "Wholesale");

 progchart.Series.Add(chartSeries);

 // add the Chart to the page.

 detail.Items.AddRange(new Telerik.Reporting.ReportItemBase[] { progchart });

 report.Items.Add(detail);

 BR,
Grzegorz Smoliński
Steve
Telerik team
 answered on 04 Jul 2011
0 answers
55 views
Hello,


I Need to help to pass data on sub report..

Actaully I have tour table , Customer table , Invoice table and payment table, I need to create the Invoice contain the payment table, and In My payment table everythign is based on Invoice id...

So now i need to generate the Multiple cusotmer invoice in the Report... This report is sales Invoice contain the one payment section also...

So currently i am getting invoice report for Multiple customer, but i cannot access the payment details in it.....Please help us to retrive the payment details..

Here is the UI scenario:

User, Select Tour, and Customer , based on this In my Rad Grid, Multiple Invoice are displayed, and then Click on Print ALL, this Print all open the telerik report contain all the Inovice as in the grid , but now i cannot Reterive the payment details in my payment section...becoz i donot know how to pass Invocie id in The payment sub report????

Invoice report is my main report, and with in this i am using Payment details as a sub report..

FYI : Whehn i generate the report for only single Invocie...its reterive the payment details...

Regards
samir
Samir Patel
Top achievements
Rank 1
 asked on 02 Jul 2011
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?