Telerik Forums
Reporting Forum
0 answers
111 views
We have some telerik forms created in our application that you can display and then print on demand. The issue is the forms render  based on the default printer installed on the computer. For example, I have a generic HP printer attached to my computer, and the form displays correctly before printing. A co worker has a bar code printer installed as their default printer, and when they view the form, it breaks up the one page form to display in bar code sized windows. How do we change this so the intial display is a regular 8 1/2 x 11 display or PDF, regardless of printer installed? This form needs to be displayed in a proper manner on all client machines, but does not require printing on all machines.
Thanks
Ken
Top achievements
Rank 1
 asked on 28 Dec 2011
2 answers
215 views
When I get a server error in my silverlight viewer, I only see a blank in the report viewer.  On the asp.net report viewer I see the error just fine.  I'll get an out of memory error a lot, and I want to be able to see that, or pop up a rad window saying there was an out of memory error, please filter your data.  I don't see any events where I can catch the message.

Our clients want to print out 1000-5000 page reports, but my test server doesn't have much memory on it, so I expect to get a lot of errors during testing.
danparker276
Top achievements
Rank 2
 answered on 28 Dec 2011
3 answers
253 views
Hi Telerik team.

I have a problem whit my Page Header Section Report. It simple, print preview not match with report view. Details about the design and views of the report are the images attached.

Can you help us with is issue.
Giuliano Caetano.
Elian
Telerik team
 answered on 28 Dec 2011
2 answers
134 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
131 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
131 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
233 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
314 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
379 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
174 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
Top users last month
Miljana
Top achievements
Rank 2
Iron
Iron
Joel
Top achievements
Rank 3
Bronze
Bronze
Bronze
Cynthia
Top achievements
Rank 1
John
Top achievements
Rank 1
Iron
Mozart
Top achievements
Rank 1
Iron
Veteran
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?