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

What is wrong of this Crystal Report?


Crystal report runtime not having all the dlls for 64 bit

$
0
0

We were using crystal reports version 11.5.3700 in 32 bit operating system in our application. Our current requirement is to qualify the application in a 64 bit operating system. We found the crystal reports version 11.5.3700 is not supported for 64 bit environment. We tried to find out the suitable version for our application and tried few versions(Crystal report Runtime_64bit_13_0_6) which gave no positive result.

 

The reason is the dlls we were using for reporting purpose doesn't come with this current installable.

 

     CrystalDecisions.CrystalReports.Engine.dll

 

     CrystalDecisions.ReportSource.dll CrystalDecisions.Shared.dll

 

     CrystalDecisions.Web.dll CrystalDecisions.Enterprise.Framework.dll

 

     CrystalDecisions.Enterprise.InfoStore.dll**

 

Can anyone here please suggest  which is the correct version of crystal reports to install to get  these dlls??

 

Operating system we are using is the Windows server 2008 R2 (64 bit)

 

Thanks in advance!

Problem in printing crystal report printing

$
0
0

i had developed a application in net 2003 and was printing the crystal report directly to printer using printtoprinter command. the application was deployed in windows 2003 server 32 bit. The crystal report was using Arial Unicode MS fonts. Now i have upgraded my application to net 2005 and deployed it on windows server 2008 64 bit. Now when it is giving Generic Error Occurred GDI+ when executing printtoprinter command. this error is coming when iam using unicode fonts, but i need to use unicode fonts as my reports are in HINDI.

Help missing in Visual Studio

$
0
0

Previously I used SAP Crystal Reports 13.0.5. for Visual Studio (in VS2012), and when I hit F1 in Visual Studio all the help/developer information was there. Now I have updated to 13.0.6, and the Crystal Reports help info is no longer there in the Visual Studio help viewer?

Crystal Reports finished rendering ?

$
0
0

Hi,

 

I'm using Crystal Reports for VS 2010. When viewing a report in the crystal report viewer, how do I know if it finished rendering ? I cannot find any relevant event from crystalReportViewer which can notify you when it finished rendering. Any idea ?

 

Thanks,

 

Jack

cannot print ' < value > ' in report while passing parameter to report

$
0
0

Dear Experts,

                    I have designed and passing some parameter to report. but while passing parameter value like something containing  << value >> getting error.

 

how do i print << value >> in report?

 

 

Thanks in advance.

Mani

SetTableLocation with Oracle table : fail to load database information

$
0
0

Hi,

 

I'm making an utility which can replace an Oracle table/view by another one then save the modified report.

 

I'm using Visual Studio 2012 and CRforVS 13 SP6.

 

When SetTableLocation is called, I get an error "fail to load database information...".

 

My source below :

 

    Private Function ReplaceTable() As Boolean        Dim crTableNew As Table          For Each crTableOld As Table In ClientDocument.DataDefController.Database.Tables            If mReplacedTableNames.ContainsKey(crTableOld.Name) Then                crTableNew = GetNewTable(crTableOld)                  If crTableNew IsNot Nothing Then                    Try                        ClientDocument.DatabaseController.SetTableLocation(crTableOld, crTableNew)                        mReplacedTableNames.Remove(crTableOld.Name)                      Catch ex As Exception                        MsgBox(ex.Message, MsgBoxStyle.Critical)                        Return False                      End Try                 Else                    Return False                  End If              End If        Next          Return True      End Function    Private Function GetNewTable(crTable As Table,                                 Optional newTableName As String = "") As Table        Dim crTableNew As Table        Dim crConnInfo As New ConnectionInfo        Dim pBag As New PropertyBag        Dim crConnProperties As New PropertyBag         If newTableName = "" Then newTableName = crTable.Name         Try            crTableNew = crTable.Clone(True)              pBag.StringValue("QE_ServerDescription") = crTable.ConnectionInfo.Attributes.StringValue("QE_ServerDescription")            pBag.StringValue("QE_SQLDB") = "true"            pBag.StringValue("QE_DatabaseType") = "Oracle Server"            pBag.StringValue("SSO Enabled") = "false"            pBag.StringValue("Database DLL") = "crdb_oracle.dll"              crConnProperties.StringValue("Trusted Connection") = "false"            crConnProperties.StringValue("Server") = crTable.ConnectionInfo.Attributes.StringValue("QE_ServerDescription")              pBag.Add("QE_LogonProperties", crConnProperties)              crConnInfo.Attributes = pBag             crTableNew.ConnectionInfo = crConnInfo             crTableNew.Name = newTableName            crTableNew.QualifiedName = crTable.ConnectionInfo.UserName.ToUpper() + "." + newTableName              Return crTableNew         Catch ex As Exception            MsgBox(ex.Message, MsgBoxStyle.Critical)            Return Nothing          End Try      End Function    Public Function Save() As Boolean        If ReplaceTable() = True Then            Try                mRptDocument.SaveAs(mRptDocument.FileName)                mNeedToSave = False                Return True             Catch ex As Exception                MsgBox(ex.Message, MsgBoxStyle.Critical)                Return False            End Try        Else            Return False        End If    End Function

 

Please someone can help me.

Report margins not holding at print

$
0
0

We created some reports in VS2008 for our Insurance program that have to print fields that line up with boxes on a specific paper (UB-04). When we migrated the project to VS2012, it displayed fine in the viewer, but the fields started being moved when they printed. Some shifted up, some down, there wasn't any consistency that I could tell, but it didn't print in the boxes properly. We resorted to trying to recreate the report in VS2012, and ran into a hiccup where the project is C++ and VS2012 won't allow me to add a crystal report to a c++ project. The workaround was to create the report in a C# program and then migrate it to the c++ using add existing. Now the issue I have is that the margins won't hold on this report no matter what I do. The top margin is the specific problem, because it pushes the first line down and it doesn't fit in the box like it needs to.

 

I'm using VS 2012 update 3, CR version 13.0.6, language is C++

 

I've done lots of searches to find something and none of the suggestions have worked. I've tried using the PrintToPrinter command and the CrystalReportViewer->PrintReport() function and both produce the same results.

 

I've attached a picture of the printed report as well as a snip of how it displays in the viewer.

 

Any help is greatly appreciated.

 

 

- Dylan Schmidt


Crystal Reports ToText Function

$
0
0

Hello

I have a report that takes the current year and converts it to text using the ToText function e.g. ToText(Year(CurrentDate))

 

In Crystal this returns 2013

 

When I run the same report using the .NET runtimes for Crystal 2011, the same formula return 2,013.00

 

I know that the ToText function has extra parameters to handle formatting, however, I expect the results to be consistent between Crystal Reports and runtimes. Is there an over-ride for the runtimes (registry setting perhaps) that can be used to make the results formatted like Crystal Reports?

When will CR runtime engine for .NET framework 4 support Win 8

$
0
0

We use CR runtime engine for .NET framework 4 as a third party software to generate reports for customer.

Currently we are focus on support MS Windows 8, but I found CR could not be installed.

So anyone who knows when will it support Win 8 ?

Any help is greatly appreciated.

Load report failed

$
0
0

Hai ,

 

I created a .net application in C# .Net to display a report based on some condition.

When I give post to print the report it shows the " Load report Failed error".

 

The application is created in Visual studio 2010 .

I had install crystal report viewer 2008 CR,CRforVS_redist_install_64bit_13_0_2and CRRedist2005_X64.

OS:Windows server 2008

MySQL .NET Connector

$
0
0

Hi

Are there any plans for CR Visual Studio Dev edition to be able to use the .NET Connector for MySQL?

 

At present I am having to use ODBC DSN connections which I am sure is not the most efficient way of getting data from my DBs.

 

Thanks

Mark

PDF export of bar code fonts

$
0
0

Using the latest SAP Crystal Reports 2011 (CR Developer, Version 14.0.4.738 RTM).  We created a report that uses a True Type bar code font installed on the computer.  When the report is run from SAP Crystal Reports 2011 development environment or when the report is exported to PDF, the bar code is displayed correct.

  

Using the latest Crystal Reports for .NET Framework, Version 13.0.2000.0, we created a .NET application running on the same computer that exports the same report to PDF.  The resulting PDF only shows the raw digits that should be displayed in the bar code font.

 

Does this sound like a bug?

 

 

Memory is not releasing

$
0
0

Hi,

We have created a application in ASP.NET 3.5 using VS2008. That was working fine longtime. After we have migrated to VS2010, we are facing problem. Let me give you the deploy site scenario. After deploy it client end it work fine few min then it is showing "Load report failed" (I had set permission to temp folder).  Then I investigation more and find out that "IIS worker process" is growing so fast. I have found that when "IIS worker process" reached 370-400 MB then this error popup. After I restart the IIS, it start working again. Below is my code

 

========================== Code ============================================

string reportName = Session["ReportName"] as string;

ReportDocument rd = Session["ReportDocumentObj"] as ReportDocument;

                 

MemoryStream oStream;

oStream = (MemoryStream)rd.ExportToStream(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat);

                   

Response.Clear();

 

Response.Buffer = true;

Response.ContentType = "application/pdf";

Response.BinaryWrite(oStream.ToArray());

 

Response.Flush();

Response.Close();

 

oStream.Flush();

oStream.Close();

oStream.Dispose();

rd.Close();

rd.Dispose();

GC.Collect();

=======================================================================

 

CR Run-time Version: v.13.0.5 (Service Pack 5)

 

============================= Web.config ==========================================

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

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

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

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

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

================================================================================

 

 

I have done every possible to reduce memory by using dispose. But none of this worked for me. Any kind of assist or suggestion will be appreciated. Thanks in advance. 

Prompt report as parameter

$
0
0

Hello all,

 

I'm working on a web application for our Crystal Reports and we have some reports that use prompt reports to pass parameter values. Since we have been using DLV to view our reports it was pretty easy as you just set the location for your prompt reports in the DLV preferences and when you run a report that uses a prompt report the report automatically launchs when you run the main report. But in VS2010 I have not been able to make this work.

I'm not even sure if prompt reports are supported since I can't really find much about it on the net.

So here is the code that I'm using in my .cs file:

protected void Page_Init

{

      ReportDocument report = new ReportDocument()

     report.Load(@"F:\Crystal\Findings\WO-Traveller.rpt");

     report.FileName = (@"F:\Crystal\Findings\WO-Traveller.rpt");

     report.SetParameterValue("ORder Numbers.rpt", "F:\\Crystal\\Prompt\\Order Numbers.rpt");

     CrystalReportViewer1.ReportSource = report;

}

 

It appears that the parameter value ust gets set to F:\\Crystal\\Prompt\\Order Numbers.rpt and it's not actually calling the prompt report.

 

How can I get this to work that upon launching the WO-Traveller report the Order Numbers report gets launched so I can select the order numbers I want?

 

Thanks in advance for your help!

 

Chris


App crashes randomly on accessing VS2010 CR.NET report from Windows 2012 /IIS8

$
0
0

Hi,  I have a asp.net web application with VS2010 .NET crystal reports .  These reports are called from a classis ASP application using a query string URL request.   These reports work fine , but randomly few reports take long time on loading .  When I connect to server to see the issue, I see a  VS debugger window opened . Clicking on NO on VS debugger on server  will load the report fine on client machine .

 

On reviewing event log , I found below application error related to OLEAU32.dll . 

 

-------------------------------------------------------------------------------------------------------------------------------------------------------

Faulting application name: w3wp.exe, version: 8.0.9200.16384, time stamp: 0x50108835

Faulting module name: OLEAUT32.dll, version: 6.2.9200.16384, time stamp: 0x50108a1d

Exception code: 0xc0000005

Fault offset: 0x00000000000017ac

Faulting process id: 0x1434

Faulting application start time: 0x01cea030b9c0957a

Faulting application path: c:\windows\system32\inetsrv\w3wp.exe

Faulting module path: C:\Windows\system32\OLEAUT32.dll

Report Id: 8cd201a5-0c24-11e3-93fb-0022190c68f0

Faulting package full name:

Faulting package-relative application ID:

----------------------------------------------------------------------------------------------------------------------------------------------------------

Software/Hardware platform :

1. Windows 2012 server with IIS8

2.Installed CRforVS_redist_install_64bit_13_0_2 on server .

 

Thanks

VY

Dynamic Connectivity with Oracle

$
0
0

I have created report using crystal report 11, in visual studio when try to see preview it show me all the records. But when I try it with different database using crystal report viewer control, it gives an error "Database logon failed".


I have used below given code to change database connectivity.


private static void ChangeDataSource(ISCDReportClientDocument rcd, CrystalConnectionInfo crystalConnectionInfo)

        {

            DatabaseController databaseController = rcd.DatabaseController;

            ConnectionInfos connectionInfos = databaseController.GetConnectionInfos(null);

            CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo oldConnectionInfo = connectionInfos[0];

            CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo newConnectionInfo = new        

             CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();

 

 

            newConnectionInfo.Kind = CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;

 

 

            PropertyBag QELogonProperties = new PropertyBag();

            QELogonProperties.Add("Server", crystalConnectionInfo.ServerName);

            QELogonProperties.Add("Trusted_Connection", false);

 

 

            PropertyBag QEProperties = new PropertyBag();

            QEProperties.Add("QE_LogonProperties", QELogonProperties);

            QEProperties.Add("Database DLL", "crdb_oracle.dll");

            QEProperties.Add("QE_DatabaseName", crystalConnectionInfo.Database);

            QEProperties.Add("QE_DatabaseType", "Oracle Server");

            QEProperties.Add("QE_ServerDescription", crystalConnectionInfo.ServerName);

            QEProperties.Add("QE_SQLDB", true);

            QEProperties.Add("SSO Enabled", false);

 

 

            newConnectionInfo.Attributes = QEProperties;

            newConnectionInfo.UserName = crystalConnectionInfo.UserName;

            newConnectionInfo.Password = crystalConnectionInfo.Password;

 

 

            databaseController.ReplaceConnection(oldConnectionInfo, newConnectionInfo, null, (int)CrDBOptionsEnum.crDBOptionUseDefault +

               (int)CrDBOptionsEnum.crDBOptionDoNotVerifyDB);

        }

 

 

In Report I have directly used command in place of Table or Stored procedures.



Please find below given list of used tools.


Crystal Report - 11

Visual Studio - 2012

Oracle Server - 9i

Oracle Client - 11g

Ignore parameter and show all records?

$
0
0

Hi

I have reports with parameters that filter the reported records by. for example, Company Id.

I am creating a parameter entry panel and want the option to 'Show All'

How do I set the relevant parameter in my ASP.NET application (VB.NET code) to make the report display all records rather than ones that match a specific company id?

 

Thanks

Mark

Crystal Reports Viewer Scale Report Page to Fit Printer Page Disabled

$
0
0

Need help with determining how to disable Scale Report Page to Fit Printer Page for VB.NET because all my crystal reports print outs are smaller than how they use to print after upgrading to Crystal Reports XI SP4.  I have coded the program to not scale during run-time but nothing seems to make a difference in terms of disabling the Scale Report Page to Fit Printer Page.

 

Dim printPrompt As New Windows.Forms.PrintDialog

printPrompt.PrinterSettings = New System.Drawing.Printing.PrinterSettings

printPrompt.AllowSomePages = True

 

Dim oLayout As New CrystalDecisions.Shared.PrintLayoutSettings

oLayout.Centered = False

oLayout.Scaling = PrintLayoutSettings.PrintScaling.DoNotScale

 

Dim margins As PageMargins

margins = rpt.PrintOptions.PageMargins

margins.bottomMargin = 0

margins.leftMargin = 0

margins.rightMargin = 0

margins.topMargin = 0

rpt.PrintOptions.ApplyPageMargins(margins)

 

rpt.PrintToPrinter(printPrompt.PrinterSettings, printPrompt.PrinterSettings.DefaultPageSettings, False, oLayout)

Crystal Report Generation Timeout

$
0
0

Hello All,

 

I am hoping to find a way to set a timeout on the generation (not connection) of a Crystal Report in CRXI R2.

 

Ideally, once I call the method, ReportDocument.ExportToDisk(), I would like an exception to occur if the generation takes longer than say, 1 minute.

NOTE: Our Crystal Reports use stored procedures to gather data from an SQL Server 2008 R2 Database.

 

I have attempted the following, without success:

1) Altering the Connection String used to build ConnectionInfo: there is no timeout property.

 

2) Adding an attribute to the ConnectionInfo.Attributes.

     connInfo.Attributes.Collection.Add(New NameValuePair2("General Timeout", "1"))

     => This just caused my report generation to fail.

 

3) Setting the "General Timeout" property of the ReportDocumentDataSourceConnections(index).LogonProperties.   This is done for the Main Report and for subreports.  (Maybe I have done this incorrectly. The "General Timeout" property is being modified, as viewed in the debugger.)

     For index As Integer = 0 To reportDoc.DataSourceConnections.Count - 1

          reportDoc.DataSourceConnections(index).LogonProperties.Set("General Timeout", "1")

     Next

     Note: I am unsure of the time units for the "General Timeout" - the above assumes "minutes".

               => Report Generation did not fail after either 1 or 60 seconds.

 

 

Might anyone know a way to do this correctly?

Kind thank yous!

 

 

TOOLS

================

Crystal Reports XI R2

VB.NET 2.0

SQL Server 2008 R2

Viewing all 2556 articles
Browse latest View live


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