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

Asp.net CrystalReportViewer No Cancel Button!

$
0
0

I am using  Asp.net CrystalReportViewer to display my RPT files.

 

When i let CR prompt for the parameters, there is no way to get off the parameter screen.

There is no cancel button!!!

 

so the users only option is to hit the browser back button to get off the screen.

 

Any ideas?

 

Thanks, Jon


How to force larger font size for PDFs with CR 13

$
0
0

There is flag in the windows registry that can be set to force CR to not shrink the font when converting to a PDF.

 

Similar discussion:

http://scn.sap.com/thread/3422863

 

All I need to know is where is this flag set in the newer version, 13?

 

Also, I am wondering if there is a phone to call help desk for CR instead of posting discussion questions? Also is there a place were I can download the documentation that would also contain the answer to the question about setting forcing a larger font size?

Crystal Report Run but does't display in crystalreportviewer

$
0
0

We have a web app that runs CR reports. When a report runs locally crystal report display in report viewer. if i host app to server the crystal report not display in viewer(Forever to load).

 

The project is in VS2010, C#, using CR Version=13.0.2000.0  for VS2010, and .net 4.0. However, even if it does resolve the issue, I can't imagine telling customers they need to jump through those hoops simply to update to the latest release of our reports.

 

Any suggestions? Additional information needed?

Failed to load database information. Error in File ReportName {E420E88A-5947-4925-844E-75E6311D3EB3}.rpt: Failed to load database information.

$
0
0

Hi All,

We've been running CR for VS2010 for a number of years in our web app without any issues. Using the same code we recently upgraded our application to support x64 and we have run into this error on our QA servers:

 

Failed to load database information. Error in File ReportName{Guid}.rpt. Failed to load database information.

 

Here's are server setup:

Windows Server 2012 Datacenter x64

SAP Crystal Reports Runtime Engine for .Net Framework (64-bit)

IIS 8

 

Database Server

Oracle 12c

 

Interestingly, Crystal Reports works fine on our dev machines and it also works on our dev machines if I connect to the QA Database server directly. So I've ruled out any Oracle issues.

 

I believe the permissions are set up correctly for CR to run, but I'd like to know what permission CR needs to run. I can't find a definite answer reading the forum posts or on the WIKI.

 

I've used Process Monitor and there seems to be some permission issues with the uf12manager.DLL. See attached document.

 

I'm really stuck here and any help is appreciated.

 

Thanks!

Crystal Report slow to print VS2012 VB

$
0
0


I notice another discussion where slow print was mentioned.  Its suggestion was to use Crystal ReportsAppServer but its code was more than I need and I did not pick out what was needed for my app.   I looked around but cannot see much about how the ReportAppServewr is used.

Currently I have a little routine that I can call to print, passing in the query and report name:

 

Dim ds AsNewDataSet

Dim da = NewSqlDataAdapter(qry, login.conStr)

da.fill(ds)
Dim Rpt AsNew CrystalDecisions.CrystalReports.Engine.ReportDocument()

Rpt.Load(Path & reportname)

Rpt.Refresh

Rpt.SetDataSource(ds.tables(0))

Rpt.PrintToPrinter(1,true,0,0)

 

Would changing this to use the ReportsAppServer make the print work faster?  And the big question how do I do it?

 

Peter

Viewing Crystal Report 2011 sdk integration with portal

$
0
0

Hi Everyone,

 

I'm in process of migrating the crystal report 2008 to 2011 and migrating the DB SQL Server to Oracle 11i.

Currently the reports are accessed through by portal by an ODBC connection. In this case all servers (App, DB & .RPT) are placed in single place so there could not be any problem in integration i guess.

 

Now, the customer wants to view the report from the portal with the source as universe. Here is my question how I can achieve this. Since the source is uinvers definitely it'll be in BO Repository how i can integrate with the asp page portal to view the report either by placing the .rpt file in the public folder or by accessing BO repository?

 

Can anybody help in this regard?

 

Thanks in advance

Trouble connecting to RAS from Server 2012

$
0
0

http://devlibrary.businessobjects.com/businessobjectsxi/en/en/RAS_SDK/rassdk_net_doc/doc/rassdk_net_doc/html/BindingScenarios16.htmlHello

 

Hello All,

 

I have been migrating a web application from Server 2003 to Server 2012.  The only part that does not seem to work correctly is the Crystal Reports.  I have Crystal Reports 10.  When I try to create a session and pull down a report, the web application crashes and does not give me an error.  I have tried stepping through the debugger and looking at the event logs and I am not gleaning any useful information.  Oddly enough when I pull a report from our RAS and put it on the new web server and make a web form that loads it from locally (embedded) it works, but point it to RAS and it crashes every time.  The code that pulled from RAS worked just fine on our 2003 server.  The original developer appears to have used the code at above link to load reports from RAS.

 

Is connecting to RAS supported in Crystal 10, IIS 8, and Sever 2012?

Is there a special permission that needs to be set up on the RAS server or in the Server 2012 web server?

Is there any reason I should change the code or anything else I need to install on the Server 2012 web server beyond installing Crystal 10?

 

Any tips for fixing or troubleshooting this?  I am getting close to scrapping the RAS server though I really don't want to do that.

Application stops working - have to reboot server

$
0
0

We are running vs2005 and vs2008 on a windows 2003 server. We have some applications that have embedded crystal reports (11.5 XI and Cr2008).

 

From time to time crystal reports is not working ie is not displaying the reports. We are passing parameter to the reports and for most part it works fine.

 

Suddenly nothing is being displayed when user runs the app and we have to reboot the server, then things are working again, till next time.

 

Wonder why this happens and is there something I should do within the application to prevent this. Could there be something that is filling up somewhere and at one point needs to be cleared? Thank you.

 

Here is sample code:

 

Try

            If Session("myCrystalReport1") Is Nothing Then

                BatchGuid = "{" + Session("BatchGuid") + "}"

                myCrystalReport1.Close()

                Dim myPath As String = (Server.MapPath("ProjectDailyReport.rpt"))

                myCrystalReport1.Load(myPath)

                myCrystalReport1.SetDatabaseLogon(System.Configuration.ConfigurationManager.AppSettings("CrystalReport_UserId"), System.Configuration.ConfigurationManager.AppSettings("CrystalReport_Password"))

                myCrystalReport1.SetParameterValue("BatchGuid", BatchGuid)

                CrystalReportViewer1.ReportSource = myCrystalReport1

                Session("myCrystalReport1") = myCrystalReport1

                CrystalReportViewer1.SeparatePages = True

                myCrystalReport1.DataSourceConnections.Clear()

            Else

                myCrystalReport1 = Session("myCrystalReport1")

                CrystalReportViewer1.ReportSource = myCrystalReport1

            End If

 

Protected Sub Page_Unload(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Unload

        Try
            myCrystalReport1.Close()
            myCrystalReport1.Dispose()
        Catch ex As Exception
            Message = ex.ToString
            Message = "Error closing Crystal report"
            ASPNET_MsgBox(Message)
        Finally
        End Try

    End Sub


APPCRASH Fault Module Name cslibu-3-0.dll version 13.0.3.612

$
0
0

This error occurs intermittently on our system.

 

Exception Code c0000005

Exception Offset d04a3

 

DynamicSig[1].Name=OS Version

DynamicSig[1].Value=6.1.7601.2.1.0.400.8

DynamicSig[2].Name=Locale ID

DynamicSig[2].Value=1033

DynamicSig[22].Name=Additional Information 1

DynamicSig[22].Value=e7dd

DynamicSig[23].Name=Additional Information 2

DynamicSig[23].Value=e7ddc721e6351d3dc9afd0cd5250996b

DynamicSig[24].Name=Additional Information 3

DynamicSig[24].Value=7140

DynamicSig[25].Name=Additional Information 4

DynamicSig[25].Value=71402f78aa99e841e8d3d332ad23fb9c

 

Full WER Crash report attached.

When setting ForceLargerFonts flag in the windows registry, the Text Objects are not wrapping text correctly.

$
0
0

Problem.png

I have set the ForceLargerFonts to support existing reports in CR 13. The problem with this is that now text objects with the Can Grow checkbox set are now cutting the farthest right character in half.

 

The ForceLargerFonts flag is located here:

1.Go and Set  HKEY_LOCAL_MACHINE\Software\SAP BussinessObjects\Crystal Report for .Net Framework 4.0\Crystal Report\Export\pdf and add DWORD ForceLargerFonts and set  value 1

 

I need to know what is causing this issue and how to resolve it.

Out of Memory - Printing Crystal Reports from Viewer VS2010 .Net 4 CR13.0.7

$
0
0

My test users have recently received the error Out of Memory when printing reports. Here is some information.

 

I have recently upgraded from

development machine: XP Sp3 VS2003 (CR for VS2003) .Net Framework 1.1 to Windows 7 32 bit SP1 VS2010 (CR 13.0.7) .Net Framework 4

production machines are Windows 7 64 bit 4gig+ RAM (CR 32bit 13.0.7 runtime)

 

The application is .NET C# WinForms

 

When doing some testing I have watched my application go from using 150MB to 250MB after the report has loaded in the CR Viewer that's ok but when I print from the viewer to Microsoft XPS Document Printer the memory used by my application spiked at over 1200MB !

The report had an image (only 17Kb) as a watermark on an underlay section but I removed that and the memory spiked at over 900MB.

 

I tested using a PDF print driver and the memory went from 250MB to spiking at 850MB.

 

Out of interest I ran some tests on the old set up XP VS2003 .Net 1.1 and the memory never went over 200MB.

 

I have been careful to design the reports properly, they even do less filtering than previously.

 

The MAX total records would be around 2500 with 600 pages in the report.

 

The database is SQL Server 2008 R2 and I am connecting the reports using ConnectionInfo and integrated security.

 

The reports are being closed and disposed I have code that tells me if even 2 reports are open at the same time

 

Where can I go from here to get the memory used down and stop these errors on the production side?

 

System.OutOfMemoryException: Out of memory.    at System.Drawing.Graphics.CheckErrorStatus(Int32 status)    at System.Drawing.Graphics.DrawImage(Image image, Int32 x, Int32 y, Rectangle srcRect, GraphicsUnit srcUnit)    at CrystalDecisions.Windows.Forms.PageControl.OnPaint(PaintEventArgs e)    at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer)    at System.Windows.Forms.Control.WmPaint(Message& m)    at System.Windows.Forms.Control.WndProc(Message& m)    at System.Windows.Forms.ScrollableControl.WndProc(Message& m)    at System.Windows.Forms.UserControl.WndProc(Message& m)    at CrystalDecisions.Windows.Forms.PageControl.WndProc(Message& m)    at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)    at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)    at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

How are support packs for SAP Crystal Reports developer version for Microsoft Visual Studio meant to be deployed and do they affect the physical report files?

$
0
0

If we have installed the Support Pack 1 runtime on a production machine, and then we install Support Pack 8 for Visual Studio on our developer machine, does that automatically update our .rpt files? And, does that mean we have to install the Support Pack 8 run time on the production machine? The problem we have is all of the versions are muddled. We have some developers using Support Pack 1, some using Support Pack 5, and some using Support Pack 8, but the production machine has installed Support Pack 1 runtime. The reports seem to be working but sometimes we get random errors like LoadReportFailed so we're not sure what could be causing it. What is the required process for managing these Support Packs? I've spent hours searching the internet and can't find any explanation of the management/deployment of the Support Packs and how they affect the physical .rpt report files and how the runtime and visual studio integration relate to each other and whether they need to be kept in sync. Any help would be very much appreciated.

Support of Visual Studio 2013

Crystal Report for VS SP6 crashes randomly on Windows Server 2008 R2

$
0
0

Dear community,

 

I'm in front of a very incomprehensible printing issue.

 

I have a .NET (4.0) application, hosted on a server, that generates reports and spooled them to a dedicated printer spooler server.

 

I'm using Crystal Report XI SP6 for the document's generation.

 

 

This application run perfectly on Windows Server 2003 without any crash.

 

 

Now, both processing and printer spooler servers have been migrated on Windows Server 2008 R2.

 

When I reach printers with the network name (\\myserver\myprinter\), I have got randomly crashes with comexception, win32exception or invalidprinterexception (with a failure rate close to 50% !)

 


We tried lots of ways to solve this issue :

 

- grant user rights -> KO

 

- upgrade Crystal Report to SP8 -> KO

 

- change printer driver -> KO (crashes occures with HP, LEXMARK, CANON.... printers)

 

- customize print processor of printer driver.... -> KO

 

 

 

The only workaround we found : to map each printer in local to the processing server.

(but this trail is not possible because of the very large number of servers and printers we have)

 


So... I don't understand why by this way we didn't have any crash ?

 

Is there a specific setup for PrinterSettings, before calling the method "PrintToPrinter" of Crsytal Report Framework, when we execute the application under WS 2008 R2 (64 bits kernel English)?

 

How can I be sure that the origin of these crashes doesn't come from Crystal Report ?

 

 


Any help will be very very appreciate !

 

Thanks in advance
Julien

 


Examples of exceptions

 

#1

 

System.ComponentModel.Win32Exception (0x80004005): The handle is invalid
   at System.Drawing.Printing.PrinterSettings.GetHdevmodeInternal(String printer)
   at System.Drawing.Printing.PrinterSettings.GetHdevmode(PageSettings pageSettings)
   at System.Drawing.Printing.PrintController.OnStartPrint(PrintDocument document, PrintEventArgs e)
   at System.Drawing.Printing.StandardPrintController.OnStartPrint(PrintDocument document, PrintEventArgs e)
   at System.Drawing.Printing.PrintController.Print(PrintDocument document)
   at System.Drawing.Printing.PrintDocument.Print()
   at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(PrinterSettings printerSettings, PageSettings pageSettings, PrintLayoutSettings layoutSettings, Boolean reformatReportPageSettings)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(PrinterSettings printerSettings, PageSettings pageSettings, PrintLayoutSettings layoutSettings, Boolean reformatReportPageSettings)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(PrinterSettings printerSettings, PageSettings pageSettings, Boolean reformatReportPageSettings)
   at Service.Printing.SIPrinting.PrintReportToPrinter(ReportClass report, PrinterSettings ptSettings, PageSettings pgSettings, Int32 nbCall)
   at Service.Printing.SIPrinting.PrintToPrinter(TransfertPrintData data, ReportClass report)

 


#2

 

System.Drawing.Printing.InvalidPrinterException: Settings to access printer '\\myprinterspoolerserver\myprinter' are not valid.
   at System.Drawing.Printing.PrinterSettings.GetHdevmodeInternal(String printer)
   at System.Drawing.Printing.PrinterSettings.GetHdevmode(PageSettings pageSettings)
   at System.Drawing.Printing.PrintController.OnStartPrint(PrintDocument document, PrintEventArgs e)
   at System.Drawing.Printing.StandardPrintController.OnStartPrint(PrintDocument document, PrintEventArgs e)
   at System.Drawing.Printing.PrintController.Print(PrintDocument document)
   at System.Drawing.Printing.PrintDocument.Print()
   at CrystalDecisions.CrystalReports.Engine.FormatEngine.PrintToPrinter(PrinterSettings printerSettings, PageSettings pageSettings, PrintLayoutSettings layoutSettings, Boolean reformatReportPageSettings)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(PrinterSettings printerSettings, PageSettings pageSettings, PrintLayoutSettings layoutSettings, Boolean reformatReportPageSettings)
   at CrystalDecisions.CrystalReports.Engine.ReportDocument.PrintToPrinter(PrinterSettings printerSettings, PageSettings pageSettings, Boolean reformatReportPageSettings)
   at Service.Printing.SIPrinting.PrintReportToPrinter(ReportClass report, PrinterSettings ptSettings, PageSettings pgSettings, Int32 nbCall)
   at Service.Printing.SIPrinting.PrintReportToPrinter(ReportClass report, PrinterSettings ptSettings, PageSettings pgSettings, Int32 nbCall)
   at Service.Printing.SIPrinting.PrintToPrinter(TransfertPrintData data, ReportClass report)
   at Service.Printing.SIPrinting.PrintCrystalReportWithHeader(TransfertPrintData data)
   --- End of inner exception stack trace ---

 

Message was edited by: Don Williams

Crystal Reports Hangs on .Load event

$
0
0

Hi ,

 

We are using CR 2011 on Windows environment (2008 R2) and  run the following workflow.

 

1. We have created a rpt with 9 sub reports.

2. We would like to print the port to a particular printer and hence have set the flag <NO Printer> on the report

3. The application is a windows based application and not a web based application.

4. We have tested the report by launching the report and printing it on the desired printer.

5. We have a windows service that executes the code of reading the report and printing it out as a pdf / printer.

6. Step 4 is an event based activity that occurs as frequently as every 2 minutes.

7. The database is Oracle 11g

 

PROBLEM:

 

1. Generally all runs well, however once / twice a day the report hangs.

2. We have created a dump file and observed that the hang occurs on .LOAD event.

3. We are using the .LOAD with a single parameter that of the report name.

4. We also observed that the spooler service hangs

5. We are disposing the report immediately after printing it.

 

After the problem occurs we are forced to start the windows service and the printer spooler service.

 

Solutions tried so far:

 

1. Changing the No Printer flag did not give any results.

2. We have created a job that restarts the windows service and the spooler service after a period of 30 mins. - This has minimized the occurances but not eliminated the problem.

 

Pseudo code:

 

ReportDocument CR = new ReportDocument()

 

CR.Load(<report file name);

 

//Set Main data Source

CR.Database.Tables[0].SetDataSource(ADODB.Recordset)

 

//set sub reports

CR.Subreports[<Index>].Database.Tables[0].SetDataSource(data table)

 

//here it prints on default printer or the set printer. (Printer s are UNC printers, however we register them - they are visible as local printers on the given machine -  locally before printing)

 

CR.PrintToPrinter(noOfCopies, false, fromPage, toPage);

 

CR.Close()

CR.Dispose()

 

IF required we can also provide the rpt file and any other details.

 

Our customers are really suffering cause of this and any help would be really appreciated.

 

Thanks

 

Anil


Excesive columns in export to xls file

$
0
0

Hi

 

My problem is when i export a crystalreport 2010 file to excel file the final file in excel has a lot of columns.

 

How can avoid this issue,?

Is there a propertie that i need to activate or make a special procedure for just include one column for each data column of the crystalreport

 

I am using crystalreport 2010 with vs 2010

 

Thanks in advance for your help

 

Greetings

When will be Crystal Reports for MS Visual Studio support of VS 2013 released?

$
0
0

We need to use "SAP Crystal Reports, developer version for Microsoft Visual Studio" support of MS Visual Studio 2013 for .Net web application.

 

When will be "SAP Crystal Reports, developer version for Microsoft Visual Studio" support of MS Visual Studio 2013 released?

 

How many multiple users will be supported when 32 bit runtime or 64 bit runtime distributed to our customers when they use our .Net web application? Is there a limit or Runtime can be distributed to n number of customers.

 

No of concurrent users support using Crystal Reports for VS?

 

Jagannath

print page to page

$
0
0

Hello

 

 

I am using visual studio 10 with crystal report13, I have a report with two details, the result of each print are two sheets,

 

 

The problem is that I have 26,000 records, and the details (B) result in 52,000 records that are displayed correctly in the preview, but when I click print the total pages displayed is 32,000! should be 52,000

Can a crystal report be drilled down into using Crystal Decisions in VB.Net?

$
0
0

Hi,

 

I have a question regarding Crystal Decisions. I have written a program in VB.Net to automate the generation of our weekly sales report, which is scheduled using MS-Scheduler, and email those reports to the specified people in the distribution list. The program accesses the crystal report files at a central location on the company network, passes all the required parameters, exports the files to pdf, saves it on a network drive and also emails them. However, I am not able to generate the reports which are generated by drilling down into the main sales report. The first level gives the sales for all the territories and the second level gives all the sales by all the brokers associated to the specific territory which is drilled down into. I want to do this for all the territories listed in the top level report. Does Crystal Decision provide this functionality in the API? If yes, then what functions do I need to use? I am using a ReportDocument object from the CrystalDecisions.CrystalReports.Engine Namespace to generate the report.


Thanks,

Anagh

CR 2008 on Server 2008 R2 vs Windows Server 2003

$
0
0


I have posted a similar question before but have not beeen able to come up with a solution.

 

We recently purchased cr2008 designer sp5 and installed it on server 2008 r2 and server 2003. We have web pages where CR is embedded in the code showing the report. This works fine on server 2003, also works fine on development desktop BUT does not work on server 2008 r2.

 

The application works but when time to show the CR itsself there is just a blank page with no error messages. I have replcated the code both using vs2005 and vs2008 and none of them are working when it comes to show report.

 

IIS is configured to run 32bit mode and classic (on server 2008 r2). Applications are comiled with x86 target.

 

We also have windows applications (without user interfaces) that loops through data base and saves crystal report as .pdf documents to folders to folders and they do work either.

 

I have been working on this for the last couple fof weeks and I am clueless.

 

Any ideas where to start looking and what to try? Any any help will be greatly appreciated. Thank you.

Viewing all 3636 articles
Browse latest View live


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