Telerik Forums
Reporting Forum
2 answers
108 views
Is it possible to share the source code of the Invoice Report given in the Reporting Demos?
Emre
Top achievements
Rank 1
 answered on 28 Dec 2011
2 answers
100 views
Hi there,

I follow this tutorial: http://tv.telerik.com/watch/reporting/video/getting-started-with-telerik-report-viewer-silverlight but I can´t display my report in ReportViewer: Give me that error, see in attache please.

To help you, here are my webConfig:

<?xml version="1.0"?>
<!--
  For more information on how to configure your ASP.NET application, please visit
  http://go.microsoft.com/fwlink/?LinkId=169433
  -->
<configuration>
  <appSettings>
    <add key="PathReunioes" value="Reunioes" />
    <!--<add key="PathReunioes" value="\\192.168.10.20\usa_esta" />-->
    <add key="PathTemporarios" value="Temp" />
    <add key="PathUpload" value="Upload" />
    <add key="PathExtras" value="Extras" />
    <add key="gravacaoAnexosBD" value="N" />
    <add key="gravacaoDocumentosReuniaoBD" value="N" />
    <add key="logotipo1" value="/Extras/logotipo1.png" />
    <add key="logotipo1_X" value="100" />
    <add key="logotipo1_Y" value="100" />
    <add key="logotipo1_Largura" value="200" />
    <add key="logotipo1_Altura" value="100" />
    <add key="logotipo2" value="/Extras/logotipo2.png" />
    <add key="logotipo2_X" value="100" />
    <add key="logotipo2_Y" value="100" />
    <add key="logotipo2_Largura" value="200" />
    <add key="logotipo2_Altura" value="100" />
    <add key="numeroMaximoAnexosSessaoUpload" value="6" />
    <add key="numeroMaximoDocumentosReuniaoSessaoUpload" value="4" />
    <add key="id_TipoEntidade_Sistema" value="4" />
    <add key="numeroMaximoChamadas" value="3" />
    <add key="caminhoExecutavelOpenOffice" value="C:\Program Files (x86)\OpenOffice.org 3\program\soffice.exe" />
    <add key="timeoutOpenOffice" value="1000" />
    <add key="cache" value="N" />
  </appSettings>

  <system.webServer>
    <modules runAllManagedModulesForAllRequests="true">
      <add name="DomainServiceModule" preCondition="managedHandler" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </modules>
  </system.webServer>
  <system.web>
    <httpRuntime maxRequestLength="10000000" executionTimeout="3600" />
    <httpModules>
      <add name="DomainServiceModule" type="System.ServiceModel.DomainServices.Hosting.DomainServiceHttpModule, System.ServiceModel.DomainServices.Hosting, Version=4.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" />
    </httpModules>
    <compilation debug="true" targetFramework="4.0" />
    <pages controlRenderingCompatibilityVersion="3.5" clientIDMode="AutoID" />
  </system.web>
  <connectionStrings>
    <add name="ConexaoBDSGA" connectionString="data source=bd01;password=sga_demo123;persist security info=True;user id=SGA_DEMO" providerName="Oracle.DataAccess.Client" />
  </connectionStrings>
  <system.serviceModel>
    
    
    
    <behaviors>
      <serviceBehaviors>
        <behavior name="ReportServiceBehavior">
          <serviceMetadata httpGetEnabled="true" />
          <serviceDebug includeExceptionDetailInFaults="false" />
        </behavior>
      </serviceBehaviors>
      <endpointBehaviors>
        <behavior name="WebBehavior">
          <webHttp />
        </behavior>
      </endpointBehaviors>
    </behaviors>
    <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>

  </system.serviceModel>
</configuration>

My XAML:

<navigation:Page x:Class="SGA.Views.SGASeguranca"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:UC="clr-namespace:SGA.UserControls"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480"
           xmlns:telerik="clr-namespace:Telerik.ReportViewer.Silverlight;assembly=Telerik.ReportViewer.Silverlight"
           Title="SGA - Segurança" Unloaded="Page_Unloaded">
    <Grid x:Name="LayoutRoot">
        <telerik:ReportViewer  x:Name="ReportViewer1" Width="1000"
                              >
        </telerik:ReportViewer>
    </Grid>
</navigation:Page>

And my Code-Behind:

using System;
using System.Linq;
using System.Windows.Controls;
using System.Windows.Navigation;
using System.Windows;

namespace SGA.Views
{
    public partial class SGASeguranca : Page
    {
        public SGASeguranca()
        {
            InitializeComponent();

            try
            {
                ReportViewer1.Report = "Telerik.Reporting.Service.ReportService, Telerik.Reporting.Service, Version=5.3.11.1116, Culture=neutral, PublicKeyToken=A9D7983DFCC261BE";
                ReportViewer1.ReportServiceUri = new Uri("../ReportService.svc",UriKind.RelativeOrAbsolute);
            }
            catch(Exception e)
            {
            }

        }

        // Executes when the user navigates to this page.
        protected override void OnNavigatedTo(NavigationEventArgs e)
        {
        }

        private void Page_Unloaded(object sender, RoutedEventArgs e)
        {
            this.DataContext = null;
            GC.Collect();
        }

        private void Button_Click(object sender, RoutedEventArgs e)
        {
            
        }
    }    

}

Thanks in advance.


IvanY
Telerik team
 answered on 28 Dec 2011
4 answers
105 views
I've just upgraded to Q3 2011 from Q2 2011..

After upgrade, every report that have picturebox in a table cell will return this error

The given key was not present in the dictionary.

[KeyNotFoundException: The given key was not present in the dictionary.]
   System.Collections.Generic.Dictionary`2.get_Item(TKey key) +9627953
   Telerik.Reporting.Processing.Imaging.ImageInfoCache.GetInfo(String key) +13
   Telerik.Reporting.Processing.PictureBox.get_ImageInfo() +60
   Telerik.Reporting.Paging.PictureBox.get_ImageInfo() +44
   Telerik.Reporting.Paging.PictureBox.InitPageInfo(ElementPageInfo pageInfo, RectangleRF clip) +98
   Telerik.Reporting.Paging.RenderingElementBase.AddToPageRecursive(RectangleRF parentClip, Double parentTop, Double parentLeft, Double parentReservedTop, Double parentReservedBottom, Double parentReservedLeft, Double parentReservedRight) +457
   Telerik.Reporting.Paging.Table.RenderCell(ITableCell cell, RectangleRF clip, Double left, Double top, Double reservedLeft, Double reservedTop) +110
   Telerik.Reporting.Paging.Table.RenderCell(ITableCell cell, RectangleRF clip, Double left, Double top, Double reservedLeft, Double reservedTop, List`1 renderedCellList) +141
   Telerik.Reporting.Paging.Table.RenderCells(TableRegion region, RectangleRF clip, Double left, Double top, Double reservedLeft, Double reservedTop) +167
   Telerik.Reporting.Paging.Table.AddChildrenToPage(RectangleRF clip) +470
If I delete the column with the picturebox in it, the reports works fine.

FYI, this problem occurred only for reports containing picturebox in a table cell, whether or not the value is set.  If its not in any table cell, it works fine.

Jari
Top achievements
Rank 1
 answered on 28 Dec 2011
1 answer
189 views
Hi all,
Now I am creating sub report.But I don't know how to set data source for sub report.Because my sub report is in sub report.Please reply me immediately.
Steve
Telerik team
 answered on 28 Dec 2011
6 answers
268 views
When I use Firefox 3.5.3 to browse a page with report viewer, the export dropdown list is disabled. But IE do not have such problem.

The reporting version is 3.1.9.807

How to overcome this?

Aaron
Top achievements
Rank 1
 answered on 27 Dec 2011
6 answers
341 views
Hi there,

In my database I have a field that have html code in a string, like this example:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Untitled</title><style type="text/css">
.p_CC664AAA { margin: 0px 0px 12px 0px;text-align: left;text-indent: 0pt;padding: 0px 0px 0px 0px; }
.s_E6FD2046 { font-family: 'Verdana';font-style: Normal;font-weight: normal;font-size: 16px;color: #000000; }
</style></head><body><p class="p_CC664AAA"><span class="s_E6FD2046">assunto 1</span></p></body></html>


So when I try show this in a report using HtmlTextBox control occures one error. Please see the picture.

I read somewhere in this forum, that this happens because the control don´t support chars like < &  or > .. This is true?

How workaround?

Thanks
Elian
Telerik team
 answered on 27 Dec 2011
3 answers
129 views
i am using Q3 2011 reporting, chart. I am using a object data source. The x-axis is a set of dates (switched ot OADate).

I set autoscale to off at design time:

            this.chart1.PlotArea.XAxis.AutoScale = false;

And i have tried to set MinValue and MaxValue in the constructor and the NeedsDataSource event.
             chart1.PlotArea.XAxis.MinValue = new DateTime(2011, 1, 1).ToOADate();
             chart1.PlotArea.XAxis.MaxValue = new DateTime(2012, 1, 1).ToOADate();

However, my x-axis ALWAYS shows the whole series, which starts from 9/1/2009. However, I only need to show a portion of the line, not the whole thing.

What setting do i have wrong?

All the answer i have found have been regarding AutoScale = false, but i have already set that.
Elian
Telerik team
 answered on 27 Dec 2011
1 answer
143 views
I'm editing the xml files manually and trying to figure out what my options are.  Is there an API document for the XML that I can reference in modifying these files?

For example, trying to figure out how to define a default padding=5px for a style but I can't figure out the right syntax.


Thanks -wg
IvanY
Telerik team
 answered on 27 Dec 2011
1 answer
80 views
Hello,

I have a requirement where I need to take snapshot of user's screen and show it in ReportViewer and then allow the user to print etc. Can this be done with Silverlight's ReportViewer? I can't seem to find anything like this in any examples/documentation. All examples have data coming from server itself from ReportLib. I can't afford to send client side images to server just to show it in reportviewer and allow the user to print it because these images are not permanent and not to be saved in database.

Thanks in advance.
Elian
Telerik team
 answered on 27 Dec 2011
3 answers
598 views
Hi,

I am working on a report where I have some textboxes inside a panel. The height of panel should decrease if some of those textboxes are not visible. As per your suggestion in another forum, I have set the height of the panel to minimum right after InitializeComponent() so it will grow to fit its content. It is working but report is inserting white space equal to panel's original height after it displays the panel. I have attached the image of report template. The panel is in green color. As you can see there is white space between panel and the next blue colored textbox which is outside the panel.
Elian
Telerik team
 answered on 27 Dec 2011
Top users last month
Jay
Top achievements
Rank 3
Iron
Iron
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
Radek
Top achievements
Rank 2
Iron
Iron
Iron
Bohdan
Top achievements
Rank 2
Iron
Iron
Richard
Top achievements
Rank 4
Bronze
Bronze
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?