I found this one, but it is very out of date: http://resources.businessobjects.com/support/communitycs/TechnicalPapers/crnet_serverfile_deployment.pdf
Is there a newer version that shows how to work with the ServerFileReportService object?
I found this one, but it is very out of date: http://resources.businessobjects.com/support/communitycs/TechnicalPapers/crnet_serverfile_deployment.pdf
Is there a newer version that shows how to work with the ServerFileReportService object?
Hi, all,
I tried to add a subreport to a report document using inProc RAS, like so:
private CrystalDecisions.CrystalReports.Engine.ReportDocument document;
SubreportClientDocument subreportClientDocument;
reportClientDocument = document.ReportClientDocument;
subreportClientDocument = reportClientDocument.SubreportController.ImportSubreport("someName", pathToRPTFile, sectionWhereToAdd);
Later I wanted to set a datasource to the added subreport, but when looping through the main document, I get no subreports found.
.....
CrystalDecisions.CrystalReports.Engine.ReportDocument subReport = document.Subreports[index];
document.Subreports has length of 0, although, I could sware it had worked
Strange thing is, later in the same code I do a loop,
foreach (CrystalDecisions.CrystalReports.Engine.ReportObject reportObject in document.ReportDefinition.ReportObjects)
{
if (reportObject.Kind == ReportObjectKind.SubreportObject)
{
and it finds subreportObjects.
What am I doing wrong? And, how can I reach a given subreport, to set a datasource to it?
Thank you, all, in advance!
On Next Page - Please wait while the document being processed I am using Crystal Reports for VS 2013. The report is working fine but if you click on the next page or click on group tree, the message “Please wait while the document is being processed.” comes. It does not returns after a long time. Any ideas?
Hi.
I am encountering crystal report error. I have a database that store around 19k records some with and without pictures.
I am a newbie and I customized my own report. When trying to generate report for the whole database, the pictures does not appear. However, when I try to generate report with lesser records, the pictures do appear. It seems to be the picture size that may affect this. But I cannot imagine myself going to each and every record to resize the image file. May I know if it is possible to resize all the image file size at one go using SQL?
FYI, I'm using Crystal Report XI R2 ver 11.5.12.1838 and 64 bit windows 7.
Also, I opened the report through another software which is in 32 bit mode.
On top of that, I have difficulty saving the report or printing the report to PDF. Whenever I print to PDF, it print several pages and then it keeps saying memory full or this request could not be submitted for processing. As it is urgent for me to come up with this report, what I've been doing is to print the report in many PDF files and then combine all into one PDF which is super time-consuming. Please help. Thank You.
PY
Hello,
I have a problem with the newest Version of Crystal Reports for .NET (13.0.10.1385).
If I change some parameters I get this Win32Exception:
System.ComponentModel.Win32Exception (0x80004005): Fehler beim Erstellen des Fensterhandles. (Error creating window handle)
bei System.Windows.Forms.NativeWindow.CreateHandle(CreateParams cp)
bei System.Windows.Forms.Control.CreateHandle()
bei System.Windows.Forms.TextBoxBase.CreateHandle()
bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
bei System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
bei System.Windows.Forms.Control.CreateControl()
bei System.Windows.Forms.Control.ControlCollection.Add(Control value)
bei CrystalDecisions.Windows.Forms.ParameterUnit.AddEditControl(ParameterValue pv)
bei CrystalDecisions.Windows.Forms.ParameterUnit.UpdateControls()
bei CrystalDecisions.Windows.Forms.InteractiveParameterPanel.ShowAdvancedDialog(ParameterUnit pu)
bei CrystalDecisions.Windows.Forms.InteractiveParameterPanel.pu_ShowAdvancedDialog(Object sender, EventArgs e)
bei CrystalDecisions.Windows.Forms.ParameterUnit.OnShowAvancedDialog(EventArgs e)
bei CrystalDecisions.Windows.Forms.ParameterUnit.editControl_ShowAdvancedDialog(Object sender, EventArgs e)
bei CrystalDecisions.Windows.Forms.ParameterValueEditControl.CreateParameterValueEditControl()
bei CrystalDecisions.Windows.Forms.ParameterValueEditControl.editControl_MouseDown(Object sender, MouseEventArgs e)
bei System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
bei System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.TextBoxBase.WndProc(Message& m)
bei System.Windows.Forms.TextBox.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Can anyone help me, or will it be fixed in the near future?
Greets Rene
Hi,
There is Crystal Report print issue on our web application.
I am working on production web server upgrade (from Windows Server 2003 to Windows 2008 R2). Our store order station (web application) calls web service to print pick slip, which contains customer and item information. We use Crystal Report as template for the pick slip.
After we brought the server into service at 7:00am EST, pick slip print worked fine until more stores (located in the western Canada) opened at 12:00pm EST. Almost all the data on pick slip shifted to the left about 10mm (depending the field width defined in Crystal Report), and those data exceeded left border of the fields did not get printed on the pick slip (please refer to the two attachments).
Once we restarted IIS, pick slip print worked again. As this is production box, we cannot leave it running and manually reset IIS frequently. It sounds like there is load issue with Crystal Report runtime. Is Crystal runtime environment “Reset” when we restart IIS?
1) Version of CR: CRRuntime_64bit_13_0_10
2) Version of VS: VS2010
3) OS: Windows Server 2008 R2
4) Version of IIS: IIS 7.5
Can you please help me out on this issue?
Thank you.
I have a peculiar situation, i have some applications writen in .NET 1.1 that uses Crystal V10, i'm moving them from windows 2003 servers do windows 2008sp2 servers because they are the latest version that support .NET 1.1, so...
The server is Windows 2008 SP2 64bits
I have intalled 64 and 32 bit versions of latest runtime: CRRuntime_32bit_13_0_9 and CRRuntime_64bit_13_0_9 hoping there is retrocompatibility.
Those applications ware written in VS2003 and used Crystal Reports V10
Whenever i try to open a report i get this exception:
[COMException (0x80040154): ?] CrystalDecisions.CrystalReports.Engine.ReportDocument..cctor() +11 [TypeInitializationException: The type initializer for "CrystalDecisions.CrystalReports.Engine.ReportDocument" threw an exception.] CrystalDecisions.CrystalReports.Engine.ReportDocument..ctor() +0 CrystalDecisions.CrystalReports.Engine.ReportClass..ctor() +5 Banese.SCCWeb.Negocio.Relatorios.relLogAlteracoesConstratos..ctor() in D:\RTC\BUILD\CRE_SCC_Fontes\CSHARP\Negocio\Relatorios\relLogAlteracoesConstratos.cs:21 Banese.SCCWeb.Negocio.GerRelatorios.GerarRelatorioLogAlteracaoContrato(DataTable dttLogs, String filtro) in D:\RTC\BUILD\CRE_SCC_Fontes\CSHARP\Negocio\GerRelatorios.cs:536 Banese.SCCWeb.Negocio.GerLogAlteracaoContrato.GerarRelatorioLogAlteracaoContrato(SqlTransaction trans, DateTime dtInicio, DateTime dtFim, Int32 cdAgencia, Int32 nrContrato, Boolean somenteAlteracaoConta) in D:\RTC\BUILD\CRE_SCC_Fontes\CSHARP\Negocio\GerLogAlteracaoContrato.cs:115 Banese.SCCWeb.Transacao.TOLogAlteracaoContrato.GerarRelatorioLogAlteracaoContrato(DateTime dtInicio, DateTime dtFim, Int32 cdAgencia, Int32 nrContrato, Boolean somenteAlteracaoConta) in D:\RTC\BUILD\CRE_SCC_Fontes\CSHARP\Transacao\TOLogAlteracaoContrato.cs:14 Banese.SCCWeb.Interface.FrmPesqLogAlteracaoContrato.btnPesquisar_Click(Object sender, EventArgs e) in D:\RTC\BUILD\CRE_SCC_Fontes\CSHARP\Interface\LogAlteracaoContrato\FrmPesqLogAlteracaoContrato.aspx.cs:104 Banese.Corporativo.WebCustomControls.SmartButton.OnClick(Object sender, EventArgs args) +19 System.Web.UI.WebControls.Button.OnClick(EventArgs e) +108 System.Web.UI.WebControls.Button.System.Web.UI.IPostBackEventHandler.RaisePostBackEvent(String eventArgument) +57 System.Web.UI.Page.RaisePostBackEvent(IPostBackEventHandler sourceControl, String eventArgument) +18 System.Web.UI.Page.RaisePostBackEvent(NameValueCollection postData) +138 System.Web.UI.Page.ProcessRequestMain() +1292
Is there retrocompatibility in this pakages i have intalled?
Does anyone knows what can i do to solve it?
I'm trying to create pre-configured application server templates for other similar applications.
Hi, I used CrystalReportViewer in Visual Studio 2013 to show report on Web app. The report works fine, but when I click "Print" button to print this report, it shows the dialog "Print to PDF" to Export. How to get "Print" dialog.
Thank you very much for any idea and help.
Regards,
Qin
I'm deploying a Windows Forms Application and when the user try to open any report, the following exception is thrown:
O inicializador de tipo de `CrystalDecisions.ReportSource.ReportSourceFactory` acionou uma exceção.
STACK TRACE: em CrystalDecisions.Windows.Forms.CrystalReportViewer..ctor()
em CCI_WIN.frmVisualizaRelatorio.InitializeComponent()
em CCI_WIN.frmVisualizaRelatorio..ctor()
em CCI_WIN.UCRelatorios.UCConteudoPlanejado.btnVisualizar_Click(Object sender, EventArgs e)
em System.Windows.Forms.Control.OnClick(EventArgs e)
em System.Windows.Forms.Button.OnClick(EventArgs e)
em System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
em System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
em System.Windows.Forms.Control.WndProc(Message& m)
em System.Windows.Forms.ButtonBase.WndProc(Message& m)
em System.Windows.Forms.Button.WndProc(Message& m)
em System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
em System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
em System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
The application is running on .NET Framework 3.5 and the prerequisite is the SAP Crystal Reports Runtime Engine for .NET Framework. The deploy is make using Clickonce.
Any help or suggestion on that?
Tks!
Need help with determining how to disable Scale Report Page to Fit Printer Page for VB.NET because all my crystal reports print outs are smaller than how they use to print after upgrading to Crystal Reports XI SP4. I have coded the program to not scale during run-time but nothing seems to make a difference in terms of disabling the Scale Report Page to Fit Printer Page.
Dim printPrompt As New Windows.Forms.PrintDialog
printPrompt.PrinterSettings = New System.Drawing.Printing.PrinterSettings
printPrompt.AllowSomePages = True
Dim oLayout As New CrystalDecisions.Shared.PrintLayoutSettings
oLayout.Centered = False
oLayout.Scaling = PrintLayoutSettings.PrintScaling.DoNotScale
Dim margins As PageMargins
margins = rpt.PrintOptions.PageMargins
margins.bottomMargin = 0
margins.leftMargin = 0
margins.rightMargin = 0
margins.topMargin = 0
rpt.PrintOptions.ApplyPageMargins(margins)
rpt.PrintToPrinter(printPrompt.PrinterSettings, printPrompt.PrinterSettings.DefaultPageSettings, False, oLayout)
We have a web app with 20-some reports and have recently upgraded to Visual Studio 2012 and Crystal Reports version 13.0.5. When I attempt to preview a some of the reports, Visual Studio crashes every time. Other reports can be previewed with no failures.
I have been selectively removing sections of the report to try to identify what specific controls are causing the crash, but have not yet isolated the problem.
I just stumbled across a log file that appears to indicate that a C++ ASSERT occurred at the exact time that Visual Studio crashed. This log file refers to the registry key LanguagePackInfoDir and searches on the forums have found no relevant discussions.
I don't believe this is a coincidence: does anyone know anything about this?
Environment:
Windows 7 Pro SP 1
Visual Studio 2012 with Update 2
SAP Crystal Reports, version for Visual Studio version 13.0.5
Event log entry for most recent crash:
Faulting application name: devenv.exe, version: 11.0.60315.1, time stamp: 0x5142bb7b
Faulting module name: ntdll.dll, version: 6.1.7601.17725, time stamp: 0x4ec49b8f
Exception code: 0xc0000374
Fault offset: 0x000ce6c3
Faulting process id: 0x88c
Faulting application start time: 0x01ce4c4340f85ee6
Faulting application path: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\devenv.exe
Faulting module path: C:\Windows\SysWOW64\ntdll.dll
Report Id: 63a4a0e7-b841-11e2-a4c2-005056c00008
Contents of correspond CR log file devenv_2188_2013_05_09_00_42_41_871_trace.glf:
FILE_TYPE:DAAA96DE-B0FB-4c6e-AF7B-A445F5BF9BE2
ENCODING:UTF8
RECORD_SEPARATOR:30
COLUMN_SEPARATOR:124
ESC_CHARACTER:27
COLUMNS:Location|Guid|Time|Tzone|Importance|Severity|Exception|DeviceName|ProcessID|ThreadID|ThreadName|ScopeTag|MajorTick|MinorTick|MajorDepth|MinorDepth|RootName|RootID|CallerName|CallerID|CalleeName|CalleeID|ActionID|DSRRootContextID|DSRTransaction|DSRConnection|DSRCounter|User|ArchitectComponent|DeveloperComponent|Administrator|Unit|CSNComponent|Text
SEVERITY_MAP: |Information|W|Warning|E|Error|A|Assertion
HEADER_END
.\languagemgr.cpp:40:-: TraceLog message 1
|cea45854-b4f3-ed44-e945-c8e24c3c770e|2013 05 08 20:42:41:874|-0400|>>|A| |devenv| 2188|4624|| ||||||||||||||||||||||assert failure: (.\languagemgr.cpp:40). (false : LanguagePackInfo regkey LanguagePackInfoDir not exist or with an empty value).
Hi
While trying to export file in CSV format, it is throwing "Logon failed exception" butI am able to export other formats like Word/Excel/RPT/PDF etc through code. I tried to sneak into the issue and the details.
When I exported the report with saved data in rpt fromat through code, opened it in crystal 2013 designer and tried export from there, I observed a weird behavior. When I am trying to export in PDF/Excel/Word/XML/RPT format things works fine but when I try to export in Text/CSV format, it asks to create field definition files.
I am wondering why such behavior is coming for certain few formats only for this report. This behavior us observed for this report only while other reports are working fine. I will really appreciate if someone can throw light with his/her expertise.
I have attached the required files for reference.
Version details:
RAS API Support Pack 10 (v. 13.0.10.1385)
Visual Studio 2010 SP1
Crystal designer 2013
(Just rename the attachment to Files.zip from Files.txt)
Thanks
Saurabh
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);
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.
I'm developing an ASP.NET 4.0 Web Forms application in VS2013 using Windows 8.1 / 64-bit. Crystal Reports runs fine in Debug mode from Visual Studio but when I've tried deploying it on different servers, I'm getting a variety of problems:
I've read through everything I can find on the Internet and tried several things but cannot get this problem resolved.
Assuming that the app will only ever be deployed to a 64-bit version of Windows, what are the correct steps I should take, both with Visual Studio and with the Merge Modules, to get things running properly?
Hoping someone can help!
Robert Werner
Vancouver, BC
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.
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
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
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:
memStream = (MemoryStream)report.ExportToStream(ExportFormatType.PortableDocFormat);
Is there something I can check to determine whether the PDF was successfully created?
Thanks,
Robert