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

Temp file left behind after export

$
0
0

I have some code that runs a report and exports it as a pdf to the end users browser from an ASP.net web application.

 

Here a sample of the code.

 

var report = new CrystalDecisions.CrystalReports.Engine.ReportDocument();

report.Load(HttpContext.Current.Server.MapPath("./Report.rpt"));

//code to populate report

report.ExportToHttpResponse(ExportFormatType.PortableDocFormat, Response, false, Page.Title);

report.Close();

report.Dispose();

Response.End();

 

Everything works fine with the exception that it leaves behind a single temp file in the C:\Windows\Temp folder on the server. The file has a name like tmp7CE8.tmpis and is the pdf version of the report.

 

All the other temporary files that get generated by Crystal are removed once report.Close(); and report.Dispose(); are called.

 

This is filling up the C:\Windows\Temp folder and the files need to be manually deleted.

 

I know that I could setup a task to do this on a regular basis and we have as a temporary solution.

 

Should this file be left behind? I figured that since it was exporting directly to the Response stream that the temporary file would not be required once that has occurred.

 

I am using CrystalDecisions.13.0.0

 

Thanks.


Top 10 Conditional Formatting

$
0
0

I am using Crystal Reports 2013. I have 6 fields that make up the data of my groups. What I would like to do is highlight the top 10 numbers between these 6 fields. Theoretically it is possible to have all 10 in one column. I have included a picture to hopefully help explain my report. Any ideas on if this is possible in Crystal Reports?

Crystal Reports 12 - .Net 4.5 - LogOn Failed

$
0
0

Hi

  I have an app that I am deploying on the end-user's machine. The app also calls a couple of crystal reports reports (non- embedded). The reports are running fine on the dev machine. But when I deployed it and run from the user's machine, 'LogOn Failed - Please try again" error is thrown when the report is loading.

I installed Crystal Runtime (SP7) on the client machine.

I installed the SQL ODBC (native client) on the user's machine.

But the error persists.

The reports are running OK on my (dev) machine.

 

I would appreciate any help in this regard.

 

Thanks

Kanthi

Enable logging for Crystal Reports runtime engine

$
0
0

Hello -

 

I have a Windows 2012R2 IIS server with Crystal Reports Runtime Engine for .NET Framework (32-bit and 64-bit) installed. It interacts with applications leveraging an application pool using .NET v.2. I'd like to enable logging within this application. I see the folder C:\Program Files (x86)\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Common\SAP BusinessObjects Enterprise XI 4.0\logging.

 

I followed the instructions in the link below, adding the registry entries and then rebooting the server. However, no logs have been generated.

 

1470978 - How to enable/disable crpe logging for the Crystal Reports .NET SDK

 

SAML Response from SAP Cloud Identity

 

Has anyone gotten logging working? Thanks in advance.

Job HasRecords property

$
0
0

Hi!

 

If i wanted to detect if a print job (printer, screen or file) is empty, what are my options? I found a HasRecord property. Oddly enough, accessing this property will return a true if the report has records, but throw an exception if the report has no records. I can certainly handle that, but it seems sortof odd:

 

rc=jobb->OutputToPrinter(1);

//

if(!rc)

{

  AfxMessageBox(jobb->GetLastError(), MB_OK|MB_ICONSTOP);

}

else

{

  try {

  rc = jobb->m_Report->HasRecords;

  }

  catch (System::Exception ^e)

  {

  TRACE("HasRecords() Exception %s", e->Message);

  rc = false;

  }

}

(VS 2012, MFC, C++)

 

First-chance exception at 0x776c4598 (KernelBase.dll) in Lp.exe: Microsoft C++ exception: CSResultException at memory location 0x00886148.

First-chance exception at 0x776c4598 (KernelBase.dll) in Lp.exe: Microsoft C++ exception: [rethrow] at memory location 0x00000000.

First-chance exception at 0x776c4598 (KernelBase.dll) in Lp.exe: Microsoft C++ exception: _com_error at memory location 0x0088b10c.

First-chance exception at 0x776c4598 (KernelBase.dll) in Lp.exe: Microsoft C++ exception: _com_error at memory location 0x0088aee4.

First-chance exception at 0x776c4598 (KernelBase.dll) in Lp.exe: Microsoft C++ exception: _com_error at memory location 0x0088af4c.

First-chance exception at 0x776c4598 (KernelBase.dll) in Lp.exe: Microsoft C++ exception: _com_error at memory location 0x0088af94.

A first chance exception of type 'CrystalDecisions.CrystalReports.Engine.ParameterFieldCurrentValueException' occurred in CrystalDecisions.ReportAppServer.DataSetConversion.dll

 

I also saw that someone else had similar issues: Crystal Reports Missing Parameter Value

 

Any ideas? Am I going about this the wrong way?

Hyperlink error internet explore 11

$
0
0

I have made a crystal report using version 11

 

Based on the field ticketId I created a hyperlink formule which bascially says: 'http://websiteExample.com/form=3&ticketid='+{opdracht.TicketId}

 

If I run the code in crystal reports 11, it works.

Now we copy the report to the website and now when we click on the ticketId, in internet explore it shows the default ticketscreen like if you didn't select a ticket yet.

 

In chrome however it works fine and automatically opens the right ticket.

 

I do not know which webviewer version of crystal reports viewer they use.

 

How can I solve this?

Crystal Report 8.5 to CR 2013

$
0
0

we have several crystal reports created in 8.5 versions, we are thinking to upgrade them to .NET (visual studio 2013)

after download 30 days trial full version of SAP Crystal Reports 2013, I remapped the data and odbc connection, and saved them in new report version. But when using my win app (32bit) to revoke the reports, I am no longer can view the reports, I kept getting error:

"Invalid report version", can someone help me?

 

Another problem, when opening the Visual studio 2013 and load one of my crystal reports in 8.5,

I was able to view it in a design mode, but that's all I can do, I can't remap or change odbc connection

am I missing something here?

 

 

thanks

Re-prompted for database login

$
0
0

Hello

If I display, via VB .net report viewer control, a report generated with VS .net then I'm re-prompted to login to the database at runtime. If I load and save the same report in V9 of Crystal Reports application, no re-prompt and the report is displayed ok.

 

PS. I am changing the server and database names at runtime.


CR LogonFailed, Version X86 vs X64

$
0
0

Hi guys,

 

My setup is:

- Visual Studio 2013 Ultimate
- .NET Framework 4.0

 

Crystal Developer X86

My Crystal Version is: 13.0.2000.0
My File Version is: 14.0.2014.1720

 

I Need a help ..


My reportis givingproblem afterprinting.It displays a message FailedLogin.If I change tox86platformreportingprintcorrectly, but I need to setX64platformorANYCPUbecausemy projectgives error"System.OutOfMemory" exception ..


How can I solvethis problem, I need to runmy projectonX64platformand use theCrystalX86..InFramework 4.5there is a"32 bitPreferences" option butusetheFramework 4becausemyMySqldatabasedoes not supportthe.NET Framework4.5

Report Viewer Winforms .Net

$
0
0

I am curious as to why the viewers resolution is so bad on images and text that justified.  I set dates to some of the custom setting like Day of the week, month, day and year.  When they are displayed in the viewer the month and day run together and you can barely read them. They print like this too and there is no real way to force an extra space between the fields because it is embedded in the format of the date.  This is very disappointing is there a plan to improve any of this?  Images aren't displayed using GDI bicubic.  I really wish the .NET viewer was even close to the native win32 viewers of old.  I know that development on Crystal Reports has really slowed over the years but I am not really wanting to move to something else.

Multi Threaded .Net Viewer

$
0
0

I ended up using the viewer but had to create my own toolbar and implement my own look and feel.  When I have a very large report and I click the go to last page button the viewer is not threaded so I have no way to stop the report. I must wait for the is to reach the end. What are my options to fix this issue?  When I say large report I mean large.  I have been able to use the native win32 viewer to print a report well over 100,000 pages.  The new viewer is not nearly as robust.  There has to be some options I am not the only person still using crystal reports but the .NET version is a step back from the ocx com object of old. I just need something that will allow me to perform the things I did under 11.5.  Not being able to stop the report in the middle of navigation is a huge problem.  Any ideas?

End user and Visual Studio

$
0
0

Hello, my developer are using MS Visual Studio. For the reports in the application Crystal Reports is used. For my clients is, conform the advice of the developera runtime on their system necessary. My clients are cities with a large and sophisticated network where my products are only a minor part. Most of them do not use Crystal reports but products as Cognos. So they need install the runtime exclusive for our software.

Now I have aproblem: First the netwerkmanager is not happy to install the runtime on the server. For the need to write a special installation package te install it on all the servers. I found only a complete installation package that cannot be controlled by the netmanager for instance the map, rights et cetera.

Editing .rpt files in Visual Studio 2015

$
0
0

Hello

 

I would like to find out if there is any way to integrate Crystal Reports with VS 2015 (Community, latest version) in terms of editing .rpt files? I have a bunch of old reports and I would like to make changes to some of them, but since I no longer have VS 2008 that would allow me to edit them I am wondering what are my options?

This field name is not known. in IIS app (asp.net) VS 2010 , CR 11g

$
0
0

Hi,

 

   Am developing an ERP web application, while debugging the application via localhost the Crystal report is working fine. I configured the application in IIS, and now the Crystal Report is not working , it throws the following error (Please see the screen shot).

 

Error.jpg

 

Please assist me in this matter

Barcode shown in preview but not printed on physical printers

$
0
0

Hi all,

 

 

 

I have the problem that the barcode (code 128-eh) is correctly shown in the preview, but when I print out the report on a physical printer (i. e. Kyocera FS-1030D) the barcode is not printed. We use Windows 2008 R2 and 32 bit runtime.

 

 

 

I installed the newest runtime (13.0.14) but this didn't solve the problem. When I export the report from the preview to pdf, with the builtin pdf export, the pdf contains the barcode.

 

 

 

What could be the reason for the behaviour?

 

 

 

 

 

Best regards

 

 

 

Markus


Subreport truncation

$
0
0

Hello,

 

I have a report that has 4 subreports (the same subreport imported 4 times) in it, which are dynamically arranged/showed/hided during runtime. The problem is that the subreport has many records, it is expanded to multiple pages (7-8 pages) and time to time some records are missing. For instance I have the record with number 540 in the end of the page. After it I have to have the record with number 545. The numbers aren't chronologically because I have some filters applied. The space between the record 540 and the page footer section may permit to have there the record 545, but suddenly it disappears. And in the next page I have the record 560. The order should be 540, 545, 560.

 

This problem doesn't appear every time. For instance is possible to have the first 4-5 good pages and the missing to appears in page 6, or to have the missing in the first page, or to have the whole report correct. The situation differs.

 

I found a workaround. During runtime, if I export the report as .rpt file, with data in it, it seems that the records are displayed correctly. It seems that the export computes correctly the space needed to display the last record in each page.

 

I attached a printscreen to see how the missing record appears in the exported version. The left side has the report generated during runtime and the right side has the exported .rpt file and then loaded in a report viewer.

 

I don't have any clue why the subreport is truncated when page changes. The workaround is a little bit weird. I would like to have the report generated correctly during runtime.

 

The report is now edited using Visual Studio 2013. Can be a problem that it is created in a version prior to 2013? Should I convert it to a newest version?

 

PS: sorry for my English. I hope I explained well.

 

Thanks in advance,

Gabi

Visual Basic 2013 + A SAP Crystal Report 13

$
0
0

Our program has been developed on Visual Basic 2013 + Access. Our server runs on Windows 7 Network. We have added SAP Crystal Report 13 to it. The program itself runs on Windows 7 but we cannot generate any reports.

When we installed the program on a Windows 10 notebook, no problems were reported.

We installed CRforVS_redist_install_32bit_13_0_14 on the server and also on a notebook running on Windows 7 but we cannot generate reports.

What would your advice be?

Thank you.

Out of Memory?

$
0
0

I am trying to create a report consisting of primarily pictures.  I am using Visual Studio 2013 and VB.Net.  I have placed the Picture control in the report and I am changing the picture by changing the path via the Graphic Location. I have reduced the image sizes down to 1200 x 900 pixels.  I am disposing of the report at the end of the run.  However, my problem seems to be that the Picture control stops showing the pictures during the creation of the report.  Please see attached screenshot.  I am watching memory consumption via Task Manager.  Once memory usage gets around  800 MB  for the application, then the application will fail with an OutOfMemory Exception.  Is there a way to tell Crystal Reports to release the memory for a page once it is no longer being displayed?  How do you best handle creating a Catalogue of Pictures using Crystal?

 

Thanks,

-Vernon

ReportDocument.Refresh() causes "Missing values parameters" exception

$
0
0

Hello Everyone,

I hit a wall while trying to output a crystal report in PDF format. After the report is loaded, I want to use the refresh method of the ReportDocument object so that the report can show the most update data then export it in PDF. But what  I had been experiencing is that whenever I used the Refresh method the code always throws an exception in the line where the report needs to be exported in PDF format. When I don't use the Refresh method, the code doesn't break in the line where it has to export the document in PDF. I would like to know what alternative there could be. Because the code does what it was intended, which is connect to a database, run a stored procedure and then output the Crystal in PDF. It is just that the data shown is not up to date.

 

Any help would be truly appreciated.

 

Here the code:

ArrayList ParameterArrayList = new ArrayList(); //Report parameter list. Needs to be declared even if no parameters is being passed to the report

            CrystalReportBase objReportBase = new CrystalReportBase(); //this is custom class that loads a crystal report, connect to a datasource, pass parameters to a report, and return a a return ReportDocument object

 

           ReportDocument objReportDocument = new ReportDocument(); //Report document

            try

            {

 

 

                string filterExtension = "*.rpt";

                string substringInFileName = "M1_2_PhoneAnswerPerformance";

 

                /*The report with two parameters. */

                ParameterArrayList.Add(0);

                ParameterArrayList.Add("No"); //Parameter 1 with input 1.

                //ParameterArrayList.Add(1);

                //ParameterArrayList.Add("1"); //Parameter 2 with input 1.

 

 

                //retrieve connection information from the web2 connection string

                objReportBase.ServerName = serverConnectionInfo.DataSource;

                objReportBase.UserID = serverConnectionInfo.UserID;

                objReportBase.Password = serverConnectionInfo.Password;

 

 

                List<ReportFile> reportFiles = Utilities.GetFilesFromDirectory(@crystalPhoneReportPerformancePath, filterExtension, substringInFileName).ToList();

                foreach (ReportFile reportFile in reportFiles)

                {

                    objReportDocument = objReportBase.GenerateReport(reportFile.FileName, ParameterArrayList, crystalPhoneReportPerformancePath);

                    objReportDocument.Refresh(); Using this line causes....

                    //Save output report

                    objReportDocument.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.PortableDocFormat, string.Format("{0}{1}{2}", @crystalPhoneReportOutputMemberServicesPath, Path.GetFileNameWithoutExtension(reportFile.FileName), ".pdf")); ...the code to break in this line

 

 

                    //Export this file in Excel format as well

                    if (reportFile.FileName.Contains("CLHS_M1_2_PhoneAnswerPerformanceGraphs_Combined"))

                    {

                        objReportDocument.ExportToDisk(CrystalDecisions.Shared.ExportFormatType.ExcelWorkbook, string.Format("{0}{1}{2}", @crystalPhoneReportOutputMemberServicesPath, Path.GetFileNameWithoutExtension(reportFile.FileName), ".xls"));

                    }

                }

 

 

                //release those resources

                objReportDocument.Dispose();

                objReportDocument.Close();

                objReportDocument = null;

      catch{

Crystal Reports Runtime No Longer Functions

$
0
0

We are running Crystal Reports runtime engine for .NET 64 bit.  We currently have version 13.0.15.1840 installed on our production server.  And the server is Windows Server 2008 R2. 

 

At the end of the business day on Monday, September 28th, Crystal Reports runtime stopped rendering our PDF reports in production.  We are running an ERP application (IFS) and most of our reporting is done in Crystal.  We use Crystal Reports 2011 for report development and a vendor (IFS) supplied WEB service for report generation.  There are no errors in any IIS log files or other application/infrastructure log files.  No changes were made to the server, Crystal or other infrastructure components.

 

We were running version 13.0.13.1597 when the issue occurred but have since upgraded to 13.0.15.1840.  We are running 13.013.1597 on our development server without issue.  We worked with the vendor yesterday and installed version 13.0.1.220 which worked - PDFs were rendered and reports printed.  However, version 13.0.1.220 causes other issue for our application and it cannot be used in our environment.

 

Has anyone experienced a similar problem?  And how did you resolve it?

 

Steve

Viewing all 2556 articles
Browse latest View live


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