Quantcast
Channel: SCN : Discussion List - SAP Crystal Reports, version for Visual Studio
Viewing all 3636 articles
Browse latest View live

Bold Font is shown not correctly for Bookman Old Style

$
0
0

Hi. When  I want to view a report with static text in Bookman Old Style Font  bold style, it appears not as bold. How to resolve this problem?

 

In designer is shown correctly, but at view is shown not as bold and is printed also not as bold. I tried with Times New Roman it is displayed as I need.

 

In Visual Studio 2008(2010) I created a report and  through CrystalReportViewer I display it.

 

Thanks.


Licensing

$
0
0

I'm having a bit of a trouble understanding the licensing of Crystal Report for Visual Studio 2012.

 

I understand that this is free, even for a commercial product. Is this so?

 

Thanks!

Floating point rounding error in CR2011

$
0
0

Hi All,

 

I just upgraded our CrystalReports from 2008 to 2011, but I found there are some floating point rounding errors happened in the reports generated by the CR2011 (using "SAP Crystal Reports, developer version for Microsoft Visual Studio" libraries). The following is the example:

 

 

There is a field in my report (in fact, is a sub-report) to display (with 2 decimal points) the result output of my "sp_xxx;1.mLiab", and the following are its output values:

 

2008596.2770

1104305.8400

342524.3890

167207.5140

87253.0120

15414.4130

0.0000

 

And, there is another field in my report to display (with 2 decimal points) the sum up value of the output of my "sp_xxx;1.mLiab". The displayed value should be 3725301.45 in theory (as it is truncated from the actual summation output -> 3725301.445), but I found the CR2011 output me the wrong result 3725301.44. I have also tried to generated the same report by using CrystalReports 2008 and CrystalReports XI, and they also output me a correct value.


Does any one know what is the problem? Is it a bug? or, anything I configured in wrong way? Thanks in advance.


Cheers,

Elliott

select multiple values from different tables

$
0
0

Good Day everyone,here i am again looking for solution. can anyone help my with this code. i'm creating a report (End Of Shift). i want to get all the details from my tables named (loghistory,usertbl,actualguesting). they dont have common fields. this is my code:

 

first try command display the data of actualguesting in my report.but when put the others,it does'nt display anything plus it prompts database logon

 

If ComboBox1.Text = "End of Shift" Then

            Dim rpt As New EndofShift() 'The report you created.

            Dim MyCommand As New SqlCommand()

            Dim myDA As New SqlDataAdapter()

            Dim myDS As New DSactualguesting() 'The DataSet you created.

            Dim myDS2 As New DSloghistory() 'The DataSet you created.

            Dim myDA2 As New SqlDataAdapter()

            Dim myDS3 As New DSusertbl() 'The DataSet you created.

            Dim myDA3 As New SqlDataAdapter()

            Dim cn As New SqlConnection(ConnectString())

            Dim time As DateTime = DateTime.Now

 

 

            Try

 

 

                MyCommand.Connection = cn

                MyCommand.CommandText = "SELECT * FROM actualguesting"

                MyCommand.CommandType = CommandType.Text

                myDA.SelectCommand = MyCommand

                myDA.Fill(myDS, "actualguesting")

 

 

                myDS.EnforceConstraints = False

                rpt.SetDataSource(myDS)

                CrystalReportViewer1.ReportSource = rpt

            Catch Excep As Exception

                MessageBox.Show(Excep.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)

            End Try

 

 

 

 

            Try

 

 

                MyCommand.Connection = cn

                MyCommand.CommandText = "SELECT * FROM loghistory where loggedin='" + time.ToShortTimeString + "'"

                MyCommand.CommandType = CommandType.Text

                myDA2.SelectCommand = MyCommand

                myDA2.Fill(myDS2, "loghistory")

 

 

                myDS2.EnforceConstraints = False

                rpt.SetDataSource(myDS2)

                CrystalReportViewer1.ReportSource = rpt

            Catch Excep As Exception

                MessageBox.Show(Excep.Message, "Error", MessageBoxButtons.OK,MessageBoxIcon.Error)

            End Try

 

 

            Try

 

 

                MyCommand.Connection = cn

                MyCommand.CommandText = "SELECT * FROM usertbl where username='" + Login.txtuser.Text + "'"

                MyCommand.CommandType = CommandType.Text

                myDA3.SelectCommand = MyCommand

                myDA3.Fill(myDS3, "usertbl")

 

 

                myDS3.EnforceConstraints = False

                rpt.SetDataSource(myDS3)

                CrystalReportViewer1.ReportSource = rpt

            Catch Excep As Exception

                MessageBox.Show(Excep.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Error)

            End Try

          

        End If

Right Tool for the Job?

$
0
0

Hi,

 

I'm looking to create and serve .pdf files through ASP.Net based on selections from a simple page and based also on a set of report specifications stored in a SQL Server database. I need to include graphics and charts and generate on the fly. Development would be through VS 2012. There seem to be quite a number of options for tools, but it's hard to figure from sales blurb whether they are just what I'm looking for. Plenty of open source tools do the plain textual part, but I need to do pretty, not plain.

 

Is Crystal Reports for Visual Studio an appropriate choice?

 

Thanks

Deploying crystal report in Visual Studio 2010

$
0
0

Hello and thanks to all who read and reply to this post. I had posted the following question in the MSDN forums but was redirected to the forums here as my question was more oriented towards crystal reports (CR) than VS 2010

 

POST FROM MSDN FORUMS:

I have recreated several reports in Visual Studio (VS) 2010 from premade ones in Crystal Reports (CR) 2008. This was mostly done for my own learning, but also so I could experiment with the Integrated Report Designer (IRD) which ended up working very well.

 

The problem I have is when it comes to deployment. Other than what I've done with a few forms from VB Express 2008, I have no experience with web deployment. Initially I published the reports to a file system and then copied the files to the IIS directory (C:/Inetpub/wwwroot/crystalreportviewers115). I moved the web.config file to the previous level (I believe this was some of the forums suggested) and recieved an error when trying to run the report in the browser (http://localhost/crystalreportviewer115/REPORTNAME.aspx):


Parser Error Message: Unrecognized attribute 'targetFramework'. Note that attribute names are case sensitive.

Source Error:

Line 12:     </connectionStrings>
Line 13:     <system.web>
Line 14:         <compilation debug="true" strict="false" explicit="true" targetFramework="4.0">
Line 15:            <assemblies>
Line 15:                  <add assembly="CrystalDecisions.Web, Version=13.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>

Source File: c:\inetpub\wwwroot\web.config     Line:    14

 

I decided to try the web deploy method for the report and added the service URL (C:/Inetpub/wwwroot/crystalreportviewers115). However, I'm not sure what they're asking for in Site/application box. I made sure to check off the box "Mark as IIS application on destination" but other than this, I'm stuck.

Again I do apologize if this question is pretty elementary for most users, but I haven't done this before. I did extensive searches online and through some of the forums for an answer, but seemed to have gotten more confused. I am looking to learn how to do this myself so if there are any good book recommendations on this subject I would be greatful for those as well.

Again thanks to everyone who takes the time to read and respond.


-END OF POST-

 

As I mentioned in the post, I have very basic knowledge of the deployment part. I did search several other discussions in these forums for help on this matter before posting this question, but found no answer. I did like/bookmark a few of them as they did provide useful tips for any other issues that may crop up in the near future.

 

Again, thanks to all who read and respond to this.

Battling with sending email from Crystal with MS Outlook x64

$
0
0

This past Friday we started with Crystal's email function not working on any 64 bit OS box.  We are now using Crystal 2008 SP3, which has 64 bit OS working with the 32 bit version of Outlook.  Unfortunately, we have a large client running the 64 bit version of MS Office, which means 64 bit Outlook.  The result is a pop-up that says

 

          Either there is no default mail client or the current mail client cannot fulfill the messaging

          request.  Please run Microsoft Outlook and set is as the default mail client.

 

We have gone through several steps to verify that the registry in not corrupt, and that Outlook is set as the default mail client. 

 

Is it possible for the Crystal 2008 email function to work with Outlook x64, and if so what do we need to do?  Our interface uses C# .NET 3.5.

Crystal 2011 (or 13.02) Export to MAPI on Windows 7 x64

$
0
0

So I have some code which pretty much matches the examples for exporting to MicrosoftMail. This code works great on a 32 bit machine, however it doesnt work at all on x64. My application is built as "Any CPU" this wont change so dont bother to suggest that. Also I cannot use system.net.mail. I have been instructed to get this to work using the Crystal Export. So all that said is there anyone out there that has got this work work in the following environment:

 

Windows 7 32 AND 64 bit with the app built in VS.net 2010 as Any CPU using the Export to MSMAIL feature in Crystal 13 (2011)? If so how did you do it?


Error when exporting reports using MAPI

$
0
0

We created a .NET class that wraps CR 2010 .NET Crystal Reports functions and made it COM visible. This class is used to create a COM object in a js script which in turn used to export reports to a PDF file with the destination MAPI.

It exports reports just fine without any errors however if prior to instantiation the exporting class we instantiate a class that has nothing to do with the Crystal Reports functions, our exporting object throws u201CExternal component has thrown an exception.u201D error when exporting. It appears that it has something to do with the SideBySide feature. I was wondering if somebody knows what causes this and if there is a way to fix this problem.

Thanks for your help!

<br>

<br>

Below are 2 procmon.exe outputs, the first when exporting works and the second when it doesnu2019t

<br>

<br>

/////////////////////////////////////////////

<br>

1) Procmon.exe output when exporting works fine

<br>

<br>

<br>HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion     SUCCESS     Desired Access: Read

<br>HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion     SUCCESS     KeySetInformationClass: KeySetHandleTagsInformation, Length: 0

<br>HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\CommonFilesDir     SUCCESS     Type: REG_SZ, Length: 72, Data: C:\Program Files (x86)\Common Files

<br>HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion     SUCCESS     

<br>C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\MSO.DLL     FAST IO DISALLOWED     

<br>C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\MSO.DLL     SUCCESS     Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened

<br>7:16:30.7403615 AM     test.exe     4396     FASTIO_QUERY_INFORMATION     C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     Type: QueryBasicInformationFile, CreationTime: 9/17/2010 10:50:22 AM, LastAccessTime: 11/10/2010 5:47:02 PM, LastWriteTime: 9/17/2010 10:50:22 AM, ChangeTime: 2/17/2011 11:04:53 AM, FileAttributes: A

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\MSO.DLL     SUCCESS     Desired Access: Read Data/List Directory, Execute/Traverse, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     FILE LOCKED WITH ONLY READERS     SyncType: SyncTypeCreateSection, PageProtection:

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     SyncType: SyncTypeOther

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\MSO.DLL     SUCCESS     Image Base: 0x79260000, Image Size: 0x1073000

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     Type: QueryNameInformationFile, Name: \Program Files (x86)\Common Files\microsoft shared\OFFICE12\MSO.DLL

<br>C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\MSO.DLL     SUCCESS     Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\SideBySide     SUCCESS     Desired Access: Read

<br>HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\SideBySide     SUCCESS     KeySetInformationClass: KeySetHandleTagsInformation, Length: 0

<br>HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\SideBySide\PreferExternalManifest     NAME NOT FOUND     Length: 20

<br>HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\SideBySide     SUCCESS     

<br>C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\MSO.DLL     SUCCESS     Desired Access: Generic Read, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     Type: QueryBasicInformationFile, CreationTime: 9/17/2010 10:50:22 AM, LastAccessTime: 11/10/2010 5:47:02 PM, LastWriteTime: 9/17/2010 10:50:22 AM, ChangeTime: 2/17/2011 11:04:53 AM, FileAttributes: A

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>

<br>

<br>//////////////////////////////////////////////////////////////////////

<br>2) Procmon.exe output when exporting doesnu2019t work, notice that it tries to open MSO.dll at the same location as in the output above but fails, it tries then to open it at several other locations and fails

<br>

<br>

<br>HKLM\Software\Wow6432Node\Microsoft\Windows\CurrentVersion     SUCCESS     Desired Access: Read

<br>HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion     SUCCESS     KeySetInformationClass: KeySetHandleTagsInformation, Length: 0

<br>HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\CommonFilesDir     SUCCESS     Type: REG_SZ, Length: 72, Data: C:\Program Files (x86)\Common Files

<br>HKLM\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion     SUCCESS     

<br>C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\MSO.DLL     FAST IO DISALLOWED     

<br>C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\MSO.DLL     SUCCESS     Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a, OpenResult: Opened

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     Type: QueryBasicInformationFile, CreationTime: 9/17/2010 10:50:22 AM, LastAccessTime: 11/10/2010 5:47:02 PM, LastWriteTime: 9/17/2010 10:50:22 AM, ChangeTime: 2/17/2011 11:04:53 AM, FileAttributes: A

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\microsoft shared\OFFICE12\MSO.DLL     SUCCESS     Desired Access: Read Data/List Directory, Execute/Traverse, Synchronize, Disposition: Open, Options: Synchronous IO Non-Alert, Non-Directory File, Attributes: n/a, ShareMode: Read, Delete, AllocationSize: n/a, OpenResult: Opened

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     FILE LOCKED WITH ONLY READERS     SyncType: SyncTypeCreateSection, PageProtection:

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     SyncType: SyncTypeOther

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Program Files (x86)\Common Files\Microsoft Shared\OFFICE12\MSO.DLL     SUCCESS     

<br>C:\Users\Paul\projects\temp\test\Debug\MSO.dll     FAST IO DISALLOWED     

<br>C:\Users\Paul\projects\temp\test\Debug\MSO.dll     NAME NOT FOUND     Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

<br>C:\Program Files (x86)\Microsoft Office\Office12\MSO.dll     FAST IO DISALLOWED     

<br>C:\Program Files (x86)\Microsoft Office\Office12\MSO.dll     NAME NOT FOUND     Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

<br>C:\Windows\SysWOW64\MSO.dll     FAST IO DISALLOWED     

<br>C:\Windows\SysWOW64\MSO.dll     NAME NOT FOUND     Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

<br>C:\Windows\system\MSO.dll     FAST IO DISALLOWED     

<br>C:\Windows\system\MSO.dll     NAME NOT FOUND     Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

<br>C:\Windows\MSO.dll     FAST IO DISALLOWED     

<br>C:\Windows\MSO.dll     NAME NOT FOUND     Desired Access: Read Attributes, Disposition: Open, Options: Open Reparse Point, Attributes: n/a, ShareMode: Read, Write, Delete, AllocationSize: n/a

Crystal reports 2011 with command object on 64bit for paramters

$
0
0

We are using Crystal reports 2011 with SQL Server 2008 R2. We are trying to use dynamic parameters and using command object to populate the dynamic pick list.

The dynamic picklist is not populating and showing just a empty textbox while running on 64bit. I tried to run the profiler and there is no db command executed.

If I use a view instead of command object for populating the parameter - then it works. If I set the IIS to have 'Enable 32 bit application' to true, then even the command object works works. Is this a problem with choosing the correct driver (32-bit vs 64-bit) or should it be always 32-bit?

 

When I run the SQL Profiler - the command object is executed, but the results are not getting bound to the dynamic picklist


Any ideas/help?

 

Thanks

Shankar.

Crystal Reports for Visual Studio 2010

$
0
0

Hi All,

I'm a first time user of Cystal Reports and I'm having difficulty installing the latest version of Crystal Reports for Visual Studio 2010.  I receive the below error:

 

Error 1904 Module c:\Program Files (x86)\SAPBusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\win32_x86\ReportPromptEMF.dll failed to register.  HRESULT - 2147023898 Contact your personnel.

 

I have a Windows 7 operating system and I'm not exactly sure what I need to do to complete the installation.  Any suggestions/help would greatly be appreciated.

 

Thank you.

CR with Web Service Data Source

$
0
0

I have a Crystal Report 2011 report that uses a Web Service Data Source that points to an SAP MII transaction.

 

In Visual Studio 2010 the report seems to load fine and the parameters seem to load fine and the parameters seem to load fine as well.

 

But when I try:

   oCrystalReport.PrintToPrinter(1, False, 0, 0)

 

I get:

Error in File CR476389 {8C1036AC-5B3C-4334-8355-F7EF5A059B36}.rpt:

Failed to load database information.

 

I substituted a different report that uses an ODBC connection and that report executed fine.

 

I haven't been able to find any info about any special connection info when using a Web Service.

 

When I created the report I used:

http://miisandbox:50000/XMII/WSDLGen/CrystalReports/Transactions/T476389?wsdl XacuteWS XacuteWSSoap Xacute as the URL.

 

Do I have to pass that to the report somehow in VB.

 

Thanks in advance.

Crystal reports 2011 with command object on 64bit for paramters

$
0
0

(Reposting the same issue from Crystal reports to here)

 

We are using Crystal reports 2011 with SQL Server 2008 R2. We are trying to use dynamic parameters and using command object to populate the dynamic pick list.

The dynamic picklist is not populating and showing just a empty textbox while running on 64bit. I tried to run the profiler and there is no db command executed.

If I use a view instead of command object for populating the parameter - then it works. If I set the IIS to have 'Enable 32 bit application' to true, then even the command object works works. Is this a problem with choosing the correct driver (32-bit vs 64-bit) or should it be always 32-bit?

 

When I run the SQL Profiler - the command object is executed, but the results are not getting bound to the dynamic picklist

 

Code which we use to modify the connection


 

   CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag logonDetails = new CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag();
   logonDetails.Add("Auto Translate", -1);
   logonDetails.Add("Connect Timeout", 15);
   logonDetails.Add("Data Source", server);
   logonDetails.Add("General Timeout", 0);
   logonDetails.Add("Initial Catalog", db);
   logonDetails.Add("Integrated Security", "false");
   logonDetails.Add("Locale Identifier", 1033);
   logonDetails.Add("OLE DB Services", -5);
   logonDetails.Add("Provider", "SQLNCLI10");
   logonDetails.Add("Use Encryption for Data", 0);

 

   //Create the QE (query engine) propertybag with the provider details and logon property bag.
   CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag QE_Details = new CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag();
   QE_Details.Add("Database DLL", "crdb_ado.dll");
   QE_Details.Add("QE_DatabaseName", db);
   QE_Details.Add("QE_DatabaseType", "OLE DB (ADO)");
   QE_Details.Add("QE_LogonProperties", logonDetails);
   QE_Details.Add("QE_ServerDescription", server);
   QE_Details.Add("QE_SQLDB", "True");
   QE_Details.Add("SSO Enabled", "False");

 

   CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo newConnInfo = new CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo();
   CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfo oldConnInfo;
   CrystalDecisions.ReportAppServer.DataDefModel.ConnectionInfos oldConnInfos;

 

   oldConnInfos = rcd.DatabaseController.GetConnectionInfos(null);
   for (int I = 0; I < oldConnInfos.Count; I++)
   {
   oldConnInfo = oldConnInfos[I];
   newConnInfo.Attributes = QE_Details;
   newConnInfo.Kind = CrystalDecisions.ReportAppServer.DataDefModel.CrConnectionInfoKindEnum.crConnectionInfoKindCRQE;
   try
   {
   rcd.DatabaseController.ReplaceConnection(oldConnInfo, newConnInfo, null, CrystalDecisions.ReportAppServer.DataDefModel.CrDBOptionsEnum.crDBOptionDoNotVerifyDB);
   }
   catch (Exception ex)
   {
   Label1.Text = ex.Message;
   return;
   }

 

   }

 

   doc.SetDatabaseLogon(user, pass);

 

   doc.VerifyDatabase();

 

My machine configuration: Windows 7 64-bit with IIS 7.0

 

Any ideas/help?

 

 

Thanks

Shankar.

VS 2010 Crystal Reports deployment to Web Server

$
0
0

For a VS 2010 crystal reports deployment, do we need to install any CR Viewers or anything else on the web server for the reports to work?  Or will the DLL's within our Visual Studio project package handle everything?

Dynamic pick list values missing in web viewer

$
0
0

We have a report that uses a dynamic pick list to allow the user to select values from a list loaded from the database. When I run the report in the designer, I get prompted with a pick list. We run this report in a web UI and on one server we get the list and on another where the list is supposed to be we get a free-form text entry field that allows me to type in anything at all.

 

There is zero feedback from CR about what, if anything, went wrong. No event log entries, no dialog boxes, nothing. I have absolutely no idea where to even begin looking for a solution.

 

The non-working server is using the 64 bit runtime engine for .Net 4, 13.0.3.612 and the working one is running 13.0.2.469. I don't see anything in the release notes suggesting that the was anything "fixed" in the newer version that would break dynamic pick lists.


The maximum report processing jobs limit configured by your system administrator has been reached.

$
0
0

How to overcome this problem?

 

Message:  The maximum report processing jobs limit configured by your system administrator has been reached. 

Stack Trace:  at CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object& DocumentPath, Int32 Options) at CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDocumentIsOpened()

 

 

I have read some blogs and they are asking as follows:

 

1)Click Start > Run. The Run dialog box appears.

2)Type “regedit” in the Open field. Click OK. The Registry Editor appears. Navigate to the appropriate registry key value as documented.

 

registry.png

 

Is this approach is correct?

Invalid Keycode error with VS2012 and CR13

$
0
0

I have been using VS2012 Professional with Crystal Report for Visual Studio (13.0.5.891) for the last two months and was working fine.  Today when I load a project and went to make a change to the template, I got a message box that just says "Invalid Keycode", even though I was using it last night just fine.

I have read a bunch of stuff where other users were getting this error but everything I found was for previous version of CR and VS.

Uninstalling everything and reinstalling isn't a realistic option.

ReportTitle property

$
0
0

Hi,

 

When I print my report the name on the document it "Crystal Reports - " & .SummaryInfo.ReportTitle

How I can edit it ? I would like to remove "Crystal Reports - ".

Because when the user print with PDFPrinter, he just want the real name

Exemple

"Crystal Reports - Invoice_4567"

He want just

"Invoice_4567"

Thank you

 

Francois.

Error Not enough memory for operation

$
0
0

Hi,

 

I have created a VB .Net treatment which generates a lot of PDF documents with Crystal Reports 2008.

For that, I use the method ExportToDisk of the class ReportDocument.

I generate a lot of report and when the number exceeds 30000, I get the following error :

 

Not enough memory for operation. -at CrystalDecisions.ReportAppServer.Controllers.PrintOutputControllerClass.ModifyPrinterName(String newVal)

   at CrystalDecisions.CrystalReports.Engine.PrintOptions.set_PrinterName(String value)

   at FCS.GenerateReportBO.GenerateReport.SetPrintOptions(ReportDocument poReportDocument, String psOrientation, String psPaperSize, String psPaperSource, Single pnTopMargin, Single pnBottomMargin, Single pnLeftMargin, Single pnRightMargin)

   at FCS.GenerateReportBO.GenerateReport.PageSetup(ReportDocument poReportDocument, String psSize, String psOrientation, String psPaperSource, Single pnTopMargin, Single pnBottomMargin, Single pnLeftMargin, Single pnRightMargin)

   at FCS.GenerateReportBO.GenerateReport.SaveReportAsPdf(ReportDocument pReportDocument, String pWaterMark, String pOrientation, String pSize, Single pMarginTop, Single pMarginBottom, Single pMarginLeft, Single pMarginRight, String pFileName)

   at FCS.ReportBO.Report.SaveReportAsPdf(String pFileName, String pMKFileName)

   at FCS.SalesReportsBO.RptS14.SaveReportAsPdf(String pFileName, String pMKFileName)

   at FCS.Batch.PurgeArchive.PurgeArchive.Archive(Int32 pnIndex, Int32 pnDocumentId, String psPDFCompleteFileName, String psPDFCompleteFileNameMKE)

   at FCS.Batch.PurgeArchive.PurgeArchive.ExecuteTreatment()

 

Can you help me to solve this ?

Best Regards,

Séverine

SAP Crystal Report - Print is exporting to PDF on Chrome browser

$
0
0

I am using crystal report to display the reports on website (developed in ASP.net). On google chrome browser, print from tool bar is exporting to pdf.

 

 

The same issue is occuring on IE 10 as well.

 

 

Has anyone is having solution for this issue? Is it any patch available for this?

Viewing all 3636 articles
Browse latest View live


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