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

Zebra 105SL and Crystal Report label issues

$
0
0

We have a report designed in CR2008 SP6 Fix Pack 6.2 to print labels to a label printer.  The report is designed as 4" x 4" label.

 

We have a VB.NET executable that uses the Crystal Developer for Microsoft Visual Studio SP6 properties and methods to generate the report.  Specifically using the load and printtoprinter methods.  Our end users use this vb.net executable to print their labels.  We prompt for a printer using the PrinterDialog and then set the System.Drawing.Printing.PrinterSettings and PageSettings based on the values selected in PrinterDialog.  We then pass the System.Drawing.Printing. PrinterSettings and PageSettings as arguments into CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter

 

We have the No Printer option checked in this report because if we do not then we found, when our end user tries to run the report, the vb.net exe will try to look for the printer we used to develop the report.  This would sometimes cause a Load Report Failed error because it would time out trying to find our printer which our end user does not have.  Each of our end users could have a different printer than what we develop with, so after designing, we select No Printer and save the report.

 

I am now seeing and trying to understand, based on this article from July 2013:  http://search.sap.com/ui/notes?id=0001893509&boj=/sap/bc/bsp/spn/scn_bosap/notes.do?access=69765F6D6F64653D3939382669765…

It sounds like:

We can no longer have one generic report to print to any zebra printer? 

*  We must now create a version of a report for every Zebra print driver that is available and deploy all of those reports

*  Modify our vb.net program to look for the print driver on the printer the user selected  and then somehow know which report is the correct report to

    load and print so there are no Zebra printing issues?

 

Am I understanding this correctly?  If so, then this will cause us quite a bit of trouble.  We have no control over what printers our end users purchase nor what drivers they use, and we do not want to limit them.

 

The issue they are having, with this runtime version of Crystal and this Zebra 105SL is that, with the Zebra driver (v7.3.6), the printer will variably not print a label for an item, but then duplicate (or triplicate) a label for another item.  It is as though the buffering is not correct.  Our reports run SQL Stored procedures, and we can see the correct number of labels when we run the SQL stored procedure.  But when the report prints out, it does not print some of those items, but then will duplicate others.  Zebra says it is a Crystal Reports issue.  If the customer switches to the Seagul Scientific print driver then the items do not skip, but they print horizontal at 2" x 2" and even if they change the label to the required 4" x 4" in the printer properties, the label still prints x" x 2" horizontal.  Can you please answer this?

 

So there are a couple of items here we need help with here.  The issue with the Zebra printer not printing some labels and duplicating others, and then the issue based on the link above.


Passing Parameters from .NET to CR2013

$
0
0

We upgraded from CR8.5 to CR2013 using VS2012 and cannot use the old way of passing parameters to the report. The way we passed them before was to use this code:

 

<asp:HyperLinkField DataNavigateUrlFields="LoadNbr"

DataNavigateUrlFormatString="~/reports/rmssalesreceiptnoprice.rpt?Prompt0={0}"

DataTextField="LoadNbr" HeaderText="Invoices No Price" SortExpression="LoadNbr" />

 

The users would choose a load number from a grid view list from SQL Server. We would like to have the same action to view a report using the new CrystalReportViewer in .NET

 

How can we translate the old way to the new way and pass the SQL load number to the viewer without having to type it into the parameter field?

Why does VS 2010 throw type initializer for 'CrystalDecisions.Shared.SharedUtils' for 64-bit

$
0
0

I am talking about a Win-forms application in VS 2010 SP1. The application has been set to 64-bit compile mode and the 64-bit CR redist. was installed. While opening the report after running the application, the VS throws the type initializer exception.

 

The error will go off when I install 32-bit runtime and everything works fine.

 

Why does this happen ? Why cannot the 64-bit mode application talk to the 64-bit CR version ?

 

CR Version - 13.0.5.891.

 

And the type initializer exception when thrown, tells you that log4Net issue. The application does not even know who log4Net is.

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

$
0
0


Hi,

  I use visual studio 2010 , sap crystal report 11, when I run report on my laptop and staging server many times, it doesn't have any problem, however, after I move to production server, I just run the report several times, it return this error message:

 

 

report2.jpg

 

This is part of code:

 

ConnectionInfo connectionInfo = new ConnectionInfo();
CrystalDecisions.CrystalReports.Engine.ReportDocument boReportDocument;

string rptFile = ((BaseApplicationPage)(this.Page)).Decrypt(this.Page.Request.QueryString["Name"]);

        connectionInfo.ServerName = "XXXX";

        connectionInfo.UserID = "XXXX";
        connectionInfo.Password = "XXXX";


                    boReportDocument = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
                    boReportDocument.Load(Server.MapPath("~/Crystal/" + rptFile));
                    CrystalReportViewer1.ReportSource = boReportDocument;


                    TableLogOnInfos tableLogOnInfos = CrystalReportViewer1.LogOnInfo;
                    foreach (TableLogOnInfo tableLogOnInfo in tableLogOnInfos)
                    {
                        tableLogOnInfo.ConnectionInfo = connectionInfo;

                    }

 

 

/CrystalReportViewer1.RefreshReport();

I tried to add refreshreport before, however, it popup parameter window everytime when I click on next page on the report, how can I refresh the report without popup parameter window when I click on next page in the report?

 

Could you tell me how to solve this problem on production server please?  is in hurry because is production server..

 

Thank you

Kelvin

How to use integrated security in report viewer from C# winforms

$
0
0

My c# winforms use a report viewer to access crystal reports. Basically I have a Crystal Reports ReportViewer placed on a winforms. I pass to it the report i want to run. I load the report. I load various parameters from the apps config file to set up the connection info. I update the data source to ensure it is pointing to the correct database. I set the logon object to the users proper credentials and set my criteria and call the asmx file which in turn runs the report and sends the data back to the viewer form.

 

Everything works fine as long as i use sql server authentication. Here is my connection properties being set.

 

      public void RetrieveAppSettings()

        {

            connectionInfo.ServerName = ConfigurationManager.AppSettings["DatabaseServer"];

            connectionInfo.DatabaseName = ConfigurationManager.AppSettings["DatabaseName"];

            connectionInfo.UserID = ConfigurationManager.AppSettings["DatabaseUserName"];

            connectionInfo.Password = ConfigurationManager.AppSettings["DatabasePassword"];

            reportServer = ConfigurationManager.AppSettings["UAReportServer"];

            reportSource = reportServer + "/" + reportName + "Service.asmx";

        }

 

Now i want to switch to Windows Authentication for sql server. So i change the connection string in the apps config file and set Integrated Security=True. I run the app and the app starts up and correctly connects to the database. I click on a report from the menu.I loads the viewer and tries to run the report but it is unable to log in. I get the database login dailog box from Crystal Reports being displayed waiting for the proper login information..

 

Here is how i changed the code.

 

    public void RetrieveAppSettings()

        {

            connectionInfo.ServerName = ConfigurationManager.AppSettings["DatabaseServer"];

            connectionInfo.DatabaseName = ConfigurationManager.AppSettings["DatabaseName"];

            connectionInfo.IntegratedSecurity = true;

//            connectionInfo.UserID = ConfigurationManager.AppSettings["DatabaseUserName"];

//            connectionInfo.Password = ConfigurationManager.AppSettings["DatabasePassword"];

            reportServer = ConfigurationManager.AppSettings["UAReportServer"];

            reportSource = reportServer + "/" + reportName + "Service.asmx";

        }

 

What am i missing here? What datasource type do i have to use, ADO,Net, SQLOLEDB, SQL Native client?

 

Bill

API to Enumerate Shared Parameter Prompts

$
0
0

Version: SAP Crystal Reports, developer version for Microsoft Visual Studio (version 13).

 

Issue: It is possible to create subreports that share the same parameter prompt (see image below); however, I have not found a way to determine this relationship using the Crystal Reports .NET API. You can certainly find all of the duplicate subreport parameter names, but that in no way means that the parameters are going to be grouped together by the parameter prompt UI.

Single Prompt for Multiple Parameters with the Same Name 2.jpg

Question: Is it possible to use the Crystal Reports .NET API to enumerate prompt parameters that will be grouped by the parameter prompt UI?

 

Thanks

 

Regards,

 

Michael Cessna

Label height wrong

$
0
0

Since we moved to Crystal 13 all the label reports are not printing correctly anymore.

If we have a report (e.g. Herma 4450) printing 3x9 labels the last label on the page is almost half a label height off.

Has anything changed in printing labels, do we have to recreate all the reports?

 

Thomas

Problems with subreports after changing from access .dbf to access .accdb

$
0
0

Hi - I have been running Win 8.1, VS Studio Ultimate 2012 and CR Reports SP4 quite happily now for a year or more. My app has a VB.net front end which modifies Select and Sort strings before running 1 of 52 reports in the Viewer. The database used was Access jet, which sadly has just been upgraded to Ace (Access 2007 +). I used the modify database location to change the .dbf to .accdb and this worked quite happily for 49 of the 52 reports. The 3 reports which failed all had sub reports.

 

When trying to run the failing reports these I now get the message. 'Not implemented. Error in file temp_............rpt: Operation not yet implemented.

 

I have upgraded the environment to SP12 - it fails, same error message.

If I try to run the report in CR2011 it works just fine, including sub-report.

If I remove the sub-report it works fine.

If I remove the sub-report and add any sub-report from scratch it fails - same error message.

 

Any help will be well received, I've no idea how to even try to move forward.

 

BTW this is a commercial app.

 

Regards - Derek Hall


Export dialog opens behind report viewer window

$
0
0

I have a problem with a web forms web site running on Windows Server 2008 R2 with IIS 7.  The site uses Crystal Reports for VS version 13.  It has a page containing a report viewer control which displays reports just fine.  But when the user clicks on the report viewer's export button, the export dialog opens up behind the report viewer page.  How can I modify this behavior so the dialog pops up on top of the report viewer page?

CrystalReport crash on windows Server 2012 R2

$
0
0

I have a software developed with micrsoft visual studio 2010, mysql and Crystal Reprot for vs2010 (13.0.10). When I run the application on Windows Server 2012 R2 (64Bits), generates an error: Can not load the database. The data I have them in a dataset but not displayed. Reportviewer opens the vacuum. Now install the merge modules and XML driver, the machine vistual java, I tried everything, but nothing works. Not to do. I appreciate the help if someone already happened by this problem.

Time datatype not showing in the Crystal Report VS2013

$
0
0

I have a weird problem with regards on Crystal Report bundled at visual studio 12 and I'm using CRforVS_13_0_12. I'm trying to create a report which is the daily time record (TeacherID,date, time in, time out).

 

But after i include the table in the crystal report database expert, All TIME column not showing up. I tried several test if the cystal report is connected in the database for example i try to convert the TIME into DateTime then "Verify database" and oppps the Time columns (which is converted into DateTime) was shown up.

crystal visual studio viewer not working in iPhone 6

$
0
0

Hello,

 

I've been using the visual studio viewer for crystal reports just fine for a few years and on multiple devices including iPhone 4 and 5. However, I have been testing my app on the iPhone 6 and the report viewer launches in a new tab, however, content is never displayed. The iPhone 6 is running the same iOS (8.1) as my iPhone 4s model and the viewer works just fine in the iPHone 4s model but does not render in the iPhone 6.

Does anyone know if there is a setting in iPhone 6 that needs to be engaged? Or does SAP need to update the viewer to accommodate whatever hardware/device change has occured with the iPhone 6?

 

Thans in advance,

Mark

Time datatype not showing in the Crystal Report VS2013

$
0
0

I have a weird problem with regards on Crystal Report bundled at visual studio 12 and I'm using CRforVS_13_0_12. I'm trying to create a report which is the daily time record (TeacherID,date, time in, time out).

 

But after i include the table in the crystal report database expert, All TIME column not showing up. I tried several test if the cystal report is connected in the database for example i try to convert the TIME into DateTime then "Verify database" and oppps the Time columns (which is converted into DateTime) was shown up.

Invalid Export Options when exporting crystal report document to html

$
0
0

Any ideas why an export of a crystal document to html would stop working after updating the crystal enging to crystal 2010.

I am getting an error message that says Invalid Export Options.  below is the code that has worked fine for years but doesn't now.  I also included hte set html method that is being used to set teh document up as html.  This is a vb.net solution.

 

 

Public Function
PrintReportToHTML(ByVal strCrystalPath As String, ByVal ds As DataSet) As XmlStruct.HtmlReport        Dim crReportDocument As ReportDocument        Dim strMessage As String        Dim hshParams As New Hashtable        Dim table As DataTable        Dim row As DataRow        Dim keycolumn As DataColumn        Dim valuecolumn As DataColumn        Dim counter As Integer        Dim strkey As String        Dim strvalue As String        Dim MyByte() As Byte        Try             'Pull hash table values out of dataset          
table = ds.Tables(0)          
counter = 0           For Each row In table.Rows    strkey = table.Rows(counter).Item(0).ToString()    strvalue = table.Rows(counter).Item(1).ToString()    hshParams.Add(strkey, strvalue)    counter = counter + 1            Next            'reset counter to 0    counter = 0            'Parse crystal report name    strCrystalPath = strCrystalPath.Replace("/","")          
crReportDocument = New ReportDocument
crReportDocument = CreateReport(strCrystalPath, hshParams)            Dim strGuid As String = Guid.NewGuid.ToString            Dim HTMLBaseFolderName As String = RuntimeViewerDirectory & strGuid & "\"            Dim HTMLFileName As String = "Report"              SetFormatHtml(crReportDocument, False, False, HTMLBaseFolderName, HTMLFileName, False, 0, 0)    crReportDocument.Export()    crReportDocument.Close()    crReportDocument.Dispose()
crReportDocument = Nothing            Dim ImageData As New XmlStruct.HtmlImageData    ImageData = Me.HTMLImagesPrep(HTMLBaseFolderName & strCrystalPath.Replace(".rpt",String.Empty) & "\images")            Dim MyString As String    MyString = OpenHTMLandRead(HTMLBaseFolderName & strCrystalPath.Replace(".rpt", String.Empty) & "\", HTMLFileName & ".html", ImageData)            Dim HtmlReport As New XmlStruct.HtmlReport              HtmlReport.HtmlText = MyString    HtmlReport.HtmlImages = ImageData.HtmlImages            Return HtmlReport        Catch engEx As LogOnException              strMessage = "RPT:" & strCrystalPath & " - Incorrect Logon Parameters. Check your user name and password."            Throw New Exception(strMessage)         Catch engEx As DataSourceException    strMessage = "RPT:" & strCrystalPath & " - An error has occurred while connecting to the database."            Throw New Exception(strMessage)        Catch engEx As EngineException             strMessage = "RPT:" & strCrystalPath & " - " & engEx.Message            Throw New Exception(strMessage)         End Try    End Function
Private Sub SetFormatHtml(ByRef MyReport As CrystalDecisions.CrystalReports.Engine.ReportDocument, _
ByVal EnableSeperatedPages As Boolean, _
ByVal HasPageNavigator As Boolean, _
ByVal HTMLBaseFolderName As String, _
ByVal HTMLFileName As String, _
ByVal UsePageRange As Boolean, _
ByVal FirstPageNumber As Integer, _
ByVal LastPageNumber As Integer)
'Set the destination type to HTML
Dim Options As New CrystalDecisions.Shared.HTMLFormatOptions
If UsePageRange Then
End If
End Sub

 

Message was edited by: Ludek Uher

WPF Crystal Report Print Button Greyed Out

$
0
0

I embeded a crystal report viewer to my WPF window application.

In some client computer, when load the report, it can display the content in the viewer, but the print button is greyed out

Why the print button is greyed out in some computer but pressable in other computers.

How could I enable the greyed out button? Thanks in advance


from VS2010 to VS2012 crystal report problem

$
0
0

Hi guys,

 

I have a problem in my working system now, first i created this system into VS2010 and all works fine and after a year i decided to use the VS 2012 to enhance the system itself. The system works fine when i incorporate it in VS2012 and everything goes well until i need to add a new report to my system. Now the problem is when i run the enhance system and i generate the report, it says "Load Report Failed". I research all things that i needed to fix it up but their resolution does not suit to my problem. can anyone help me about this?

 

Here are error says:

 

CrystalDecisions.Shared.CrystalReportsExeption: Load report failed. --->

System.Runtime.InteropServices.COMExeption: Unsupported Operation. A

document processed by the JRC engine cannot be opened in the C++ stack.

  at

CrystalDecisions.ReportAppServer.ClientDoc.ReportClientDocumentClass.Open

(Object&DocumentPath, Int32 Options)

  at

CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.Open(Object

&DocumentPath, Int32 Options)

  at

CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDo

cumentisOpened()

  ---End of inner exception stack trace---

  at

CrystalDecisions.ReportAppServer.ReportClientDocumentWrapper.EnsureDo

cumentisOpened()

  at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String

filename, OpenReportMethod openMethod, Int16 parentJob)

  at CrystalDecisions.CrystalReports.Engine.ReportDocument.Load(String

filename)

 

 

 

Please help me about my problem.

Dynamic Parameter Requires Additional Login

$
0
0

I'm working on a WinForms viewer for a MySQL database with VB.Net 2010 and CR2011 (14.0.4.738 RTM and using Engine 13.0.9.1312).

 

I have recently converted a CR8.5 report from about 8 years ago to CR 2011.  The original was a Union Query and did not work in the current version properly (ignored everything after the UNION ALL), so I converted to a Command.  See here for some more info.  The only difference in that thread is that I had to remove the parameters from the Command because when I edited in the designer to make one a Dynamic parameter, the prompts came up twice when I edited it in the designer level so I removed it from the command to use only the designer level prompt (the number of records does not slow the report down much so I am ok with it this way for now).

 

It currently works fine in the designer.  All the numbers and formatting is correct.  When I open the program, it asks for a database userid and password, logs onto the database and displays some information on screen from the database.

 

When I run the report in my viewer, it prompts me for a second userid and password using an Enter Parameter Values screen that shows the Server and Database greyed out, the program name and the field for the dynamic parameter.  I enter the proper userid and password and I get the correct information in my database.  The dialog also includes the Use Single Signon Key  of False that is also greyed out (I don't know how to set this).

 

I am logging into the database using code to set/change the database, server, userid and password properly.  When I convert the parameter back to a static parameter, it doesn't prompt me for the userid and password when runnign the report, and it does give me the same correct information from the database properly.

 

Does anyone know what might be causing this extra log in prompt?  I was hoping to add dynamic parameters to more of my reports.

 

I've done some searching but all the information that comes up so far has been releated to Business Views, I think in the Business Objects program itself and one solution is to enter a database userid and password associated with the Business View.  Because I am only using Crystal directly with a MySQL database, I can't use that solution.

 

Any help is greatly appreciated, TIA rasinc.

Crystal Reports Migration from Windows 2003 (IIS6) to 2008R2 (IIS7)

$
0
0

Hello All,

 

I'm quite new to Crystal Reports, but I'm hopeful that someone will be able to assist. Surely my challenge will be an easy one to overcome!
Keeping in mind, I am not a programmer or developer!

 

We have a Windows 2003 server (IIS6) running one of our report websites. When I joined the company, there was absolutely zero documentation (of course!) related to this site.

 

I'm attempting to move this site to Windows 2008R2 server (IIS7). I simply copied the web files over, and created a new site/application pool within IIS7 on the new server. This is the error I receive when browsing to the site:

 

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

 

Now, I see the referenced files above in the Windows\assembly directory of the W2003 server.

 

What do I need to get this site working on the W2008 R2 server?

 

Thanks,

 

Phil

Need to set connection string's Application Name in crystal report viewer

$
0
0

My company has been using teh crystal report viewer. We've never understood why, but the connection string the crystal report engine is using is specifying an application name that is the name of the executing assembly. We'd like to change this to the actual name of our product (to make it easier to track using Sql Profiler with other Sql Queries made by our application).

 

 

 

Is there a way to specify the Application name in the TableLogonInfo object?

Version of CR report viewer still shows 13.0.2000 for CR for VS2013

$
0
0

We have a web site that is in Windows Server 2008 R2, it has VS2010 and Crystal for VS2010 (CRforVS_13_0_2.exe)

 

when I see a web page that has a CR report viewer component, I see

<%@ Register assembly="CrystalDecisions.Web, Version=13.0.2000.0 .. PublicKeyToken=692FBEA5521E1304" namespace="CrystalDecisions.Web" tagprefix="CR" %>

 

when I see the reference, it says Version=13.0.20000.0  and Runtime=v2.050727.

Looking at the CrystalDecisions.Web.dll file version=13.0.1.220, same product version, size = 448 KB, with date timestamp of 3/3/2011.

 

 

Now we are in the process of migrating this to Windows Server 2012 R2, installed VS2013, and also installed the latest CR for VS2013 (CRforVS_13_0_10.exe).

However, when I create a website, a web form, and form, and I add a CR Report Viewer component, I see the  same entry as the one in the "old" server, i.e, an entry with the same Version 13.0.20000.0 is created and even same PublicKeyToken.

shouldn't this be version 13.0.10?

Any help is much appreciated

Cecilia

Viewing all 2556 articles
Browse latest View live


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