Help with calling packages from crystal reports
hi I am trying to call a package from crystal reports, but geting an error
Failed to open a rowset
4200:datadirect:odbcdriver:odbc oracle driver: unrecognised escape sequence.
im sure its somthing realy stupid im doing wrong any ideas????
the command in crystal is
{CALL Enhanced_Pharos_Report.run_report
(NVL({?var_detail_id},0))}
the package, which works as a stand alone object is
----------spec------------------
create or replace package Enhanced_Pharos_Report
AS
TYPE result_set_type IS REF CURSOR;
PROCEDURE run_report
(var_detail_id NUMBER, v_Media_Object_Name out varchar2);
end;
-----------body-----------------------
create or replace package body Enhanced_Pharos_Report as
v_Media_Object_Name varchar2(300);
function Media_Object_Name(var_Detail_id Number) return varchar2 as
Result varchar2(300);
begin
SELECT promo_name
INTO Result
FROM promo
WHERE promo_id = (SELECT promo_id
FROM promo_plan
WHERE promo_plan_id = (SELECT promo_plan_id
FROM event_promotion
WHERE detail_id = var_Detail_id));
return(Result);
end Media_Object_Name;
PROCEDURE run_report
(var_detail_id NUMBER, v_Media_Object_Name out varchar2)
is
begin
v_Media_Object_Name := Media_Object_Name (var_detail_id);
end;
end;
Are you able to view your report on the browser in the format:
http://myserver:portno/report_name.rpt
Similar Messages
-
How to select a procedure in package from crystal report
I want to select a oracle procedure in package from a crystal report. I can able to select stored procedure from crystal report if I check the option storedprocedure in file menu--option-SQL tab.
Thanks Jayanthi,
We had already read the article, but did not interpret it correctly. We found the solution in an SAP OSS note.
We had to use method get_document_handle to get an OLE link and continue from there with OLE. The article however is very brief on that part and has no example.
So for anyone who would like to do the same or simular:
- call method do_document->get_document_handle:
EXPORTING
no_flush = ''
IMPORTING
error = do_error
handle = do_handle
retcode = do_retcode.
- GET PROPERTY OF do_handle-obj 'Application' = do_ole_application. -
Error With Export/Print from Crystal Report Viewer
Hello there,
I've searched through the web and SAP discussion boards with not much luck with this issue.
After working through this for some days now I've decided to look here for help.
Environment:
I have created a web Crystal Report viewer application(Developed with SBOP BI Platform 4.0 SP06 .NET SDK Runtime) that communicates with a managed Cyrstal Server 2011 SP4 (Product 14.0)
I am able to connect and authenticate with the server, retrieve a token for communication and display reports in the Crystal report Viewer successfully.
Problem:
When I attempt to export, I receive the prompt to select format and pages.
When I click export after selections most times I receive an error with the text
Unable to cast COM object of type 'System.__ComObject' to interface type 'CrystalDecisions.ReportAppServer.DataDefModel.PropertyBag'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{74EEBC42-6C5D-11D3-9172-00902741EE7C}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
Other times the page simply refreshes on export.
When I click to print, no print dialog is displayed the page always refreshes and no error is displayed.
No Print or Export document is ever created.
As many print/export issues seems to be related, I'm guessing this two issues are as well.
Notes:
I am utilizing the ReportClientDocument model
I am storing this in session to use as the crystal report viewer report source on postbacks
I am assigning a subset of export formats to the crystal report viewer
I am setting particular parameters as well on the report source
At this point I would appreciate every assistance I may receive on this issue
Thanks in advance,
Below is the pertinent code
Code:
<aspx>
<CR:CrystalReportViewer ID="CrystalReportViewer1" runat="server"
AutoDataBind="true" EnableDatabaseLogonPrompt="False"
BestFitPage="False" ReuseParameterValuesOnRefresh="True"
CssClass="reportFrame" Height="1000px" Width="1100px" EnableDrillDown="False"
ToolPanelView="None" PrintMode="Pdf"/>
<Codebehind>
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using CrystalDecisions.Enterprise;
using CrystalDecisions.ReportAppServer.ClientDoc;
using CrystalDecisions.ReportAppServer.CommonObjectModel;
using CrystalDecisions.ReportAppServer.Controllers;
using CrystalDecisions.ReportAppServer.DataDefModel;
using CrystalDecisions.ReportAppServer.ReportDefModel;
using CrystalDecisions.Shared;
namespace ClassicInternalReportPage
public partial class Reports : System.Web.UI.Page
protected override void OnInit(EventArgs e)
base.OnInit(e);
if (!String.IsNullOrEmpty(Convert.ToString(Session["LogonToken"])) && !IsPostBack)
SessionMgr sessionMgr = new SessionMgr();
EnterpriseSession enterpriseSession = sessionMgr.LogonWithToken(Session["LogonToken"].ToString());
EnterpriseService reportService = enterpriseSession.GetService("RASReportFactory");
InfoStore infoStore = new InfoStore(enterpriseSession.GetService("InfoStore"));
if (reportService != null)
string queryString = String.Format("Select SI_ID, SI_NAME, SI_PARENTID From CI_INFOOBJECTS "
+ "Where SI_PROGID='CrystalEnterprise.Report' "
+ "And SI_ID = {0} "
+ "And SI_INSTANCE = 0", Request.QueryString["rId"]);
InfoObjects infoObjects = infoStore.Query(queryString);
ReportAppFactory reportFactory = (ReportAppFactory)reportService.Interface;
if (infoObjects != null && infoObjects.Count > 0)
ISCDReportClientDocument reportSource = reportFactory.OpenDocument(infoObjects[1].ID, 0);
Session["ReportClDocument"] = AssignReportParameters(reportSource) ? reportSource : null;
CrystalReportViewer1.ReportSource = Session["ReportClDocument"];
CrystalReportViewer1.DataBind();
//Viewer options
// Don't enable prompting for Live and Custom
CrystalReportViewer1.EnableParameterPrompt = !(Request.QueryString["t"] == "1" || Request.QueryString["t"] == "4");
CrystalReportViewer1.HasToggleParameterPanelButton = CrystalReportViewer1.EnableParameterPrompt;
CrystalReportViewer1.AllowedExportFormats = (int)(ViewerExportFormats.PdfFormat | ViewerExportFormats.ExcelFormat | ViewerExportFormats.XLSXFormat | ViewerExportFormats.CsvFormat);
protected void Page_Load(object sender, EventArgs e)
if (IsPostBack && CrystalReportViewer1.ReportSource == null)
CrystalReportViewer1.ReportSource = Session["ReportClDocument"];
CrystalReportViewer1.DataBind();
private bool AssignReportParameters(ISCDReportClientDocument reportSource)
bool success = true;
if (Request.QueryString["t"] == "1" || Request.QueryString["t"] == "2" || Request.QueryString["t"] == "4" )
reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "STORE", Session["storeParam"]);
if (Request.QueryString["t"] == "2")
reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "FromDate", Request.QueryString["fromdate"]);
reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "ToDate", Request.QueryString["todate"]);
else if (Request.QueryString["t"] == "3")
reportSource.DataDefController.ParameterFieldController.SetCurrentValue("", "SKU", Request.QueryString["sku"]);
else
//Unknown report type alert
success = false;
return success;Thanks Don for your response,
I'm new to the SCN spaces and my content has been moved a couple of times already.
In response to your questions
The runtime is installed on the web application server, if by that you mean the machine hosting the created .NET SDK application.
My question was whether it was also required on the Crystal Server 2011 (I.E. the main enterprise server with CMS and Report management and I guess RAS and all that). I figured this would remain untouched and queries would simply be made against it to retrieve/view reports e.t.c
If install of the SDK on Crystal Server 2011 is indeed required should I expect any interruption to any of the core services after a restart. I.E. I'm hoping that none of the SDK objects would interfere with the existing server objects (in SAP Business Objects)Reason I ask is I note that much of the SDK install directories are similar to the existing Crystal Enterprise Server 2011 (Product 14.0.0)
Is this temp folder to be manually created/configured or is it created by the application automatically to perform tasks. Or are you referring to the default C:\Windows\Temp directory and so saying that the application would try to use this for print and export tasks?Once I'm sure which I'd give the app pool user permission
Printing is to be client side but I figured by default (with the Crystal Report Viewer) it would simply pool and print from the user's printer. This is how it works with the previously used URL reporting approach (viewrpt.cwr). Therefore a user can print the document from wherever they are with their own printer.We don't intend on printing from the server machine, but are you suggesting that a printer must be installed on server (which one web or enterprise server) for any client side printing to work.
App pool is running in 32 bit mode
Initially didn't get anything useful from fiddler but I'd try and look closer on your suggestion.
It's also possible that some of my questions are a misunderstanding of APP vs RAS vs WEB, so please feel free to clarify. Currently I see the Web server as simply the created .NET SDK Application and RAS (Crystal Server 2011 e.t.c) as the existing fully established Application server which I simply pool for information.
Thank you for your patience and advice, -
How to call a package from the Report in Oracle Application Express
How to call a package from the Report in Oracle Application Express
Hello,
What do you mean? Something like SELECT mypackage.function( par1, par2) from dual?
Or do you want to execute a procedure when something happens on the page, like clicking a button?
Greetings,
Roel
http://roelhartman.blogspot.com/
You can reward this reply by marking it as either Helpful or Correct ;-) -
Bapi Function call from Crystal reports 2008. import parameters syntax.
Dear,
I have an issue with calling a function directly from Crystal reports (2008) in the R3 system.
(if this belongs in another thread , please add the link if moved !)
I try to get data through function "BAPI_CLASS_GET_CLASSIFICATIONS".
Till now all possible input parameters have no data-result.
I already read other threads stating that 'for example' the Language key needs to be provided in a single character. 'E' in stead of 'EN'.
I also already created a Z-wrap-function that fills out all input parameters 'hardcoded'. This works.
clearly there are som syntax changes in passing the values to R3 when called from Crystal Reports.
Can someone state which syntax has to be followed for numeric fields, for datefields etc. (so when i make these dynamical, I know which syntax should be the outcome of the formula)
in my function that doesn't work I use these selections:
(this function is called in a standard report only calling this function)
{BAPI_CLASS_GET_CLASSIFICATIONS_1.I_LANGU_ISO} = "E" and
{BAPI_CLASS_GET_CLASSIFICATIONS_1.I_LANGU_INT} = "E" and
{BAPI_CLASS_GET_CLASSIFICATIONS_1.T_CLASS_OBJECTS.OBJECT_TYPE} = "MARA" and
{BAPI_CLASS_GET_CLASSIFICATIONS_1.T_CLASS_OBJECTS.OBJECT_KEY} = "000000000000000085" and
{BAPI_CLASS_GET_CLASSIFICATIONS_1.I_CLASSNUM} = "DSWTEST" and
{BAPI_CLASS_GET_CLASSIFICATIONS_1.I_CLASSTYPE} = "001" and
{BAPI_CLASS_GET_CLASSIFICATIONS_1.I_KEY_DATE} = Date (2011, 08, 05)
I already tried other languages or the 'EN' as input.
(I would like to know how the date is passed exaclty to R3.)
The function is of course RFC enabled.
when I call the my Z-function with predefined inputparameters in R3 it does give the wanted result.
FUNCTION ZBAPI_CLASS_GET_CLASSIFICATION.
""Local Interface:
*" TABLES
*" OBJECT_CLASSIFICATION STRUCTURE BAPI_OBJECT_VALUES
*" CLASS_OBJECTS STRUCTURE BAPI_CLASS_OBJECTS
data ZOBJECT_CLASSIFICATION type TABLE OF BAPI_OBJECT_VALUES.
data ZCLASS_OBJECTS type TABLE OF BAPI_CLASS_OBJECTS WITH HEADER LINE.
ZCLASS_OBJECTS-OBJECT_KEY = '000000000000000085'.
ZCLASS_OBJECTS-OBJECT_TYPE = 'MARA'.
Append ZCLASS_OBJECTS.
CALL FUNCTION 'BAPI_CLASS_GET_CLASSIFICATIONS'
EXPORTING
CLASSTYPE = '001'
CLASSNUM = 'DSWTEST'
* KEY_DATE = SY-DATUM
* LANGU_ISO =
* LANGU_INT =
* CHARACTS_OF_CLASS_ONLY =
* IMPORTING
* RETURN =
TABLES
OBJECT_CLASSIFICATION = ZOBJECT_CLASSIFICATION
CLASS_OBJECTS = ZCLASS_OBJECTS
OBJECT_CLASSIFICATION[] = ZOBJECT_CLASSIFICATION[].
ENDFUNCTION.
please advise.
once again if this should be moved to another forum , add the link please!Dear,
I just debugged my Z-function, after adding all input parameters as in the standard BAPI function.
All parameters seems to be passed correctly except from the table parameters from
CLASS_OBJECTS
So all I_parameters are passed :
{ZBAPI_CLASS_GET_CLASSIFICATION.I_LANGU_INT} = "EN" and
{ZBAPI_CLASS_GET_CLASSIFICATION.I_LANGU_ISO} = "EN" and
{ZBAPI_CLASS_GET_CLASSIFICATION.I_KEY_DATE} = Date (2011, 08, 05) and
{ZBAPI_CLASS_GET_CLASSIFICATION.I_CLASSNUM} = "DSWTEST" and
{ZBAPI_CLASS_GET_CLASSIFICATION.I_CLASSTYPE} = "001" and
{ZBAPI_CLASS_GET_CLASSIFICATION.I_CHARACTS_OF_CLASS_ONLY.BAPIFLAG} = ""
but the table parameters aren't coming through:
{ZBAPI_CLASS_GET_CLASSIFICATION.T_CLASS_OBJECTS.OBJECT_TYPE} = "MARA" and
{ZBAPI_CLASS_GET_CLASSIFICATION.T_CLASS_OBJECTS.OBJECT_KEY} = "000000000000000085" and
these are 'blanco' in the function.
also after the function is executed and all data is retrieved, when passing the data back to Crystal reports, once again, the table result isn't passed to Crystal Reports.
please advise -
Hi can you help with the following panic attack report,
hi can you help with the following panic attack report, macbook pro OS 10.7.3
Interval Since Last Panic Report: 157997 sec
Panics Since Last Report: 1
Anonymous UUID: 7ADCF50C-CC18-405E-9D5C-03325D3A83FA
Thu Mar 29 05:37:28 2012
panic(cpu 0 caller 0xffffff80002c266d): Kernel trap at 0xffffff800021d905, type 14=page fault, registers:
CR0: 0x000000008001003b, CR2: 0xffffef801a845328, CR3: 0x0000000019452019, CR4: 0x00000000000606e0
RAX: 0xffffff801a8450d8, RBX: 0xffffff800e79f340, RCX: 0xffffff801a8450d8, RDX: 0xffffef801a8450d8
RSP: 0xffffff80a4623e90, RBP: 0xffffff80a4623eb0, RSI: 0x0000000020c85580, RDI: 0x0000000000000001
R8: 0xffffff80008bd890, R9: 0xffffff80058aeac8, R10: 0xfffffe80539a9928, R11: 0x0008000000053d89
R12: 0xffffff800e79f370, R13: 0xffffff8000846288, R14: 0xffffff801a8450c0, R15: 0x0000000000000001
RFL: 0x0000000000010206, RIP: 0xffffff800021d905, CS: 0x0000000000000008, SS: 0x0000000000000010
CR2: 0xffffef801a845328, Error code: 0x0000000000000002, Faulting CPU: 0x0
Backtrace (CPU 0), Frame : Return Address
0xffffff80a4623b50 : 0xffffff8000220702
0xffffff80a4623bd0 : 0xffffff80002c266d
0xffffff80a4623d70 : 0xffffff80002d7a1d
0xffffff80a4623d90 : 0xffffff800021d905
0xffffff80a4623eb0 : 0xffffff800021daad
0xffffff80a4623ee0 : 0xffffff800023caa9
0xffffff80a4623f10 : 0xffffff800023cb36
0xffffff80a4623f30 : 0xffffff80005a3258
0xffffff80a4623f60 : 0xffffff80005ca448
0xffffff80a4623fb0 : 0xffffff80002d7f39
BSD process name corresponding to current thread: SophosAntiVirus
Mac OS version:
11D50b
Kernel version:
Darwin Kernel Version 11.3.0: Thu Jan 12 18:47:41 PST 2012; root:xnu-1699.24.23~1/RELEASE_X86_64
Kernel UUID: 7B6546C7-70E8-3ED8-A6C3-C927E4D3D0D6
System model name: MacBookPro8,3 (Mac-942459F5819B171B)
System uptime in nanoseconds: 5720232329361
last loaded kext at 5694112402758: com.apple.iokit.IOSCSIBlockCommandsDevice 3.0.3 (addr 0xffffff7f807a3000, size 86016)
last unloaded kext at 248390619372: com.apple.driver.AppleUSBUHCI 4.4.5 (addr 0xffffff7f80a4e000, size 65536)
loaded kexts:
com.sophos.kext.sav 7.3.0
com.apple.driver.AppleUSBCDC 4.1.15
com.apple.driver.AppleHWSensor 1.9.4d0
com.apple.filesystems.autofs 3.0
com.apple.driver.AppleMikeyHIDDriver 122
com.apple.driver.AudioAUUC 1.59
com.apple.driver.AppleUpstreamUserClient 3.5.9
com.apple.driver.AppleMCCSControl 1.0.26
com.apple.driver.AppleHDA 2.1.7f9
com.apple.driver.AppleMikeyDriver 2.1.7f9
com.apple.driver.AppleIntelHD3000Graphics 7.1.8
com.apple.driver.AGPM 100.12.42
com.apple.kext.ATIFramebuffer 7.1.8
com.apple.driver.SMCMotionSensor 3.0.1d2
com.apple.iokit.IOUserEthernet 1.0.0d1
com.apple.driver.AppleSMCLMU 2.0.1d2
com.apple.Dont_Steal_Mac_OS_X 7.0.0
com.apple.driver.AudioIPCDriver 1.2.2
com.apple.driver.ACPI_SMC_PlatformPlugin 4.7.5d4
com.apple.driver.AppleMuxControl 3.0.16
com.apple.driver.AppleLPC 1.5.3
com.apple.ATIRadeonX3000 7.1.8
com.apple.driver.AppleUSBTCButtons 225.2
com.apple.driver.AppleUSBTCKeyboard 225.2
com.apple.driver.AppleIRController 312
com.apple.AppleFSCompression.AppleFSCompressionTypeDataless 1.0.0d1
com.apple.AppleFSCompression.AppleFSCompressionTypeZlib 1.0.0d1
com.apple.BootCache 33
com.apple.iokit.SCSITaskUserClient 3.0.3
com.apple.iokit.IOAHCIBlockStorage 2.0.1
com.apple.driver.AppleUSBHub 4.5.0
com.apple.driver.AppleFWOHCI 4.8.9
com.apple.driver.AirPort.Brcm4331 513.20.19
com.apple.iokit.AppleBCM5701Ethernet 3.0.8b2
com.apple.driver.AppleEFINVRAM 1.5.0
com.apple.driver.AppleAHCIPort 2.2.0
com.apple.driver.AppleSmartBatteryManager 161.0.0
com.apple.driver.AppleUSBEHCI 4.5.8
com.apple.driver.AppleACPIButtons 1.4
com.apple.driver.AppleRTC 1.4
com.apple.driver.AppleHPET 1.6
com.apple.driver.AppleSMBIOS 1.7
com.apple.driver.AppleACPIEC 1.4
com.apple.driver.AppleAPIC 1.5
com.apple.driver.AppleIntelCPUPowerManagementClient 167.3.0
com.apple.nke.applicationfirewall 3.2.30
com.apple.security.quarantine 1.1
com.apple.driver.AppleIntelCPUPowerManagement 167.3.0
com.apple.iokit.IOSCSIBlockCommandsDevice 3.0.3
com.apple.iokit.IOUSBMassStorageClass 3.0.1
com.apple.kext.triggers 1.0
com.apple.driver.AppleAVBAudio 1.0.0d11
com.apple.driver.DspFuncLib 2.1.7f9
com.apple.driver.AppleSMBusController 1.0.10d0
com.apple.iokit.IOSurface 80.0
com.apple.iokit.IOFireWireIP 2.2.4
com.apple.iokit.IOBluetoothSerialManager 4.0.3f12
com.apple.iokit.IOSerialFamily 10.0.5
com.apple.iokit.IOAVBFamily 1.0.0d22
com.apple.driver.AppleHDAController 2.1.7f9
com.apple.iokit.IOHDAFamily 2.1.7f9
com.apple.iokit.IOAudioFamily 1.8.6fc6
com.apple.kext.OSvKernDSPLib 1.3
com.apple.driver.ApplePolicyControl 3.0.16
com.apple.driver.AppleSMC 3.1.1d8
com.apple.driver.IOPlatformPluginFamily 4.7.5d4
com.apple.driver.AppleSMBusPCI 1.0.10d0
com.apple.driver.AppleGraphicsControl 3.0.16
com.apple.driver.AppleBacklightExpert 1.0.3
com.apple.iokit.IONDRVSupport 2.3.2
com.apple.kext.ATI6000Controller 7.1.8
com.apple.kext.ATISupport 7.1.8
com.apple.driver.AppleIntelSNBGraphicsFB 7.1.8
com.apple.iokit.IOGraphicsFamily 2.3.2
com.apple.driver.BroadcomUSBBluetoothHCIController 4.0.3f12
com.apple.driver.AppleUSBBluetoothHCIController 4.0.3f12
com.apple.iokit.IOBluetoothFamily 4.0.3f12
com.apple.driver.AppleThunderboltDPInAdapter 1.5.9
com.apple.driver.AppleThunderboltDPAdapterFamily 1.5.9
com.apple.driver.AppleThunderboltPCIDownAdapter 1.2.1
com.apple.driver.AppleUSBMultitouch 227.1
com.apple.iokit.IOUSBHIDDriver 4.4.5
com.apple.driver.AppleUSBMergeNub 4.5.3
com.apple.driver.AppleUSBComposite 4.5.8
com.apple.iokit.IOSCSIMultimediaCommandsDevice 3.0.3
com.apple.iokit.IOBDStorageFamily 1.6
com.apple.iokit.IODVDStorageFamily 1.7
com.apple.iokit.IOCDStorageFamily 1.7
com.apple.driver.XsanFilter 403
com.apple.iokit.IOAHCISerialATAPI 2.0.1
com.apple.iokit.IOSCSIArchitectureModelFamily 3.0.3
com.apple.driver.AppleThunderboltNHI 1.3.2
com.apple.iokit.IOThunderboltFamily 1.7.4
com.apple.iokit.IOUSBUserClient 4.5.8
com.apple.iokit.IOFireWireFamily 4.4.5
com.apple.iokit.IO80211Family 412.2
com.apple.iokit.IOEthernetAVBController 1.0.0d5
com.apple.iokit.IONetworkingFamily 2.0
com.apple.iokit.IOAHCIFamily 2.0.7
com.apple.iokit.IOUSBFamily 4.5.8
com.apple.driver.AppleEFIRuntime 1.5.0
com.apple.iokit.IOHIDFamily 1.7.1
com.apple.iokit.IOSMBusFamily 1.1
com.apple.security.sandbox 177.3
com.apple.kext.AppleMatch 1.0.0d1
com.apple.security.TMSafetyNet 7
com.apple.driver.DiskImages 331.3
com.apple.iokit.IOStorageFamily 1.7
com.apple.driver.AppleKeyStore 28.18
com.apple.driver.AppleACPIPlatform 1.4
com.apple.iokit.IOPCIFamily 2.6.8
com.apple.iokit.IOACPIFamily 1.4
Model: MacBookPro8,3, BootROM MBP81.0047.B27, 4 processors, Intel Core i7, 2.2 GHz, 4 GB, SMC 1.70f5
Graphics: AMD Radeon HD 6750M, AMD Radeon HD 6750M, PCIe, 1024 MB
Graphics: Intel HD Graphics 3000, Intel HD Graphics 3000, Built-In, 384 MB
Memory Module: BANK 0/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333235533642465238432D48392020
Memory Module: BANK 1/DIMM0, 2 GB, DDR3, 1333 MHz, 0x80AD, 0x484D54333235533642465238432D48392020
AirPort: spairport_wireless_card_type_airport_extreme (0x14E4, 0xD6), Broadcom BCM43xx 1.0 (5.100.98.75.19)
Bluetooth: Version 4.0.3f12, 2 service, 18 devices, 2 incoming serial ports
Network Service: AirPort, AirPort, en1
Serial ATA Device: TOSHIBA MK7559GSXF, 750.16 GB
Serial ATA Device: MATSHITADVD-R UJ-898
USB Device: FaceTime HD Camera (Built-in), apple_vendor_id, 0x8509, 0xfa200000 / 3
USB Device: hub_device, 0x0424 (SMSC), 0x2514, 0xfa100000 / 2
USB Device: BRCM2070 Hub, 0x0a5c (Broadcom Corp.), 0x4500, 0xfa110000 / 5
USB Device: Bluetooth USB Host Controller, apple_vendor_id, 0x821a, 0xfa113000 / 8
USB Device: Apple Internal Keyboard / Trackpad, apple_vendor_id, 0x0245, 0xfa120000 / 4
USB Device: hub_device, 0x0424 (SMSC), 0x2514, 0xfd100000 / 2
USB Device: IR Receiver, apple_vendor_id, 0x8242, 0xfd110000 / 3Get rid of Sophos Anti-Virus software you have installed. Use the uninstaller or:
Uninstalling Software: The Basics
Most OS X applications are completely self-contained "packages" that can be uninstalled by simply dragging the application to the Trash. Applications may create preference files that are stored in the /Home/Library/Preferences/ folder. Although they do nothing once you delete the associated application, they do take up some disk space. If you want you can look for them in the above location and delete them, too.
Some applications may install an uninstaller program that can be used to remove the application. In some cases the uninstaller may be part of the application's installer, and is invoked by clicking on a Customize button that will appear during the install process.
Some applications may install components in the /Home/Library/Applications Support/ folder. You can also check there to see if the application has created a folder. You can also delete the folder that's in the Applications Support folder. Again, they don't do anything but take up disk space once the application is trashed.
Some applications may install a startupitem or a Log In item. Startupitems are usually installed in the /Library/StartupItems/ folder and less often in the /Home/Library/StartupItems/ folder. Log In Items are set in the Accounts preferences. Open System Preferences, click on the Accounts icon, then click on the LogIn Items tab. Locate the item in the list for the application you want to remove and click on the "-" button to delete it from the list.
Some software use startup daemons or agents that are a new feature of the OS. Look for them in /Library/LaunchAgents/ and /Library/LaunchDaemons/ or in /Home/Library/LaunchAgents/.
If an application installs any other files the best way to track them down is to do a Finder search using the application name or the developer name as the search term. Unfortunately Spotlight will not look in certain folders by default. You can modify Spotlight's behavior or use a third-party search utility, Easy Find, instead. Download Easy Find at VersionTracker or MacUpdate.
Some applications install a receipt in the /Library/Receipts/ folder. Usually with the same name as the program or the developer. The item generally has a ".pkg" extension. Be sure you also delete this item as some programs use it to determine if it's already installed.
There are many utilities that can uninstall applications. Here is a selection:
AppZapper
Automaton
Hazel
CleanApp
Yank
SuperPop
Uninstaller
Spring Cleaning
Look for them at VersionTracker or MacUpdate.
For more information visit The XLab FAQs and read the FAQ on removing software. -
Passing single/multiple values to stored proc parameter from crystal report
I tried below solution posted on this forum to pass either a single value or multi-value to a sql server stored procedure parameter (varchar datatype) from crystal report XI R2.
In my crystal report , I am displaying all the available parameter values to the user and the user will select either a single value or multi value.
This worked when I select single value and when I say show sql query in my subreport I see the following:
{CALL "XYZ"."dbo"."storedprocedurename";1('Product 1')}
But this did not worked when I selected multiple values and when I say show sql query in my subreport I see the following:
{CALL "XYZ"."dbo"."storedprocedurename";1('Product 1,Product 2')}
I think it might work if it is as below:*
For multiple values:
{CALL "xyz"."dbo"."storedprocedurename";1('Product 1', 'Product 2')}
Please advise.
Solution Posted on this forum is as follows:
Hi,
As you must be aware of that a crystal report created of a stored procedure will allow only a single value for inserting a multiple value as a parameter in your report and pass those values to your stored procedure please follow the below work around which will be helpful for you.
Symptom
In Crystal Reports, you want to pass a multi-value parameter to a stored procedure. The problem with doing so is that Crystal Reports considers the multi-value parameter to be an array.
How can you pass a multi-value parameter to a stored procedure?
Resolution
Here are the steps to pass a multi-value parameter to a stored procedure:
1. Create a Crystal report, and add a multi-value parameter.
2. Since the multi-value parameter is treated as an array, create a formula that uses the JOIN function. Create a formula as below:
//Formula: @JoinFormula
Join ({?Multi-value parameter array},";")
====================
NOTE:
In the formula above, a semi-colon (";") is the delimiter.
====================
3. Within the main report, create a subreport based on the stored procedure, and include the parameter to be populated with the multi-value list.
4. Link the Join formula in the main report to the stored procedure parameter in the subreport.
Doing so passes a multi-value parameter to the stored procedure.
Regards,
VinayHi Vinay,
First you need to make sure the stored procedure accepts multiple values in the fashion 'a','b','c'.
Then, create this formula in the Main Report:
numbervar i;
stringvar s;
for i:= 1 to ubound({?Parameter}) do
s := s + "'" + {?Parameter}<i> + "'" + ",";
left(s,len(s)-1);
Link this formula to the sub-report's parameter.
Hope this helps!
-Abhilash -
How to print directly to Printer from Crystal Report Viewer ?
Hi All,
We are integrating our Java Web Application with Crystal report XI, currently using JRC and export to PDF for user to preview and print to local printer.
Now there is new requirement :
Some clients is using thin client terminal (no harddisk, only has OS +Browser in ROM), so I cannot install Acrobat Reader for them to preview&print the report.
So I am looking at Crystal Report Viewer, the question is : Can I print from Crystal Report Viewer directly to local printer without first converting it to PDF (because I can't have acrobat reader installed) ??
Thank you very much,
Krist
IndonesiaHi,
It can't be achieved through XI.
JRCXI R2 SDK offers the ability to print the report server side
using the PrintOutputController using printReport(PrintReportOptions printReportOptions) method.
Here is the code(for XIR2):
import="com.crystaldecisions.reports.sdk.*"
import="com.crystaldecisions.sdk.occa.report.lib.*"
import="com.crystaldecisions.sdk.occa.report.document.*"
try {
final String REPORT_NAME = "Inventory.rpt";
ReportClientDocument reportClientDoc = new ReportClientDocument();
reportClientDoc.open(REPORT_NAME, 0);
//Create and set print options.
PrintReportOptions printOptions = new PrintReportOptions();
//Note: Printer with the 'printer name' below must already be configured.
printOptions.setPrinterName("
10.10.45.220
BOBJ 2C");
printOptions.setJobTitle("Sample Print Job from JRC.");
printOptions.setPrinterDuplex(PrinterDuplex.horizontal);
printOptions.setPaperSource(PaperSource.auto);
printOptions.setPaperSize(PaperSize.paperLetter);
printOptions.setNumberOfCopies(1);
printOptions.setCollated(false);
PrintReportOptions.PageRange printPageRange = new PrintReportOptions.PageRange(1,1);
printOptions.addPrinterPageRange(printPageRange);
//NOTE: If parameters or database login credentials are required, they need to be set before.
//calling the printReport() method of the PrintOutputController.
reportClientDoc.getPrintOutputController().printReport(printOptions);
reportClientDoc.close();
out.println("Successfully sent report to the printer.");
catch(ReportSDKException ex) {
out.println(ex);
Please revert in case you have any query.
Thanks,
Neeraj -
CR2008 Not enough memory while exporting reports from Crystal Reports 2008
I have recently upgraded our Crystal Reports version from Crystal Reports Basic for Visual Studio 2008 to Crystal Reports 2008. After upgradation I am facing the problem "Memory full.OtherErrorFailed to export the report. Not enough memory for operation" when I am trying to export the report from Crystal Reports 2008 Report viewer, or directly from the code behind. The application is hosted application. The problem occurs in our production environment.
Server details:
OS: Windows 2003 Enterprise Edition R2 with SP2
IIS: IIS 6
.Net Framework: 3.5
Application details:
Hosted application using Crystal Reports 2008 SP 3
Crystal Reports Viewer version: 12.0.2000.0
The data binding of the report object is done through an ADODB dataset.
Web.Config:
<configuration xmlns="http://schemas.microsoft.com/.NetConfiguration/v2.0">
<configSections>
<sectionGroup name="businessObjects">
<sectionGroup name="crystalReports">
<section name="printControl" type="System.Configuration.NameValueSectionHandler" />
<section name="crystalReportViewer" type="System.Configuration.NameValueSectionHandler" />
</sectionGroup>
</sectionGroup>
</configSections>
<businessObjects>
<crystalReports>
<printControl>
<add key="url" value="http://myserver/mysite/PrintControl.cab" />
</printControl>
<crystalReportViewer>
<add key="documentView" value="weblayout" />
</crystalReportViewer>
</crystalReports>
</businessObjects>
<appSettings>
<add key="CrystalImageCleaner-AutoStart" value="true" />
<add key="CrystalImageCleaner-Sleep" value="60000" />
<add key="CrystalImageCleaner-Age" value="120000" />
</appSettings>
<system.web>
<httpHandlers>
<add path="CrystalImageHandler.aspx" verb="GET" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
</httpHandlers>
<compilation debug="false">
<assemblies>
<add assembly="CrystalDecisions.Data.AdoDotNetInterop, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304" />
<add assembly="CrystalDecisions.Shared, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
<add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
<add assembly="CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
<add assembly="CrystalDecisions.Enterprise.InfoStore, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
<add assembly="CrystalDecisions.Enterprise.Framework, Version=12.0.1100.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
<add assembly="CrystalDecisions.ReportSource, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
<add assembly="CrystalDecisions.CrystalReports.Engine, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" />
</assemblies>
</system.web>
<system.webServer>
<handlers>
<add name="CrystalImageHandler.aspx_GET" verb="GET" path="CrystalImageHandler.aspx" type="CrystalDecisions.Web.CrystalImageHandler, CrystalDecisions.Web, Version=12.0.2000.0, Culture=neutral, PublicKeyToken=692fbea5521e1304" preCondition="integratedMode" />
</handlers>
</system.webServer>
</configuration>
Sample Code:
Report = new CrystalDecisions.CrystalReports.Engine.ReportDocument();
Report.Load(Server.MapPath(strReportPath));
Report.SetDataSource(dsReport);
Creportviewer.ReportSource = Report;
For exporting the report to PDF
string Filename = Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.InternetCache).ToString(), Guid.NewGuid().ToString() + ".pdf");
Report.ExportToDisk(ExportFormatType.PortableDocFormat, Filename);
Clean Up Code: (Page_UnLoad event)
if (Report != null)
Report.Close();
Report.Dispose();
Creportviewer.ReportSource = null;
Creportviewer.Dispose();
dsReport = null;
GC.Collect();
GC.WaitForPendingFinalizers();
Can someone help me resolve the issue.The .rpt file size is 14MB with the Data Save option enabled, 12MB without Data Save. Presumably the 12MB file size is because of the 24bit PNG we have as our background.
The Designer executes the report in less than a second and we can scroll through all pages and see the image fields perfectly.
When we Export to PDF, the Designer takes a long time, eventually gets to the 77%, the 7th record and returns "Export report failed" followed by "Memory full". If we export only page 1 of the 3 pages, it also returns a Memory full error. However, when the same report is run with only 1 page, that page exports to PDF but with a ridiculously large size and export time.
The machine has 2GB of physical memory with an 8GB pagefile with Windows 2003 (latest everything). The process runs up to about 1GB before reporting the memory full error.
We've also tried a variety of other suggestions posted in the other thread with no success.
We're happy to provide the RPT file to the Report Team to diagnose the problem. Ultimately, we need to be able to produce a 15 page report with approximately 45 images.
Our preferred scenario is fixing problem 2. The CR Designer seems quite capable of rendering our report and printing it to our third party PDF printer in a timely manner with small size. However, the API reports memory full.
The API resides in a dedicated reporting web service with NO other code except for loading the report, setting parameters and printing. When executing, it uses up to about 1.1GB before reporting the error.
Are there any other suggestions for fixing what we have? Are there known problems with large images in reports? Do we need to lodge a formal support request?
Regards, Grant.
PS. Grr and my message formatting is lost when I edited this message!!!
There is a 1500 character limit and then all formatting is removed to save space. Break you posts into separate entries.
Edited by: grantph on Sep 30, 2009 2:49 AM -
How to Print a report with 50 columns. Crystal Reports
Dear Experts,
I'm Using Crystal Reports 2008. I have a requirement that 50 columns should be placed in a Single Report with single line . But Page size should be A4 ( While Printing).
With Page Size A4 I'm able to place 5 columns.
Is there any possibility to acheave this no matter if number of opages increases
I Appreciate for the help in this regard.
But I need to display all the 50 fields (columns) in a single report.
I Achieved this by changing horizontal width to 70.
I can Place all the fields in one line.
But my concern is to print this report in A4 Paper I think its horizontal width will be 11. from crystal reports itself
I don't want to use cross tabs nor even use sql expression. Its just a simple display report for all the employees.
is there any simple way out to Achieve this by paging... or any other method.
Any help regarding this issue will be appreciated.
ThanksHi:
I'm not a expert in crystal report, but I would like help you, i don't understand if must to show 50 diferrents fields in your report or same field through 50 columns ? for exemple:
first case: You ned diferents fields
F1 F2 F3 ... F50
item1 F1 Item1 F2 Item1 F3 Item F50
item2 F1 Ite21 F2 Item2 F3 Item F50
In this case you must put the 50 fields in the report, just enough small to fit page
second case: You nedd the same field in 50 columns
Colum 1 Colum2 Column 50
item 0 item 11 item 490
item 1 item 12 item 491
item 2 item 13 item492
item 10 item 20 item 500
inm this case i haven't idea how to make it (sorry)
Edited by: Wgramirez on May 29, 2010 7:01 PM -
Error when exporting to other format from crystal report
Hi,
I have been facing an error "Method 'IRCREditableRTFExportFormatOptions_reserved5' on type 'CrystalDecisions.ReportAppServer.ReportDefModel.EditableRTFExportFormatOptionsClass' from assembly 'CrystalDecisions.ReportAppServer.ReportDefModel, Version = 11.0.3300.0, Culture-neutral, PublicKeyToken=692fbea5521e1304' is overriding a method that has been overriden." while trying to export the crystal report to another format (e.g. pdf and excel) from an application from a software vendor.
For your information, the machine OS that is running the application is Window 7. Before I did the installation of the application, it already has Visual Studio 2005 and Crystal Report XI Release 1 installed in the Window 7 system. After I had the above error, I went to search more information on the website and found out that I need to upgrade to Crystal Report XI Release 2 from the search results. However, after I upgraded from Crystal Report XI Release 1 to Crystal Report XI Release 2 and apply service pack 6, I still faced the same error when I tried to export. I even tried to uninstall Visual Studio 2005 and Crystal Report XI Release 2 but I'm still facing the same above error while exporting. I also tried to reinstall the application from software vendor but the same error come out.
Your help is highly appreciated. Thanks!!
Regards,
JenniferGood morning Jennifer
When you say:
" I also tried to reinstall the application from software vendor but the same error come out."
I wonder if the app you are trying to install is from a 3rd party vendor / developer? If it is, installing CR XI r2 (11.5) will not resolve the issue for you. From the error, the app was compiled with CR XI R1 (11.0) and the only way to get that app to use CR XI r2 will be to recompile it with CR XI r2 assemblies. E.g.; you will have to have access to the source code and then recompile the app, ensuring that you are referencing CR XI r2 assemblies. Or am I missing something here?
Ludek -
JNDI error while generating pdf from crystal reports in java
Hi, i want to generate PDF from crystal reports in java. I have the .PDF file with database configured into the report. Following details are available in report.
1. Server Name = testdb
2. Database Name = testdb
3. User
4. Password
I am using CR XI.
In CRConfig.xml i had given following details.
<JDBC>
<CacheRowSetSize>100</CacheRowSetSize>
<JDBCURL>jdbc:oracle:thin:@192.218.216.102:1521://TESTDB</JDBCURL>
<JDBCClassName>oracle.jdbc.driver.OracleDriver</JDBCClassName>
<JDBCUserName>user</JDBCUserName>
<JNDIURL>password</JNDIURL>
<JNDIConnectionFactory></JNDIConnectionFactory>
<JNDIInitContext>/</JNDIInitContext>
<JNDIUserName>testdb</JNDIUserName>
<GenericJDBCDriver>
<Default>
<ServerType>UNKNOWN</ServerType>
<QuoteIdentifierOnOff>ON</QuoteIdentifierOnOff>
<StoredProcType>Standard</StoredProcType>
<LogonStyle>Standard</LogonStyle>
</Default>
</GenericJDBCDriver>
</JDBC>
When i am calling from java as standalone, i am getting following error.
JRCAgent1 detected an exception: Error finding JNDI name (testdb)
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKException.throwReportSDKException(Unknown Source) at com.businessobjects.reports.sdk.b.i.if(Unknown Source)
Can anyone let me know where is the problem?Actually, the question boils down to; does the framework support the fonts?
I believe that my question re. this working in the designer was valid. The designer does not use the framework, so if it works there, it is either a framework issue or a runtime print engine issue.
I believe if you use the code below, it will list fonts available to the framework:
foreach(FontFamily ff in FontFamily.Families)
System.Diagnostics.Debug.WriteLine(ff.Name);
For more information see kbase [1198306 - Crystal Report displaying incorrect font in Microsoft Visual Studio .NET|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_dev/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333133393338333333303336%7D.do]
Ludek -
Migrating from crystal report 8.5 to 10.0 giving error 01S00:error
migrating from crystal report 8.5 to 10.0 giving error
I am working in migrating my cr application to 10th ver from the existing 8.5 where we have to explicitly make a query in query builder and then attach it. I was using dsn in ms odbc for oracle driver to connect the DB. Now in 10.0 i have removed the query file created using 8.5 query builder and trying to write directly to command editor. the report as stand alone is working fine. but when i try to generate the pdf using my vb application then on .export option it is giving error as "Logon failed.
Details: 01S00:[Microsoft][ODBC driver for Oracle]Invalid connection string attribute". i think the problem might be with cddb_oracle.dll or crdb_oracle.dll file as i am using a evaluation version of crystal report 10. as input to dsn i am providing
1.dsn
2.usid
3.database
4.password
what else is missing . plz help.....Well, you can migrate, you can not upgrade (semantics I suppose). E.g.; the RDC was deprecated in CR XI r1 and retired in CR 2008. Thus there is no way for you to upgrade to version 12 of the RDC as there is no such thing. So, from here, you have two options: migrate / port the app to .NET, or Java SDKs.
Re. RDC, see my blog here:
/people/ludek.uher/blog/2008/10/20/report-designer-component--past-present-future
For porting the app to .NET, see this article:
https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0eb394f-931e-2b10-3b82-9413bfc3f457
Ludek -
Migrate from Crystal Report XI R2 to Business Objects XI R2
Hello friends,
As per end of licence life cycle for Crystal report, we need to migrate our 30 crystal reports to BO xi r2.
First thing i need to ask is that ...is this possible to migrate from Crystal report XI R2 to BO xi R2 ?
If yes than where i can find migration guide..i tried import wizard but its not showing crystal reports in list.
please help..
thanks.Ok. We used the same Administrator user.
It seems first we need to move report to Report Samples than only it shows in list.
If we keep *.rpt under user folders its not being imported.
Import is possible this way only. Now we need to call the report from java.
Which API should we use to print this crystal report migrated to BO?
Regards.
MNBdev -
From Crystal report XI R2 files to Crsytal Report 2008 files
Hi All,
Can I convert from Crystal report XI R2 files to Crsytal Report 2008 files?
Please let me know.
Thanks,
Manjunath N JoginHi,
Here are a few more facts about up gradation to CR 2008.
1) Crystal Reports should be the same version of the Enterprise: for instance if reports are created with CR XI R2, the Enterprise version should be BOE XI R2; CR2008 will not be compatible with BOXI R2 Enterprise.
2) More versions of CR can be installed in the same machines; please note that the versions should be installed following the order from the oldest version to the latest one in order to avoid conflicts. For instance, you may install CR X first, then CR XI, then XI R2 and then CR 2008;
3) The reports created with CR XI can be opened with CR 2008.
4) And the reports created with CR 2008 can be opened with CR XI; however if the reports contain any features which are not available with the previous version, these may not be supported; For instance Flash objects which can be used with CR2008 would not be supported by CR XI R2.
5) The report definition defines the version with witch the report is created. The report definition information is available from u2018Reportu2019 menu/u2019Performance Informationu2019.
Hope this would be helpful.
Regards,
Aditya Joshi
Maybe you are looking for
-
Hi, having trouble with something. I have created two symbols which I intend to display on a button click. In actionscript, I have assigned each symbol to a movieclip variable. If i then set their visibility to false, they do not display. However
-
I have just re-installed CS6 Master and it would only doewnload 1gb of the 3gb of updates before it refused to download the remaing 2.2gb because it couldn't update the Application Manager. WHY? It was updating okay before I re-installed it. Further
-
Having different Vcore depending on CPU usage
Hi, I built my first complete computer a few days ago (where I chose every part myself and assembled everything). I so far think I have succeded in overclocking my processor to a stable level where I'm satisfied with the results. But I wonder about a
-
Loaded both CS6 and CS6 (64-bit) extended version...
I just loaded both CS6 and CS6 (64-bit) from disk (no download) onto my Windows 8 HP Envy computer. I noticed both boxes were automatically checked by Adobe during the set-up. I left as-is to not cause problems thinking just one would load. Both
-
How do you launch a slide show of your photos on iPhone 3GS?