I AM GETTING FOLLOWING ERROR WHILE CONNECTING WITH SAP THROUGH SAP GATEWAY FOR MICROSOFT IS THERE ANY PROFILE PARAMETERS ARE REQUIRED FOR THAT OR ANY PREREQ?
ERROR WHILE CONNECTING SAP GATEWAY FOR MICROSOFT
Crystal Reports issue loading in streaming Citrix environment
I have a couple applications that I am having troubles getting Crystal Reports to work correctly when I stream it in my Citrix environment. The application works fine when I install it on a Citrix server and push it out that way. It doesn't like our streaming software for some reason. When I try to run the report from my app, it just hangs. It never opens the crystal report shell or the report that you are trying to run. There aren't error messages at all either.
The software we are using is a Citrix proprietary software called Citrix Streaming Profiler, which when launched by a XenApp user utilizes the following services to create a sandbox: Citrix Streaming Helper Service & Citrix Streaming Service
Is there a timeout for Crystal Reports?
In my ASP.NET 4.0 Web Forms application, I've built a reports module that utilizes Crystal Reports to generate the reports, creating each as a PDF, storing it in a MemoryStream object, and then repopulating a window with the PDF.
It generally works very well. In fact, with 20 of 21 reports it works perfectly. But there is one in particular that occasionally does not work. Anecdotal evidence suggests that it fails when there is a lot of data, not necessarily in terms of rows in the report but in terms of computation time for the SQL Server Stored Procedure to do its work.
Trying to track down the problem, I'm working on the assumption that a timeout is occurring and the PDF is not being generated. I'm going to add some error handling to the code to address this. I'm also going to investigate SQL Server timeout issues. But I'd like to find out two things from the Crystal Reports experts:
- Is there a timeout value for any part of the Crystal Reports engine to do its work? If so, how do I increase it?
- This is the line that exports the report into PDF format into the MemoryStream:
memStream = (MemoryStream)report.ExportToStream(ExportFormatType.PortableDocFormat);
Is there something I can check to determine whether the PDF was successfully created?
Thanks,
Robert
Group Heading not show in group header
Hi to all,
i create a dynamic crystal report. when i set grouping through code, data are grouped in crystal report but the group heading not show in group header. i use this code. i more under stand i upload screen short. please help if possible.
Fields ffdd = clientdocument.DatabaseController.Database.Tables[0].DataFields;
Group oGroup;
Table oTable;
ISCRTable oISCRTable;
Field oField;
oGroup = new GroupClass();
//Find the table or stored procedure in the table collection based on the name
oISCRTable = clientdocument.DatabaseController.Database.Tables[0];
//oISCRTable = clientdocument.Database.Tables.FindTableByAlias("tblLov");
oTable = ((Table)oISCRTable);
//Cast this field reference to a Field object
oField = ((Field)oTable.DataFields.FindField("ReturnColumn", CrFieldDisplayNameTypeEnum.crFieldDisplayNameName,
CrystalDecisions.ReportAppServer.DataDefModel.
CeLocale.ceLocaleUserDefault));
//Set the Field object as the group condition
oGroup.ConditionField = oField;
//Add the group to the report
clientdocument.DataDefController.GroupController.Add(-1, oGroup);
Error:"The group options for a date, time or date-time condition field must be a date group options object."
I have been searching everywhere for the resolution to this error message.
I have a Crystal Reports report that was using an old version of CR.
We upgraded the application and CR to VS2010 and CR for .NET (latest version).
This report is loaded in code, the report name, sorting and grouping are programatically changed before displaying to the client.
Now when they select a date field to group by, they get the above message:
"The group options for a date, time or date-time condition field must be a date group options object."
From my research, I now need to tell it to group "for each day." (or whatever).
I can't find any results in any searching to tell me where to add this option. The only option I found so far is GroupOptions, but that is read only.
Could someone please point me to the correct code to set this option to eliminate this new error?
Thank you.
---snippet of code used to fire off report with client's selected options---
m_crOChecks = New crOchecks
objReport = m_crOChecks
'Search Criteria line 1
objReport.ReportDefinition.ReportObjects("txtSearchCriteriaName").text = m_strSearchCritName
crvReportViewer.Text = "Official checks reports"
crvReportViewer.ReportSource = objReport
crvReportViewer.SelectionFormula = m_strSelectionFormular
'Group by
If m_strGroupBy <> "" Then
FieldDef = objReport.Database.Tables.Item(0).Fields.Item(m_strGroupBy)
objReport.DataDefinition.Groups.Item(0).ConditionField = FieldDef
End If
----------------------------------------
Additional notes. If the field is non-date, everything works fine. If I run it using the old versions, all is fine.
I wouldn't mind if I had to set the CR default to "for each day" so I don't have to set anything new.
how to create crystal report(rpt) at runtime programmatically?
Hi,
how to create crystal report(rpt) at runtime programmatically?
what should I install to be able to use Crystal Reports InProc RAS .NET SDK?
My work environment is-
VS 2012 - 4.5 framework
Crystal report 13.0.5 version i have installed.
Windows 8 OS- 64 bit
Please let me know the correct solution.....
-Venki
What dependencies does CRforVS_mergemodules_13_0_10 currently have?
Like many people I am trying to use the CRforVS_mergemodules_13_0_10.zip merge modules in InstallShield LE.
I have spent the past two days reading article after article with still not gaining a full understanding of how to accomplish the task at hand which is creating a single .MSI which will install the Crystal Reports Runtime.
I have read in an official document from CR called CR Deployment using .Net Merge Modules.doc. This document states that the two prerequisites are Microsoft_VC80_ATL_x86.msm and policy_8_0_Microsoft_VC80_ATL_x86.msm.
Are these still the two dependencies for the newest version as well?
Do these need to be used or would a newer version of the VC++ runtime work as well?
I have added these are redistributables to my project along the Crystal merge modules.
From what I understand this is because the C++ run-times are not installed before Crystals merge modules.
Before investigating the merge module order, I wanted to verfiy the correct I had the correct dependencies.
My whole goal is to install the runtime from within my .MSI created with InstallShield LE in a seemless manner so as the user does not need to run an additional installation for the crystal reports runtime.
Thanks for any help in advance.
Print to crystal report from WPF
Hello All,
I've a question regarding linking a crystal report to my WPF application. I already have crystal report which details all the information about a particular Job. In my WPF application, user will enter the jobnumber and all the details of that job will be printed on the crystal reports. The crystal report is ready. How do I integrate crystal report with the WPF application?
The user will enter the jobnumber using the WPF form. I will have to match that job number in the database and call the crystal report to display all the information about that job. I've already created simple application in WPF that takes jobnumber from the user and just prints it on a page(not connected to database). Can somebody give me a hand on this? Does anyone have a sample application for reference? It would be a great help for me.
Thanks
How to set report to print to 8.5" wide by 7" high page
I am getting confused by printer/paper handling between Crystal 2011 and my WinForms VB2010 application with CR Engine 13.0.9.1312 installed.
I thought when I send a job to a printer, if I don't override anything, the settings in the printer driver would control everything, including paper size. But I am getting different issues with different clients and I cannot replicate all of them here in my office. The two issues below, I believe are related but may not be, so if necessary, I can start another thread for one of them.
Issue 1: Client has two printers and uses the dot matrix printer (Oki I believe) set up for 8.5" W x 7" H NCR forms from my Crystal Viewer application. It always prints 11" high instead of 7" but it does print to the proper printer.
Issue 2: Clients has two printers, laser and dot matrix. Job only prints to the default printer, even if my program is set for the dot matrix. If I change the default printer to the dot matrix, it prints fine, but every other program attempts to print to the dot matrix if it is not switched back.
My program has a form for setting report settings. One setting is the printer and is set by name from a combobox from PrinterSettings.InstalledPrinters and stored as the name in my settings file.
I then send that to the ReportDocument.PrintToPrinter command. (sorry, I would post all the code but the forum is not allowing me to paste today).
crReport.PrintOptions.PrinterName = "the printer name from the report settings in my program"
crReport.PrintToPrinter(1, True, 0, 0)
So for Issue 1, the page setup in the printer driver is set to 8.5x7 but the page always prints 11" with the total in the page footer at the bottom. I created the report years ago in CR8.5 with the proper printer driver (no longer on my computer) with the proper 8.5x7 page size. I have tried to update it to CR2011 and I still have similar problems, but I cannot set a page size in CR2011 in File, Page Setup to 8.5x7. It always sets to landscape and prints landscape on my laser.
I have tried the Dissociate Formatting... checkbox add setting the page size to User Defined Size. I get the 7" but it is 7" wide, not high and always switches to landscape.
I have tried to add an 8.5x7 page size to my Canon MF4370dn but it tells me the width is too wide for the height.
My client goes back to the old printing method and it works fine with the same report.
For Issue 2, it is a different report but the concepts are the same. It is using the printer name in the code above based on the printers attached to that computer. I have confirmed that if the default printer is changed, the program works fine. But the dot matrix is not the main printer. It is only used for invoicing so they do not want all programs to use it as the default.
I'm not sure what to do to try and sort this out. How do you set the proper print settings if the program will not honour what is in the printer driver settings, on the second case, not go to the defined printer by name.
Any ideas are greatly appreciated, TIA rasinc
Redistribution rules for Crystal Reports for Visual Studio- Server Application
The following document has information about redistribution rules for server application in page 4: http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70bd6328-4128-2d10-7882-d7b95418dbaa?QuickLink=index&…
The app that I'm trying to build and redistribute is (I think) considered a Server application. For server applications this document says that the developer must acquire a copy of Crystal Report for each 3rd party deployment. To comply with this requirement what exactly must be done? Do we have to contact SAP sales and ensure that these Crystal Report licenses (1 for each app deployment) get purchased under my company's account? Also, what Crystal Report Product would be sufficient in terms of complying with this licensing requirement? Sap Crystal Reports 2013?
Thanks in advance.
Problemas reportes en blanco Visual Studio 2013
Muy buenas, estoy teniendo problemas a la hora de generar reportes en visual studio 2013 con aplicación web, en la vista de programación el reporte aparece con información, pero cuando compilo, el navegador sale en blanco, no genera ninguna información, ni ningún error, ya probé en dos equipos distintos, con 4 navegadores diferentes, también trabajé con dos bases de datos diferentes para descartar que fuese la base de datos.
Si alguien me puede orientar le agradecería muchísimo.
Crystal Reports for Visual Studio Intermittent Error.
This is the exceptions we get
Error Description: System.ArgumentException: Parameter is not valid.
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height, PixelFormat format)
at System.Drawing.Bitmap..ctor(Int32 width, Int32 height)
at CrystalDecisions.Windows.Forms.PageControl.OnPaint(PaintEventArgs e)
at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer, Boolean disposeEventArgs)
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.ContainerControl.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)
Stack Trace : Method : .ctor File
Method : OnPaint File
Method : WmPaint File
Method : WndProc File
Method : WndProc File
Method : OnMessage File
Method : Callback File
We arent exactly sure where the error happens either as it never happens in our dev environment.
Any Ideas?
Ian Woolfenden
Crystal Reports NET - change culture
My application references Crystal Reports DLLs and uses them to generate reports (Using CrystalDecisions.CrystalReports.Engine.ReportDocument).
I need to customize the way Crystal outputs dates and numbers.
First I tried to set Culture on the thread that uses ReportDocument and calls its ExportToDisk method.
(Thread.CurrentThread.CurrentCulture and Thread.CurrentThread.CurrentUICulture)
Then I tried setting the default culture for my application
(CultureInfo.DefaultThreadCurrentCulture andCultureInfo.DefaultThreadCurrentUICulture).
Neither of these helps.
Is there any way to change Culture under which Crystal generates report?
Thanks
Detect if a specific runtime version is installed
Would the best way of checked to see if runtime components are already installed on a machine be to check the following key...
HKEY_LOCAL_MACHINE\SOFTWARE\SAP BusinessObjects\Crystal Reports for .NET Framework 4.0\Crystal Reports\CRRuntime32Version
if I was only ever installing the 32 bit version?
Or would there be a better option to use?
Trying to get more information about JavaScript API to server reports from a server to a client
Hi, we're trying to create a basic script to serve reports from a Crystal Report 2013 server to an instanceViewer inside a webpage.
I have followed the initial instructions inside the JavaScript API PDF, but I am not having any luck defining the instanceViewer.
Here's my code (mostly the same as in the PDF)
<!DOCTYPE html>
<html>
<head>
<title>Testing Crystal Reports</title>
<!--<script src="hello.js"></script>-->
<script src="http://192.168.5.27:8080/clientapi/CR/ViewerSeed.js" ></script>
<script>
var token = null;
//var viewerInstance = SAP.CR.Viewer.getInstance("crystalViewer");
function init()
{
token = "[token edited]";
SAP.CR.Viewer.create("crystalViewer", 'viewerContainer1', onViewerInit, onViewerFailure);
}
function onViewerInit()
{
viewerInstance.setReportSource('17282', token);
}
function onViewerFailure(instance, error)
{
alert(error);
}
</script>
</head>
<style>
.viewerStyle
{
position : absolute;
left : 12.5%;
top : 20.5%;
width : 75%;
height : 75%;
}
</style>
<body onload="init()">
<div id="viewerContainer1" class = "viewerStyle"></div>
</body>
As you can see there's nothing fancy, but I have no luck in getting past the: "SAP.CR.Viewer.Exceptions.ViewerInitException ['Failed to initialize viewer']" Error...
I've attached a screenshot
Error while Exporting to Email(attempted to read or write protected memory this is often an indication that other memory is corrupt)
Hi All,
I have a piece of code that exports the the report as PDF to email, and I am getting the following error while doing so.
"Attempted to read or write protected memory this is often an indication that other memory is corrupt"
I am using Windows 2008 R2 and windows 7
the problem is happening in the Export function of ReportDocument class.
Sample Code here:
ReportDocument rptDocument = new ReportDocument();
rptDocument.Export()
and I am getting the System.AccessViolationException for this error.
Here are the details of .NET and Crystal version:
.NET version : Crystal Report for .NET Framework 4.0
Crystal Report version : Crystal report for Visual Studio 2010 (SP8)
Any suggestion would be greatly appreciated.
Thanks.
Crystal Reports Viewer slow to load report to screen
We have just upgraded our desktop application from Crystal Reports XI Release 2 to SAP Crystal Reports, version for Microsoft Visual Studio (Support Pack 11). Our developers' machines have Visual Studio 2010/2012/2013 installed and also the Install Executable for SAP Crystal Reports, version for Microsoft Visual Studio (Version 13.0.11.1467). On our developers machines, after compiling our code, they can run a report in our software to screen and the report loads within seconds.
However, after our desktop application is installed (install is created using InstallShield) onto a non-developer machine, when a report in our software is ran to screen, the reports loads slowly but finally appear within a minute or two (print to printer or to file is fast). Is there something we are missing in our installation?
FYI - Our installation has the required Microsoft Visual C++ 2005 SP1 Redistributables (two of them), all of the Visual C++ 8.0 (x86) merge modules (ten of them all with Version 8.0.50727.762), and the SAP Crystal Reports runtime engine for .NET Framework 4 merge module (Version 13.0).
Comment from formula removed
When the recordselection formula ends with a line of comment Crystal seems to remove this line where I read the formula from my .NET app using .Datadefintion.RecordSelectionFormula.
We need this comment because we read some infos from the comment and may set other formulas accordingly.
This used to work fine in CRXI.
Thomas
Barcode support and runtime .net framework requirement
Hello.
If we upgrade to newest Crystal Reports for Visual Studio support pack 11. It does support report designing in Visual Studio 2012 and 2013?
How about barcode support. Does Crystal Reports for Visual Studio have barcode support (for both 32 and 64 bit runtimes)?
What .net framework is required for support pack 11 runtimes to work?
SP11 is causing printing to Crash
I have just installed SP11 for Visual Studio but when I go to print this causes the program to crash with the message that VSHOST32 has stopped working.
Not sure how to fix that
Installed on Windows 8.1 64 using the SP11 EXE installer
Regards
David