Export Voyager report using BO-XI SDK
Post Author: mqureshi
CA Forum: .NET
Hi All, Can any body help me on this issue.
I have created Voyager type report in BO-XI and I would like to export that report data in to excel. I'm using BO-SDK in dotNet to do this.
I can able to export all type of reports except Voyager. Is there any way to do this.
Many thanks in advance...
Quereshi..
Post Author: Argan
CA Forum: .NET
As far as I know there is no SDK for that report type as of yet.
Similar Messages
-
Problem while exporting a report using CSV
Dear friends / experts ,
after successful genration of report my end users want to export that report i.e
while exporting a report in portal using " Export CSV" option , am getting CSV file as semicolon ( seperated instead coma(,)
please help me where can i change those settings to achive this CSV file with coma separated.
thanks in advance..
regards
anandCheck the below link
http://help.sap.com/saphelp_smehp1/helpdata/en/d2/11a28fc26d4042a6d230a9783152f2/content.htm
[Steps to change the delimiter in csv export WAD or portal|http://forums.sdn.sap.com/thread.jspa?threadID=1988651]
To set the field separator, go to SPRO and choose
-> SAP Reference IMG
-> SAP Customizing Implementation Guide
-> SAP NetWeaver
-> Business Intelligence
-> Links to Other Source Systems
-> Connection Between Flatfile and BI System
-> Set options for uploading flat files
Regards
KP
Edited by: Konduru Prashanth. on Feb 29, 2012 3:13 PM -
How to extract latest instance of a report using BO Enterprise SDK?
Using BO Enterprise SDK how to extract latest instance of report from Crystal Enterprise XIR2?. Can anybody help me with explanation or code?
Thanks in advance.Hi,
Use the following query in the query builder
SELECT
SI_NAME, SI_SCHEDULEINFO.SI_STARTTIME
FROM
CI_INFOOBJECTS
WHERE
SI_RECURRING = 1
SI_NAME: The recurring report name.
SI_SCHEDULEINFO.SI_STARTTIME: The date and time the report is scheduled to run next.
The query above will return all the recurring reports .
Regards,
Prithvi
Edited by: Raj_10 on Sep 14, 2011 1:54 PM -
Exporting graphical report using FM GFW_PRES_SHOW
Hi All,
I'm creating a graphical report using the FM 'GFW_PRES_SHOW',
I want to download this graphical report, but there is parameter(CONTENT) used in this FM to export the output, can any one help how to populate the values to this parameter so that i can down load my graphical output.
Tnks in Advance.
sethu.Hi Again,
Can anyone please give me a hint here?
Hagit -
Internal error exception when try to export Crystal Report using V2008 C#
Hello
Im working in an application that should send a parameter to a crystal report. Everything works fine when i test the report in the CR 2008 and shows the information correctly
After has the report working, i design a Visual C# application using forms and loading and exporting the report, which still works ok (generates the pdf file with the information)
Then i convert this application as a console application. The point is i need the report working as a windows service, to generate it every 15 minutes without user intervention (but try it as a console application first to be sure it will work ok before creating as a service)
Then i started the service. But when i call the report it sends an exception that i cannot understand:
Internal exception No se pudo abrir la conexion.
No se pudo abrir la conexion.
Prueba {DDE88B40-8A22-4EDB-9DEE-A5033DAA0140}.rpt
This is my code for the report that works fine as long as i don´t put any parameter into the sql command:
ReportDocument cryRpt = new ReportDocument();
cryRpt.Load(nomRepU);
cryRpt.Refresh();
cryRpt.SetParameterValue("EVAId", evaID);
ExportOptions CrExportOptions = new ExportOptions();
DiskFileDestinationOptions CrDiskFileDestinationOptions = new DiskFileDestinationOptions();
PdfRtfWordFormatOptions CrFormatTypeOptions = new PdfRtfWordFormatOptions();
CrDiskFileDestinationOptions.DiskFileName = @"" + path + "
" + nomRepPDF_Exp;
CrExportOptions = cryRpt.ExportOptions;
CrExportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
CrExportOptions.ExportFormatType = ExportFormatType.PortableDocFormat;
CrExportOptions.DestinationOptions = CrDiskFileDestinationOptions;
CrExportOptions.FormatOptions = CrFormatTypeOptions;
cryRpt.Export(); -
here i get the exception
I checked that the parameter is being read correctly in the crystal report as i remove all the sql commands and just put the parameter in the heading of the report, and is show as supposed and generates the pdf file automatically, but when i assign the parameter to the sql command (select * from myTable where idTable = {?EVAId} ) the crystal report send the exception i mentioned above
I don't know what to do, i don't know if i configuring correctly the report or something is missing. I would appreciate any help. If need more information please let me know. This is making me crazy
Thanks in advance
Veronica EstradaHello all
I just fixed my issue, i made some changes in the code as well as in the crystal report:
*Crystal report changes*
I removed the parameter that i have to filter the information, instead i in the C# code i let the crystal report which records to show
Note: in the preview of the report all information will be shown, however i won´t use it this way so is not a problem
*Visual C# changes*
// Load the crystal report
cryRpt.Load(nomRepU);
// Establish SQL conection parameters - below the code for the function
SetTableLocation(cryRpt.Database.Tables);
//This is really the main change, because if i use "setParameter" function still generates "Internal exception"
cryRpt.DataDefinition.RecordSelectionFormula = "{EVAPrincipal.EVAId} = " + evaId; // ---> Should be the same name of the table and the recordID i want to show
// Export function
cryRpt.Export();
private void SetTableLocation(Tables tables)
ConnectionInfo connectionInfo = new ConnectionInfo();
connectionInfo.ServerName = @"" + server; // ODBC
connectionInfo.DatabaseName = @"" + initialCatalog; // data base name
connectionInfo.UserID = @"" + user;
connectionInfo.Password = @"" + password;
foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
TableLogOnInfo tableLogOnInfo = table.LogOnInfo;
tableLogOnInfo.ConnectionInfo = connectionInfo;
table.ApplyLogOnInfo(tableLogOnInfo);
My notes:
I guess i had two problems: the first with the SQL connection, in connectionInfo.ServerName i was using the name of the instance instead of the ODBC name. The second is the way the parameter is received in the crystal report as it works as windows service (this is my guess) then if i control everything through the C# code it runs perfect!
Hope this helps if anyone has a similar problem
Regards
Veronica Estrada -
Retrieving SQL queries used in BO reports using BO Java SDKs
Hi,
Is it possible to retrieve SQL queries generated by Canned Reports? I have 200+ reports saved in my local system and i need to retrieve SQL queries from them, this is required for documentation purpose. Please let me know if it is possible thru BO java SDKs.This is the code I am using to retrieve the SQL values.
IEnterpriseSession boEnterpriseSession = null;
boEnterpriseSession = CrystalEnterprise.getSessionMgr().logon( boUser, boPassword, boCmsName, boAuthType);
// Get the Report Application Factory service from Crystal Enterprise
IReportAppFactory rptAppFactory = (IReportAppFactory)boEnterpriseSession.getService("", "RASReportService");
// Get the InfoStore service from Crystal Enterprise
IInfoStore boInfoStore = (IInfoStore)boEnterpriseSession.getService("", "InfoStore");
// Retrieve the report by name from Crystal Enterprise
IInfoObjects boInfoObjects = boInfoStore.query("Select SI_ID From CI_INFOOBJECTS Where SI_NAME = '" + reportName + "'");
// Open the report into a Report Document object
ReportClientDocument rcd = rptAppFactory.openDocument((IInfoObject)boInfoObjects.get(0), 0, Locale.ENGLISH);
System.out.println("SQL query \n \n");
System.out.println(rcd.getRowsetController().getSQLStatement(null, ""));
I am a newbie and I dont understand where the error lies.. Please help me out.
regards,
nitin
When run the code gives the following errors
com.crystaldecisions.sdk.occa.managedreports.ras.internal.ManagedRASException: Cannot open report document. --- 0x80004005
Unspecified error
cause:com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: 0x80004005
Unspecified error---- Error code:-2147467259 Error code name:failed
detail: 0x80004005
Unspecified error
at com.crystaldecisions.sdk.occa.managedreports.ras.internal.RASReportAppFactory.a(Unknown Source)
at com.crystaldecisions.sdk.occa.managedreports.ras.internal.RASReportAppFactory.a(Unknown Source)
at com.crystaldecisions.sdk.occa.managedreports.ras.internal.RASReportAppFactory.openDocument(Unknown Source)
at com.crystaldecisions.sdk.occa.managedreports.ras.internal.RASReportAppFactory.openDocument(Unknown Source)
at com.hcl.BO.retrieveSql.RetrieveSQL.main(RetrieveSQL.java:44)
Caused by: com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException: 0x80004005
Unspecified error---- Error code:-2147467259 Error code name:failed
at com.crystaldecisions.sdk.occa.report.lib.ReportSDKServerException.throwReportSDKServerException(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.s.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.if(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportClientDocument.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ClientDocument.open(Unknown Source)
... 4 more
I am a newbie and -
Error while exporting webi reports using BIAR command line tool.
HI,
We are trying to export webi objects to a biar file using the biar command line tool, biarengine.jar in XI 3.0. We are using the query select * from ci_infoobjects where si_kind='webi'.
We are getting an error "unable to create plugin object".
Export of all other objects is going through fine.
Any ideas?
Thanks,
AshokTry this
importBiarLocation=C:/test.biar
action=importXML
userName=UserName
password=Password
CMS=cmsname:6400
authentication=secEnterprise
exportQuery=select * from ci_appobjects where si_kind='universe' -
Finding PreDefined Conditions from DesKI Reports using VB BO SDK
Hi,
I need to collect all objects and conditions used in DesKI Report files (.rep) and document them in a excel sheet. I am able to retrieve the Object information but I am facing promblem when i try to fetch the Predefined condtions used in the report.
I am using the below code to find the count of conditions available in a particular report.
dp_CurrentDP.Queries.Item(1).Conditions.Count
It gives me this error, "cannot read queries from dataproviders". I am not able to find the cause of the problem, I am just trying with a very simple report and I can get all details from it including the SQL used (i.e, CurrentDP.SQL).. but CurrentDP.Queries.count is giving me the above error. I have put a seperate topic on this to check if anyone faced similar problem. Please guide me if you have any suggestions. ThanksPost Author: HaHo
CA Forum: Other
hi ted.
sorry, took me a while to answer... well, you were absolute right. i made the following failure:
...For Each qry In dp.Queries For Each con In qry.Conditions For op = 1 To con.OperandCount ' write condition to db Next NextNext...
well, a predefined condition simply has no operand.. :(stupid, in deed...better this way:
...For Each qry In dp.Queries For Each con In qry.Conditions If (con.OperandCount = 0) Then ' write predefined condition to db End If For op = 1 To con.OperandCount ' write condition to db Next NextNext...
thx a lot for your help, you showed me the way ;)harald. -
Retrieving Webi report size using BO XI SDK
Hi,
How do I retrieve the size of the BO Webi report using BO XI SDK? I am migrating a java application from BO 6 to BO XI, and in the existing code WIDocument.getDocSize() is used to retrieve the report size. What is the equivalent of this in BO XI?
Thanks,
SubhamHi Subham,
If you are looking for the size of the WID file, you can get this through the InfoObject.
Please note that this WID file only changes if the WebI document was actually saved.
Below is a sample code snippet that will retrieve the file size from an InfoObject:
IInfoStore boInfoStore = (IInfoStore) boEnterpriseSession.getService("InfoStore");
String query = "SELECT SI_FILES FROM CI_INFOOBJECTS WHERE SI_INSTANCE='false' AND SI_NAME='" + webiDoc + "'";
IInfoObjects boInfoObjects = boInfoStore.query(query);
if (boInfoObjects.size() > 0) {
IInfoObject boInfoObject = (IInfoObject) boInfoObjects.get(0);
IFiles boFiles = boInfoObject.getFiles();
IFile boFile = null;
for (int i=0; i<boFiles.size(); i++) {
boFile = (IFile) boFiles.get(i);
out.print(boFile.getName() + ": " + boFile.getSize() + "<BR>");
} else {
out.print("No WebI document found!");
Hope this helps.
Regards,
Dan -
Problem to export a report (to PDF) after converting my reports to CR13
I have an old project with reports developped using Crystal Reports for Visual Studio 2003 (.NET 1.1). I want to convert them so I can now use Crystal Reports for Visual Studio 2010 (with .NET 3.5).
I installed Crystal Reports for VS2010 and I converted my reports to the new format. Unfortunately, one of my reports is not working anymore.
My ASP.NET application generate the report and export it as a PDF. I use CrystalDecisions.CrystalReports.Engine.ReportDocument.Export().
Everytime I run this method, an exception is thrown...
System.Exception was unhandled by user code
Message=System.Runtime.InteropServices.COMException (0x80041004):
Mémoire insuffisante pour l'opération.
à CrystalDecisions.ReportAppServer.Controllers.ReportSourceClass.Export(ExportOptions pExportOptions, RequestContext pRequestContext)
à CrystalDecisions.ReportSource.EromReportSourceBase.ExportToStream(ExportRequestContext reqContext)
à CrystalDecisions.CrystalReports.Engine.FormatEngine.ExportToStream(ExportRequestContext reqContext)
à CrystalDecisions.CrystalReports.Engine.FormatEngine.Export(ExportRequestContext reqContext)
à CrystalDecisions.CrystalReports.Engine.FormatEngine.Export()
à CrystalDecisions.CrystalReports.Engine.ReportDocument.Export()
à
Source=GSPRapport
StackTrace:
I also tried to export the report (using PDF format) at design time with the "Export Report" button in Preview mode. It didn't work. But, I can export the report at design time using another format type (like XML).
The old version of te report (using .NET 1.1, CR9) work fine. As I said, other reports in that same project work perfectly.
Is someone have an idea of what's wrong!
Thanks!
Max.The most common cause of this problem is having very large detailed images, or lots and lots of images in your report. The Crystal Report engine changed a lot from 9.1 to 13. The big change was from 9.1 to 10 though when we started using the RAS InProc engine.
The Crystal reporting engine is not efficient at handling the images and it can cause memory issues like you are seeing. As a test, try suppressing the images that show up frequently in your report and retry your export. If it works you'll have your answer and you'll need a new creative way to design your report without so many images. -
Problem Exporting Crystal Reports 8.5 to an rtf file
I have an app written in VB 6, data stored in Access 2000 format and reports in Crystal Reports 8.5. From print preview of CR 8.5, I chose to export the report to an rtf file. When opening the rtf file, the report has print over top of print as if when my headers are repeated the information that follows prints on top of the header. It also appears that the page breaks are not the same which causes overflow to the next page. I suspect that it has something to do with choosing to repeat headers in my group sections in CR. I need these headers to be repeated when previewing or printing the CR.
We have tried exporting to Word 2003 and Word 2007 and it seems even worse.
Any ideas for a remedy?
Thank you.Hi
If you are exporting the report using the custom application and there you are facing this issue, then please post the thread in Expert Forums » Crystal Reports and Xcelsius » .NET Development - Crystal Reports for quicker response.
Else please try the below :
1.Uncheck the option for repeat group header.
2.Check Keep together for all the sections from the section expert.
Export the report once again and see if that works.
Regards
Sourashree -
Export a Web Intelligence Report using its SDK
Is it possible to Export a Web Intelligence Report directly without going to BO Link with the help of Business Object SDK? My requirement is to export the report from java application.
Edited by: Monika John on May 1, 2010 10:25 PMHi Monika -
In the future you'll want to post questions like this one in the Business Objects Java SDK forum found at:
Java SDK Forum: Java SDK Application Development
Your requirements is a common one. More resources, sample code and snippets for Report Engine / Export workflows can be found at:
http://wiki.sdn.sap.com/wiki/display/BOBJ/JavaReportEngineSDKSamples
Good Luck -
Error while trying to export a report into PDF using JRC (Linux env)
Hi all,
I have my web app installed on a Linux environment. When trying to export a CR report into PDF using JRC
PrintOutputController controller = reportClientDoc.getPrintOutputController();
ByteArrayInputStream byteArrayInputStream = (ByteArrayInputStream) controller.export(ReportExportFormat.PDF);
I got this error message:
19/02/2009 10:21:37 b INFO PdfExporter: PdfDocumentModeller.modelPage (page 1)
19/02/2009 10:21:37 b INFO PdfExporter: Modelling page
19/02/2009 10:21:37 b INFO PdfExporter: Creating document manager, text modeller and image modeller.
19/02/2009 10:21:37 b ERROR PdfExporter: Exception caught in PDFFormatter.formatPage (from PdfDocumentModeller.modelPage); aborting export
java.lang.IllegalArgumentException: Data type is not supported.
at java.awt.image.Raster.createInterleavedRaster(Raster.java:212)
at java.awt.image.Raster.createInterleavedRaster(Raster.java:178)
at java.awt.image.ComponentColorModel.createCompatibleWritableRaster(ComponentColorModel.java:2826)
at java.awt.image.BufferedImage.<init>(BufferedImage.java:439)
at com.crystaldecisions.reports.exporters.format.page.pdf.pdflib.u.<init>(Unknown Source)
at com.crystaldecisions.reports.exporters.format.page.pdf.b.k.a(Unknown Source)
at com.crystaldecisions.reports.exporters.format.page.pdf.b.k.a(Unknown Source)
at com.crystaldecisions.reports.exporters.format.page.pdf.b.d(Unknown Source)
at com.crystaldecisions.reports.exporters.format.page.pdf.b.a(Unknown Source)
at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
at com.crystaldecisions.reports.formatter.a.c.if(Unknown Source)
at com.crystaldecisions.reports.formatter.a.c.a(Unknown Source)
at com.businessobjects.reports.sdk.b.b.int(Unknown Source)
at com.businessobjects.reports.sdk.JRCCommunicationAdapter.request(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.x.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.q.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.dd.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.reports.sdk.PrintOutputController.export(Unknown Source)
On my Windows environment the JRC export into PDF work perfectly. I know that there are some known issues regarding the usage of JRC on Linux environments. Could this be one of those?
Any solution (or workaround) would be highly appreciated!
Thank you!
PS Maybe this is relevant: I use a MySQL database!
Edited by: Sandila Catalin on Feb 19, 2009 10:01 AMWhat kind of image do you have in the report?
Do you have -Djava.awt.headless=true specified for the Java JVM option?
Sincerely,
Ted Ueda -
How to create cross tab reports using RAS SDK api with Crystal Reports XI
Hi Everybody,
Iam generating reports in a web-based application with Crystal Reports XI using Report Application Server(RAS) SDK API. The columns in my report exceed that of an A4 sized page. So, when I export that report to pdf, only those columns that fit to a page are showing up. To solve, this problem, I thought of using cross tab. But, I donot know how to generate cross tab report using RAS SDK API. I have tried to get some code from the internet. But, I did not find any java code for that.Can some one give me some sample code.It is very urgent.
Thanks in advance.Hi,
The easiest way I use is to create the worksheet as regular table and then when i verify the data I get (non aggregate) I duplicate it as a cross tab.
In the duplication wizard I just need to define the axis (using drag and drop).
if you want to create a cross tab from the beginning you need to define that in the new workbook wizard (check the "cross tab" rather then "table"), chose your fields and define the place you want them.
The data point (the center of the cross tab) is aggregated as to your machine definition and will happen automatically.
for example: to find the amount of receipt by months:
On the left put the "Buyer Name", on top put the "Months" and in the data point put the amount.
What you'll get is something like:
months: jan feb mar apr ......
buyer_name
jhon_smith 100 50 30 250 ......
jhon_doe 80 45 90 453 ........
and so on..... -
Print a report in crystal Report using SDK
Hi Dear;
any body can publish a sample code how can i print a report built in crystal report using SDK?
regards;Hi Dany,
Hope the following code will help u .
before calling the function make a XML by using dataset.writexml, in which you have to pass the name of your stored procedure.
for this you have to decalre commantype as stored procedure.
first parameter of this is rpt name . asecon paramer is ur xml name which you got from DAtaset.writexml.
Sub ShowReport(ByVal rptName As String, ByVal SourceXML As String)
Try
Dim oSubReport As CrystalDecisions.CrystalReports.Engine.SubreportObject
Dim rptSubReportDoc As CrystalDecisions.CrystalReports.Engine.ReportDocument
Dim rptView As New CrystalDecisions.Windows.Forms.CrystalReportViewer
Dim rptPath As String = System.Windows.Forms.Application.StartupPath & "\" & rptName
Dim rptDoc As New CrystalDecisions.CrystalReports.Engine.ReportDocument
rptDoc.Load(rptPath)
For Each oMainReportTable As CrystalDecisions.CrystalReports.Engine.Table In rptDoc.Database.Tables
oMainReportTable.Location = System.Windows.Forms.Application.StartupPath & "\" & SourceXML
Next
For Each rptSection As CrystalDecisions.CrystalReports.Engine.Section In rptDoc.ReportDefinition.Sections
For Each rptObject As CrystalDecisions.CrystalReports.Engine.ReportObject In rptSection.ReportObjects
If rptObject.Kind = CrystalDecisions.Shared.ReportObjectKind.SubreportObject Then
oSubReport = rptObject
rptSubReportDoc = oSubReport.OpenSubreport(oSubReport.SubreportName)
For Each oSubTable As CrystalDecisions.CrystalReports.Engine.Table In rptSubReportDoc.Database.Tables
oSubTable.Location = System.Windows.Forms.Application.StartupPath & "\" & SourceXML
Next
End If
Next
Next
rptView.ReportSource = rptDoc
rptView.Show()
Dim oFrm As New System.Windows.Forms.Form
rptView.DisplayGroupTree = False
rptView.Dock = System.Windows.Forms.DockStyle.Fill
rptView.Location = New System.Drawing.Point(0, 0)
oFrm.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
oFrm.Controls.Add(rptView)
oFrm.Name = "rptForm"
oFrm.Text = "rptForm"
oFrm.ResumeLayout(False)
oFrm.WindowState = System.Windows.Forms.FormWindowState.Maximized
oFrm.TopMost = True
oFrm.ShowDialog()
Catch ex As Exception
oApplication.MessageBox(ex.Message)
End Try
End Sub
Maybe you are looking for
-
Macbook to CRT (RGB SCART)
Hi, I have a Macbook (13inch-mid 2010) and I'm wanting to connect to a SONY Trinitron CRT 4:3 with a RGB scart on the rear. So I can use MAME OS X and get those arcade perfect pixels If I get a mini dvi to vga then a vga to scart cable would it work?
-
Bought a new pro and used migration assistant to move stuff from my iMac. Now the Pro won't sleep automatically. It sleeps when I tell it to or on Schedule at 0100 but not after x mins of inactivity. The iMac it migrated from had no such issues. Is t
-
Hello We are running teamTrack that is a SMS tool from Serena SoftWare: log on is ok and it shows all reports and work queues But when clicking on a Service request link that looks like this .../tmtrack.dll?IssuePage&RecordId=126288&Template=view&Tab
-
Monitor oracle connection manager (cman) in grid control
How to montior oracle connection manager listener/instace in Grid Control. When I installed grid agent on the box where oracle connection manager running, agent is not able to discover the oracle connection manager instance. Is it possible to montior
-
Problem executing SELECT statement due to st_spatial column type
I am using a CachedRowSet and cache.execute() will not run because it does not support the st_spatial column type. I have been told to use the column metadata to build a select statement of column names, and check the column's type before you add it