Quantcast
Channel: SCN : Unanswered Discussions - SAP Crystal Reports, version for Visual Studio
Viewing all 2556 articles
Browse latest View live

Question about the Function of Export Report

$
0
0

I have a question about the function of Cristal Report bandled version with Visual Studio 2008.

When opening the export page, page is popped up with "Cristal Reports(*.rpt)" selected as a file version.

I want to change this situation  to " Adobe Acrobat(PDF)" selected  as a default option.

How can I change default option like this?


SP 7 installation file corrupted

$
0
0

I downloaded three time the SP 7 and during the uncompress I get the CRC failure on CrystalReportsForVisualStudio.msi

 

Any idea?

horizontal scroll bar in the Crystal Reports 2011

$
0
0

Hi,

 

I have a field object that is small and does not show the full text.

Is there a way to show the horizontal scroll bar in the Crystal Reports 2011?

 

Thanks,

Problem with dynamic report changing .PaperOrientation

$
0
0

Hello all,

 

I recently changed a programme from Visual Studio 2008 with Crystal Reports 10.5 to VS 2012 and CR 13.0.5 and encountered the following problem:

 

I have a "dynamic report" with 50 fields named 'Field1' to 'Field50' in the detail section.

This report can be used to fill up to 50 fields in an arbitrary font, font size, border widths, ... depending on customers' need.

To build this report I take the "original" report with the 50 fields, calculate needed field widths (with min/max numbers of characters using the given font, e.g. a date) and space between these fields. Afterwards I fill the dataset for these fields to supply the report with.

The report may contain 1 or 50 or any other number of fields in between. To utilise the page space I start with the PrintOptions.PaperOrientation 'Portrait' and change it to 'Landscape' if the calculated position plus width of at least one field will not fit 'Portrait'.

I am doing this using PrintOptions.PageContentWidth which is automatically recalculated if switching PrintOptions.PaperOrientation.

 

This all worked absolutely correct with VS 2008 and CR 10.5.

But after converting to VS 2012 and CR 13.0.5 the PrintOptions.PageContentWidth is no longer recalculated if PrintOptions.PaperOrientation is switched from 'Portrait' to 'Landscape' or this switch does not work (it tells the chosen paper orientation but the ReportViewer still shows 'Portrait').

My report now looks far from pretty.

 

Any help is badly appreciated.

 

Best regards,

Matthias

Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine.dll'

$
0
0

Hi,

I have .net Framework 1.1 application running on Windows 8.1. when running any reports I get the following error message Could not load file or assembly 'CrystalDecisions.CrystalReports.Engine.dll'. I have installed all the required Crystal reports runtime lib that I used on Windows 8.0, when I upgraded to Windows 8.1 it does not work any more.

Any advise would be appreciated

Crystal report working on local machine but after deploying on sever not showing

$
0
0

Hi,

    I have crystal report.It is running on local machine but after deploying on server not showing on browser.

no error is showing.I already installed on server-CRforVS_redist_install_64bit_13_0_5.

and CRRuntime_64bit_13_0_5.

please help me because it is not showing any error.

 

thank you in advance.

ReportDocument.HasRecords throws DataSourceException

$
0
0

Hi at all

 

I used the CrystalDecisions.CrystalReports.Engine Version 11.5.3700.0. Now I would upgrad to the Version 12.0.2000.0, because we already use this version in other projects. I connect the data over ADO.Net with DataSets (.xsd).

 

I have the following code:

 

_crDoc = new ReportDocument();

_crDoc.Load(ReportFileInclPath);

_crDoc.SetDataSource(DataSource); // DataSource is a DataSet

 

The problem is Version 12 has a Property that is called HasRecords which throws a DataSourcException. In Version 11.5, this property does not exist.

 

Have anyone an idea what the problem can be?

 

Thanks

crystal report viewer not display in web page after hosting web application

$
0
0

i am using crystal report 2008 (version 12.0.0.683) and VS 2008. on localhost crystal report viewer display but after host application not display.

 

this is code on my web page

 

using System;

using System.Collections;

using System.Configuration;

using System.Data;

using System.Linq;

using System.Web;

using System.Web.Security;

using System.Web.UI;

using System.Web.UI.HtmlControls;

using System.Web.UI.WebControls;

using System.Web.UI.WebControls.WebParts;

using System.Xml.Linq;

using CrystalDecisions.CrystalReports.Engine;

using GoodLuck;

using System.Data.SqlClient;

using CrystalDecisions.Shared;

using CrystalDecisions.Web;

using CrystalDecisions.Enterprise;

using CrystalDecisions.Enterprise.Viewing;

using CrystalDecisions.ReportAppServer.Controllers;

 

 

public partial class Report_CashPrizeReport : System.Web.UI.Page

{

 

 

    protected void Page_Load(object sender, EventArgs e)

    {

        if (!IsPostBack)

        {

            ReportDocument crystalReport = new ReportDocument();

            crystalReport.Load(Server.MapPath("CashPrize.rpt"));

            ConnectionInfo connectInfo = new ConnectionInfo()

            {

                //ServerName = @"OM-PC\SQLEXPRESS",

                //DatabaseName = "MicroFinance",

                //UserID = "om",

                //Password = "123"

                ServerName = @"localhost",

                DatabaseName = "luck_infra",

                UserID = "taufiq",

                Password = "maurya_infra"

            };

           crystalReport.SetDatabaseLogon("taufiq", "maurya_infra");

            //crystalReport.SetDatabaseLogon("om", "123");

            foreach (CrystalDecisions.CrystalReports.Engine.Table tbl in crystalReport.Database.Tables)

            {

                tbl.LogOnInfo.ConnectionInfo = connectInfo;

                tbl.ApplyLogOnInfo(tbl.LogOnInfo);

            }

            DataSet  dsCustomers = GetData("select * from BranchDetail");

            crystalReport.SetDataSource(dsCustomers);

            CrystalReportViewer1.ReportSource = crystalReport;

            CrystalReportViewer1.DataBind();

            CrystalReportViewer1.PrintMode = PrintMode.Pdf;

        }

    }

    private DataSet   GetData(string query)

    {

        string conString = ConfigurationManager.ConnectionStrings["MicroFinancedb_con"].ConnectionString;

        SqlCommand cmd = new SqlCommand(query);

        using (SqlConnection con = new SqlConnection(conString))

        {

            using (SqlDataAdapter sda = new SqlDataAdapter())

            {

                cmd.Connection = con;

 

 

                sda.SelectCommand = cmd;

                using (DataSet  dsCustomers = new DataSet())

                {

                    sda.Fill(dsCustomers, "DataTable1");

                    return dsCustomers;

                }

            }

        }

    }

 

 

   

}

 

 

web.config setting are

 

<?xml version="1.0"?>

<!--

    Note: As an alternative to hand editing this file you can use the

    web admin tool to configure settings for your application. Use

    the Website->Asp.Net Configuration option in Visual Studio.

    A full list of settings and comments can be found in

    machine.config.comments usually located in

    \Windows\Microsoft.Net\Framework\v2.x\Config

-->

<configuration>

          <configSections>

                    <sectionGroup name="system.web.extensions" type="System.Web.Configuration.SystemWebExtensionsSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

                              <sectionGroup name="scripting" type="System.Web.Configuration.ScriptingSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

                                        <section name="scriptResourceHandler" type="System.Web.Configuration.ScriptingScriptResourceHandlerSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>

                                        <sectionGroup name="webServices" type="System.Web.Configuration.ScriptingWebServicesSectionGroup, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35">

                                                  <section name="jsonSerialization" type="System.Web.Configuration.ScriptingJsonSerializationSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="Everywhere"/>

                                                  <section name="profileService" type="System.Web.Configuration.ScriptingProfileServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>

                                                  <section name="authenticationService" type="System.Web.Configuration.ScriptingAuthenticationServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>

                                                  <section name="roleService" type="System.Web.Configuration.ScriptingRoleServiceSection, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" requirePermission="false" allowDefinition="MachineToApplication"/>

                                        </sectionGroup>

                              </sectionGroup>

                    </sectionGroup>

          </configSections>

          <appSettings>

                    <add key="CrystalImageCleaner-AutoStart" value="true"/>

                    <add key="CrystalImageCleaner-Sleep" value="60000"/>

                    <add key="CrystalImageCleaner-Age" value="120000"/>

          </appSettings>

          <connectionStrings>

                    <add name="MicroFinancedb_con" connectionString="Data Source=OM-PC\SQLEXPRESS;Initial Catalog=MicroFinance; User Id=om;password=123"/>

          </connectionStrings>

          <system.web>

                    <!--

            Set compilation debug="true" to insert debugging

            symbols into the compiled page. Because this

            affects performance, set this value to true only

            during development.

        -->

                    <compilation debug="true">

                              <assemblies>

                                        <add assembly="System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

                                        <add assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

                                        <add assembly="System.Data.DataSetExtensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

                                        <add assembly="System.Xml.Linq, Version=3.5.0.0, Culture=neutral, PublicKeyToken=B77A5C561934E089"/>

                                        <add assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.Shared, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.ReportSource, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.Enterprise.Framework, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.ReportAppServer.Controllers, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.Enterprise.Viewing.ReportSource, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.Data.AdoDotNetInterop, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.CrystalReports.Design, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.Enterprise.PluginManager, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.ReportAppServer.CommLayer, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.ReportAppServer.CommonControls, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.ReportAppServer.CommonObjectModel, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.ReportAppServer.CubeDefModel, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.ReportAppServer.DataDefModel, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.ReportAppServer.DataSetConversion, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.ReportAppServer.ObjectFactory, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.ReportAppServer.Prompting, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.ReportAppServer.ReportDefModel, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.ReportAppServer.XmlSerialize, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.VSDesigner, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

                                        <add assembly="CrystalDecisions.Windows.Forms, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/></assemblies>

                    </compilation>

                    <!--

            The <authentication> section enables configuration

            of the security authentication mode used by

            ASP.NET to identify an incoming user.

        -->

                    <!--<authentication mode="Windows"/>-->

                    <customErrors mode="Off">

                              <!--

            The <customErrors> section enables configuration

            of what to do if/when an unhandled error occurs

            during the execution of a request. Specifically,

            it enables developers to configure html error pages

            to be displayed in place of a error stack trace.

 

 

        <customErrors mode="RemoteOnly" defaultRedirect="GenericErrorPage.htm">

            <error statusCode="403" redirect="NoAccess.htm" />

            <error statusCode="404" redirect="FileNotFound.htm" />

        </customErrors>

        -->

                    </customErrors>

                    <pages>

                              <controls>

                                        <add tagPrefix="asp" namespace="System.Web.UI" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

                                        <add tagPrefix="asp" namespace="System.Web.UI.WebControls" assembly="System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

                              </controls>

                    </pages>

                    <httpHandlers>

                              <remove verb="*" path="*.asmx"/>

                              <add verb="*" path="*.asmx" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

                              <add verb="*" path="*_AppService.axd" validate="false" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

                              <add verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35" validate="false"/>

                              <add verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/></httpHandlers>

                    <httpModules>

                              <add name="ScriptModule" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

                    </httpModules>

          </system.web>

          <system.codedom>

                    <compilers>

                              <compiler language="c#;cs;csharp" extension=".cs" warningLevel="4" type="Microsoft.CSharp.CSharpCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">

                                        <providerOption name="CompilerVersion" value="v3.5"/>

                                        <providerOption name="WarnAsError" value="false"/>

                              </compiler>

                              <compiler language="vb;vbs;visualbasic;vbscript" extension=".vb" warningLevel="4" type="Microsoft.VisualBasic.VBCodeProvider, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">

                                        <providerOption name="CompilerVersion" value="v3.5"/>

                                        <providerOption name="OptionInfer" value="true"/>

                                        <providerOption name="WarnAsError" value="false"/>

                              </compiler>

                    </compilers>

          </system.codedom>

          <!--

        The system.webServer section is required for running ASP.NET AJAX under Internet

        Information Services 7.0.  It is not necessary for previous version of IIS.

    -->

          <system.webServer>

                    <validation validateIntegratedModeConfiguration="false"/>

                    <modules>

                              <remove name="ScriptModule"/>

                              <add name="ScriptModule" preCondition="managedHandler" type="System.Web.Handlers.ScriptModule, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

                    </modules>

                    <handlers>

                              <remove name="WebServiceHandlerFactory-Integrated"/>

                              <remove name="ScriptHandlerFactory"/>

                              <remove name="ScriptHandlerFactoryAppServices"/>

                              <remove name="ScriptResource"/>

                              <add name="ScriptHandlerFactory" verb="*" path="*.asmx" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

                              <add name="ScriptHandlerFactoryAppServices" verb="*" path="*_AppService.axd" preCondition="integratedMode" type="System.Web.Script.Services.ScriptHandlerFactory, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

                              <add name="ScriptResource" preCondition="integratedMode" verb="GET,HEAD" path="ScriptResource.axd" type="System.Web.Handlers.ScriptResourceHandler, System.Web.Extensions, Version=3.5.0.0, Culture=neutral, PublicKeyToken=31BF3856AD364E35"/>

                              <add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode"/></handlers>

          </system.webServer>

          <runtime>

                    <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">

                              <dependentAssembly>

                                        <assemblyIdentity name="System.Web.Extensions" publicKeyToken="31bf3856ad364e35"/>

                                        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>

                              </dependentAssembly>

                              <dependentAssembly>

                                        <assemblyIdentity name="System.Web.Extensions.Design" publicKeyToken="31bf3856ad364e35"/>

                                        <bindingRedirect oldVersion="1.0.0.0-1.1.0.0" newVersion="3.5.0.0"/>

                              </dependentAssembly>

                    </assemblyBinding>

          </runtime>

</configuration>


Is SAP Crystal Reports, version for Visual Studio free to use with VS2010 and VS2012?

$
0
0
Hi SAP Experts,
Please help to answer my doubts as follows:
1)Your SAP link below leads me to below downloads, but I can't confirm if these downloads are free to integrate with visual studio or come with license?
I am using VS2010 and VS2012, I also using a license SAP crystal report 2013.
 
Crystal Reports is now called “SAP Crystal Reports, developer version for Microsoft Visual Studio”and can be downloaded at http://scn.sap.com/docs/DOC-35074.            
You can also download it directly here: http://downloads.businessobjects.com/akdlm/cr4vs2010/CRforVS_13_0_5.exe
            

Crash when pressing next page in preview mode (CR 13 SP7)

$
0
0

Hi There,

 

I'm building reports with Visual Studio 2012 Prof. Update 4 and Crystal Reports for Visual Studio on Windows 7 X64. Today I updated from CR 13 SP6 to CR 13 SP 7.

 

Now I've got following problem:

 

  1. I'm in design mode in Visual Studio.
  2. I change to preview mode.
  3. I'm asked for the two parameters of my report
  4. The report is being displayed
  5. If I press on the next page (or on the goto last page) button, Visual Studio crashes.

 

The Eventlog shows following errors:

 

Anwendung: devenv.exe

Frameworkversion: v4.0.30319

Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.

Ausnahmeinformationen: Ausnahmecode c0000005, Ausnahmeadresse 3845595B

Stapel:

 

 

Name der fehlerhaften Anwendung: devenv.exe, Version: 11.0.61030.0, Zeitstempel: 0x5270a974

Name des fehlerhaften Moduls: craxddrt.dll, Version: 13.0.7.1136, Zeitstempel: 0x5239881d

Ausnahmecode: 0xc0000005

Fehleroffset: 0x0026595b

ID des fehlerhaften Prozesses: 0x18e8

Startzeit der fehlerhaften Anwendung: 0x01ceed05afdc697c

Pfad der fehlerhaften Anwendung: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe

Pfad des fehlerhaften Moduls: C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\craxddrt.dll

Berichtskennung: 55a4659e-58fd-11e3-940e-005056c00008

 

 

I already removed all CR components and installed CR 13 SP 7 after I rebooted the system. Unfortunately Visual Studio is still crashing. Moving to the next page during runtime (in my application) works.

 

Is there any solution for this problem?

 

Thanks and regards

 

Benjamin

Crystal Reports V2010 Printer offline causing issues, and 'No Printer' also issues

$
0
0

Crystal Reports V2010 (V13 SP7) at run time, queries our printer driver template, then

uses the local printer driver to generate the report. This is how the CR run time files

work.
This has presented no problems for users State-wide using their printers (there are

several hundred of them), whatever model it is, for two years, until we moved floors (from

Level 3 to Level 1)
This resulted in all reports hanging State-wide for 2 days.
We did not know why until we plugged in the printer back online, and they started to

work again.
Now that it was established that it was due to the printer being offline...
We tried to change the printer settings to 'No Printer' (ticked).
This is causing scalability issues such as:
Text truncated at end of each line
Font being too big in size (as compared to normal fonts)

 

This is most likely due to 'No printer' not having drivers.

 

How do we get around the issue so that the reports generate normally and not be

affected by a single printer being offline and the ‘No Printer’ scalability issues?

How to connect the sybase database in Crystal report Programmatically

$
0
0

Hi This is Mahesh,

 

           I need how to connect the sybase database in Crystal report Programmatically using c# Language.

 

Regards,

Maheshwaran

The Nepali unicode not printed as it seen in the report viewer using visual studio 2010 and crystal report 13.0.7.1136

$
0
0

I have created a report with nepali unicode font and have a name with first middle and last,when i add these all parts to make a name its ok in view but when export to pdf the font is not the real unicode font what is seen in the report view,how to solve the problem please suggest a good answer.

Crystal Report Shows Weird Symbols

$
0
0

I am facing this problem when i send Dataset to crystal report it shows me weird symbols as seen in the the image below sometimes if i refresh it works and with Mozilla Firefox though it sometimes works is there any Suggestion to solve this ??? please check the image of the problem



Notice I use Memorystream to display the crystal report onside the webpage  as Below and I use VS2010 with SAP Crystal Report

report.SetDataSource(DS);

  
MemoryStream oStream;
  oStream
=(MemoryStream)report.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);
  
Response.Clear();
  
Response.Buffer=true;
  
Response.ContentType="application/pdf";
  
Response.BinaryWrite(oStream.ToArray());
  
Response.Flush();
  
Response.Close();

Much more memory used by Crystal v. 14 Runtime Win2008R2/64 bit versus Crystal V. 11 Win2003 server??

$
0
0

Hi

We have migrated our codebase and servers as follows:

Originallly we had:

      Crystal Reports 11.5 Release 2

     Windows 2003 Server/32 bit

     .Net 2.0 Framework

      Visual Studio 2005

NOW we have

     Crystal Reports 14 (Crystal 2011 Runtime verion 13.0.5.891)

     Windows 2008 R2/64 bit

     Net 4.0 Framework

     Visual Studio 2012

What we are seeing is, our IIS worker process w3wp.exe when running Crystal Reports v. 14 runtime is using two to three times more memory than Crystal Reports v. 11. The amount of memory used appears to correlate directly to the number of pages when producing a .pdf.

This means to support our existing reports and user base we need servers with two to three times the available memory.
Is this a known issue? Are there any settings or code changes we can make to mitigate the issue?

Steven Fisher


Blank VS 2010 Crystal reports

$
0
0

We have some Visual studio 2010 crystal reports accessed through our web application developed in VS 2010 c#.  There have been 3 occasions in the past 2 months when they stopped working and presented the user with a blank page and internal error message of 'Unable to load the report'.  In all 3 cases which were anywhere from 2 weeks to 1 month apart, the reports were working fine one day and the next day all users got the blank report.  Since I found no system errors or changes and no code changes, I just copied the same compiled code without changes over to the production folder overwriting its content and the reports started working!  The code I copied and the code that is there are identical including permission and modification dates  .  Just the act of copying corrected the issue.  In fact once when the error happened I backed up the production folder to a temp folder and copied that same code from the backup back to production and that also fixed the problem!  Not sure what is causing this but it is creating quite a problem.  I searched quite a bit and others having a blank report problems have it from the get go.  And that is when they move to a new server.  Ours works in production and suddenly stops working.  Our production machine is a windows 2003.  Please let me know if you have any ideas why this happens.

 

Thanks,

Reza

Error when running report from .Net application

$
0
0

I am getting the below error whe trying to run a report from .net using crystal report viewer. This don't happen alwyas. This is happening in only one report. All other reportsare fine.


the error is below

 

Error in [CrystalDecisions.Windows.Forms.PageControl.OnMouseMove]:Object reference not set to an instance of an object.

 

I am using Crystal Rports 11.5.10.1623 version

Images not appearing on parameter panel

$
0
0

I am aware there is an issue with crystal reports working on IIS Express. As per the workaround , i have a copied cyrstalreportviewer folder to my project and added a script tag

<scriptlanguage="javaScript"type="text/javascript"src="/crystalreportviewers13/js/crviewer/crv.js"></script>


However when the crystal parameter panel shows up , its renders w/o images, please see the attached screenshot. Its happening in the development machine, i am using crystal reports.net with vs 2012


Please let me know if you need any other information.

Thanks,

Susi

Report Picks the Wrong Paper Type When Viewing or Printing

$
0
0

I'm developing an in-house report viewing program in C# with Windows Forms, primarily using the CrystalReportViewer.

My development setup is Visual Studio 2012 Professional with Crystal Reports 13.0.7.

 

Reports are created by management personnel, then uploaded to a server. All office employees can then open the reports in our program.
One report is created with a custom paper size - 10" x 13" envelope.

 

Unfortunately, when opened in the Viewer, the report is somehow modified to be on letter - 8.5" x 11" paper. The envelope as a paper size is definitely installed on the computer opening the report. This isn't actually a problem for viewing the report.

 

However, I would like to print the report (to the default printer and on the envelopes) with only one button press - that is, without a print dialog. I have a form with a "Print" button, which takes parameter values before the Viewer form opens. For now, I have to open the Windows print dialog and get the user to select the custom envelope in order to print correctly.

 

I have attempted to print programmatically using both ReportDocument.PrintToPrinter (CrystalDecisions.Engine) and PrintOutputController.PrintReport (RAS).

 

PrintToPrinter either tells me that I have an invalid combination of arguments (Scaling and DissociatePageAndPrinterSize), or else the code executes properly just as the printer complains that it does not have letter-size paper in the manual feed (where the 10" x 13" envelopes are).


PrintOutputController seems to work at first, but then the report prints on letter-size paper.


In both cases, I can tell that the envelope as a paper size is being copied from the printer's size enumeration.


Is it possible to print with a custom paper size without a print dialog? If so, how do I accomplish this?

Could the first issue causing the second?


EDIT:
I had asked a similar question in the past, and received an answer. Unfortunately, the solution initially seemed to work, but after lots of testing I have come to the state described above.

Add control (button, image) to the CR viewer toolbar (2010) (.Net)

$
0
0

I used CRforVS_13_0_4 for VS2010. Now, I want add button or event handing print for CR viewer toolbar (2010) (.Net).

 

Help.

 

Message was edited by: Tuan Thanh

Viewing all 2556 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>