Integration of CR2008 .RPT report files within Paradox 10
Hello,
Our goal is to produce richer reports than those allowed by the ( 2002 ) Paradox report engine. We are evaluating CR2008 with the trial version plus other commercial report generator.
No problem with the conectivity to BDE 5.1 tables and the report building itself that is clear and straightforward. So we get the RPT files produced under CR2008 + Win XP
Question 1: how to embed the report handling to launch reports from withing Paradox code.
Former versions of CR had a Crystl32.ocx that seems not shipped in version CR2008.
Where can we get information to an ActiveX control to implement this interface or to know which is the mechanism used to integrate CR2008 within Paradox code. Any sample files ?
Question 2: we need to to make sure that the embedded product will run on Win 2000 Pro environment, because we need to maintain Win2k Pro as our minimum OS. It would be difficult for as to ask all our customers to switch to XP.
BTW, RPT files produced with CR2008 on XP run nice under the CR Viewer on Win2k, so we think that we will be able to continue using Win2k, but we need to make sure of this.
Thanks a lot,
Best regards,
Horacio
Hello Horacio,
I'm not familiar with Paradox, but it should be able to use the RDC in a similar fashion to it worked with the OCX (crystl32.ocx).
Since I'm not sure if you've worked with the RDC before I'll post some links that can be helpful. If you have additional, specific questions please feel free to ask them by posting new questions. Most of these documents were written for CR9. There's been little change to the RDC so the code is essentially the same for CR9/10/11/11.5. The RDC does not ship with CR2008.
The important things to note are the changes to database connectivity and runtime deployment with the RDC since CR9.
Here are the links:
[Migrating from OCX to RDC9|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0266ff1-261f-2b10-0284-e45e1568431e] - Migration tutorial - be sure to look at the appendix for the helpful side by side code comparison.
[RDC9 Connection Properties|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00635998-751e-2b10-9cba-f50ee1e4ef81] - Database connectivity
[RDC9 Tutorial|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/105181db-cb1d-2b10-38a4-b0a30e268e40] - Getting started guide.
[RDC Deployment|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/901c0761-cf1d-2b10-dea4-8e83937a9337] - Deployment information.
I hope this helps!
Sincerely,
Dan Kelleher
Similar Messages
-
Automatically generating multiple pdf reports from single(*.rpt) report file
Post Author: msam
CA Forum: General
I would like to be able to automatically pass a parameter list to a single report, and have it automatically generate multiple reports (as saved pdf files), based on the parameter list.
Is this possible? If so, could someone point me to some documentation? Thanks.What you probably need to do is generate each bio
individually with the
<cfdocument...> tag just the way you want them. And
then use some of
the advanced <cfpdf...> functionality that allows you
to append two or
more individual PDF's into a single large PDF.
Here are some resources that describe some of the
<cfpdf...> functionality.
http://www.coldfusionjedi.com/index.cfm/2007/7/9/ColdFusion-8-Working-with-PDFs-Part-1
http://www.coldfusionjedi.com/index.cfm/2007/7/10/ColdFusion-8-Working-with-PDFs-Part-2
http://cfpdf.blogspot.com/
http://cfpdf.blogspot.com/2007/06/cfpdf-action-merge_27.html
http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=cfpdf_02.html -
Calling html file within web.show document as a report output
/* this is blank html file included javascript for disabling mouse right click working fine*/
WEB.SHOW_DOCUMENT ('http://prod.artisticmilliners.com:8000/files/file.html','_blank');
/* this is oracle report output within model frame working fine*/
WEB.SHOW_DOCUMENT ('javascript:void(window.open("'|| URL || '","","location=no,toolbar=no,menubar=no,status=no,"));self.close()','_self');
I want to add show report output with right mouse click disable. Pleae guide how can i do it?Let me start by saying that disabling the right mouse will do nothing but frustrate users. It doesn't protect the page content from anything. There are various other ways to get the content from the page copied locally. And more importantly, this does not_ offer any kind of security.
Ok, so you have decided to do it anyway ;)
In order to make this happen, you would need to modify the report. I will assume that when you said "report" you meant Oracle Reports. Open the report file (.rdf) and edit the report's "Before Report Value".
The default value is:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=&Encoding">
</head>
<body dir=&Direction bgcolor="#ffffff">Change it to this:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=&Encoding">
</head>
<script language="javascript">
document.onmousedown=disableclick;
status="Right Click Disabled";
Function disableclick(e)
if(event.button==2)
alert(status);
return false;
</script>
<body oncontextmenu="return false" dir=&Direction bgcolor="#ffffff">Save the changes and retest. -
Report file .rpt not included in clickonce publishing
Hi,
I created a application in VS2005 incuding a CrystalReport. It is running well on developing machine. The application is published with VS clickonce on a publishing server. The necessarry report file .rpt isn't included in publishing files. How do I get this into the publishing files?
Thanks
AndreasI don't understand this because I do as you described in the devlibrary: http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
Here is a clickonce Deployment description. If you do like this you'll see, that it doesn't work because the .rpt file isn't included.
Andreas -
Integration of BIP Report file bursting with Unix FTP directory(using IBot)
We have a requirement for dynamically creating the folder in FTP server, which gets the bursted file when a BIP report is executed.
We have used the following approach:
Created a IBot with Custom Java Program which creates a folder dynamically in FTP, now we are facing the problem to integrate this IBot with the BIP report file bursting.
Can anyone suggest how to overcome this issue or is there any alternative approach to achieve the above requirement.
Any help would be appreciated..
-
Creating crystal report file dynamically.
Post Author: malcomstewart115
CA Forum: General
Hi, everybody.
I have one problem.
How to create crystal report file(*.rpt) in php dynamically.
I mean, I want to create the "*.rpt" file with php code.
Please help me. thanks everybody.Post Author: PWilkens
CA Forum: General
It sounds like you're defeating the power and purpose of Crystal Reports, or replace it with pure PHP (which I suppose could be done... but why?)
What exactly are you trying to do?
If you're trying to make certain parts of the report hide or reveal or change depending on variables settings in the PHP file, that's easy enough to accomplish by sending parameters with your PHP values into the report. But the dynamic actions really need to be done within the report itself, accomplished through ample use of the section and field settings provided within the Report Designer. -
Having trouble opening Crystal Report files from a document library
I am trying to open Crystal Report .rpt files from a document library in either the native, client Crystal Reports software or in Crystal Reports Viewer. When I add the Crystal Report files to a document library and attempt to open them SharePoint displays
a prompt asking me to save the file locally instead of opening the file. I have done a lot of research online and found several sites discussing similar scenarios, however, I have not been able to get these solutions to work. Here is a short list of sites
I have referenced for possible solutions:
http://naadydev.blogspot.com/2013/03/crystal-report-viewer-sharepoint-2010.html?showComment=1383339860122
http://social.technet.microsoft.com/Forums/sharepoint/en-US/52aabf2d-10dc-424c-bd50-124fc972a9b9/crystal-report-viewer-integration-with-sharepoint-2010?forum=sharepointgeneralprevious
http://www.codeproject.com/Articles/42731/Crystal-Reports-WebPart-for-SharePoint
Here are the steps I have done to try to get the .rpt files to open:
Added the Crystal Report extension .rpt as a MIME type
Installed the Visual Studio 2012 Crystal Reports Viewer toolbar
Installed the 64-bit Crystal Reports runtime
I have also created a solution file based off the Code Project site which partially works, but not quite right. In this project I have created a document library called "Crystal Reports rpt Files" and deployed the solution file to a site. When
I open the Web Part Maintenance Toolbar I can see the selected .rpt file in the drop-down, but no Crystal Report file is displayed on the page itself.
I am not sure what I am doing wrong. Does anyone have experience working with Crystal Reports and SharePoint 2013 (or earlier versions) that could lend some advice?
Thank you,
AlexWe are having the exact same issue, has anyone resolved this yet?
-
Invalid Report File Path Error
I have included several Crystal Reports as embedded resources in a Visual Studio 2010 C# project. When I try to run the application on a client PC I receive an invalid report file path error. Why am I receiving this error if the rpt is embedded in the manifest?
The following code now works on my development machine. It obtains the server name and database name from the configuration file. When I run on my client PC, however, it prompts me to log into the database. It provides the correct server name but the database name is blank and integrated security is not checked. The database name field is not enabled so I cannot provide a value.
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using CrystalDecisions.CrystalReports.Engine; //jp
using CrystalDecisions.Shared; //jp
namespace WindowsFormsApplication1
public partial class FormRptArtist : Form
private CrystalReport1 crReportDocument = new CrystalReport1();
public FormRptArtist()
InitializeComponent();
ToolTip toolTip = new ToolTip(); toolTip.SetToolTip(btnHelp, "Flash Video Training / Help");
helpProvider1.HelpNamespace = GlobalClass.gb_help;
private void FormRptArtist_Load(object sender, EventArgs e)
TableLogOnInfos crtableLogoninfos = new TableLogOnInfos();
TableLogOnInfo crtableLogoninfo = new TableLogOnInfo();
ConnectionInfo crConnectionInfo = new ConnectionInfo();
Tables CrTables;
bool repeat = true;
while (repeat)
try
crConnectionInfo.ServerName = Properties.Settings.Default.CrystalServer;
crConnectionInfo.DatabaseName = Properties.Settings.Default.CrystalDatabase;
crConnectionInfo.IntegratedSecurity = true;
CrTables = crReportDocument.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table CrTable in CrTables)
crtableLogoninfo = CrTable.LogOnInfo;
crtableLogoninfo.ConnectionInfo = crConnectionInfo;
CrTable.ApplyLogOnInfo(crtableLogoninfo);
crystalReportViewer1.ReportSource = crReportDocument;
crystalReportViewer1.Refresh();
break;
catch (Exception exp)
MessageBox.Show(exp.Message);
DialogResult result1 = MessageBox.Show("Try Again?", "Database Connection Error",
MessageBoxButtons.RetryCancel);
if (result1 == DialogResult.Retry)
FormCrystalParms newWindow = new FormCrystalParms();
newWindow.ShowDialog();
else
repeat = false;
private void CrystalReport11_InitReport(object sender, EventArgs e)
private void btnHelp_Click(object sender, EventArgs e)
GlobalClass.displayflashhelp(this, "formrptartist");
private void crystalReportViewer1_Load(object sender, EventArgs e) -
Hello,
I have an application in Visual Basic 6.0 an use Crystal Reports 8.5 through OCX. Whenever I open a report and close it again, the report file is locked on the computer. I have to shut down my VB6 program in order to be able to delete or overwrite it on my PC. I think I do not close my report properly, so it stays in memory as long as my VB6 application runs.
My code runs as follows:
Load frmBeginEnEinddatumIngeven
frmBeginEnEinddatumIngeven.Show vbModal
If Not frmBeginEnEinddatumIngeven.blnAnnulerenGekozen Then
With crptBRUMUKassasysteem
.Formulas(0) = "Begindatum = '" & Format(frmBeginEnEinddatumIngeven.dtBegindatum, "dddd dd mmmm yyyy") & "'"
.Formulas(1) = "Einddatum = '" & Format(frmBeginEnEinddatumIngeven.dtEinddatum, "dddd dd mmmm yyyy") & "'"
.SelectionFormula = ""
.ReportFileName = gsRapportenpad & "Ticket\rptTicketPeriodeVerkoop.rpt"
.SelectionFormula = "{tblA_Musea.MU_Museum_id} = " & glVerkooplocatie_id & " And {tblTV_Sessies.TVSE_Begintijd} >= #" & Format(frmBeginEnEinddatumIngeven.dtBegindatum, "mm/dd/yyyy") & "# And {tblTV_Sessies.TVSE_Begintijd} < #" & Format(frmBeginEnEinddatumIngeven.dtEinddatum + 1, "mm/dd/yyyy") & "#"
.Action = 1
.ReportFileName = gsRapportenpad & "Ticket\rptTicketPeriodeBezoekersstatistiek.rpt"
.SelectionFormula = "{tblA_Musea.MU_Museum_id} = " & glVerkooplocatie_id & " And {tblTV_Sessies.TVSE_Begintijd} >= #" & Format(frmBeginEnEinddatumIngeven.dtBegindatum, "mm/dd/yyyy") & "# And {tblTV_Sessies.TVSE_Begintijd} < #" & Format(frmBeginEnEinddatumIngeven.dtEinddatum + 1, "mm/dd/yyyy") & "#"
.Action = 1
.Formulas(0) = ""
.Formulas(1) = ""
.SelectionFormula = ""
End With
End If
Can anyone help me to solve this problem?
Many thanks and greetings,
MichelHi,
Did you try running one report first if still the problem persist? Or try running other report with one condition only, Let say try to run this first,
If Not frmBeginEnEinddatumIngeven.blnAnnulerenGekozen Then
With crptBRUMUKassasysteem
.Formulas(0) = "Begindatum = '" & Format(frmBeginEnEinddatumIngeven.dtBegindatum, "dddd dd mmmm yyyy") & "'"
.Formulas(1) = "Einddatum = '" & Format(frmBeginEnEinddatumIngeven.dtEinddatum, "dddd dd mmmm yyyy") & "'"
.SelectionFormula = ""
.ReportFileName = gsRapportenpad & "Ticket\rptTicketPeriodeVerkoop.rpt"
.SelectionFormula = "{tblA_Musea.MU_Museum_id} = " & glVerkooplocatie_id & " And {tblTV_Sessies.TVSE_Begintijd} >= #" & Format(frmBeginEnEinddatumIngeven.dtBegindatum, "mm/dd/yyyy") & "# And {tblTV_Sessies.TVSE_Begintijd} < #" & Format(frmBeginEnEinddatumIngeven.dtEinddatum + 1, "mm/dd/yyyy") & "#"
.Action = 1
Regards,
Clint -
In my FTP client I can click to sort by date modified which is fine if you are in a folder and then it shows the file dates correctly - but any folders within the root folder don't they seem to display randomly all together at the bottom of the list and it is a nightmare trying to find what folders have files in them that have been changed.
Is there any way to get the folder to register the last date of a file within it that was modified?I dont know the answer yet, but i have noted what appears to be a bug in 10.9 in how it handles folder dates. Right now i am seeing folder modified dates changing randomly ot "today" - whatever date the parent folder was opened.
In the past my folders "modified" date was always the same as the last modified date of the items within. But this only moved down ONE level - if a subfolder's entries were updated the "gradfather" folder did not update.
But now severa people are reporting random, incorrect folder dates. I hoep this will be corrected soon, but who knows?
Grant -
Printing a Oracle PDF Report from within a Oracle Form on Linux
Is there a command I can use in Oracle Forms to invoke a shell script to open a PDF output report stored on a physical location on the Linux server and print it to the printer?
What I'm currently trying to do is send a Report called within Oracle Forms 10g to "DESTYPE=FILE DESFORMAT=PDF DESNAME=directory/filename.pdf". I'm storing all the information about the file and printer information prior to it being run with the RUN_REPORT_OBJECT. What I want to happen is as soon as it finishes generating the file, I want (behind the scenes) is it to locate the file, open, and print it automatically, but never show the output to the user on the screen.
I know with the "DESTYPE=cache DESNAME=filename DESFORMAT=PDF" that it puts the info in the Reports Server / Cache directory, but also opens it in a separate browser window of which you can select the printer at that point. I don't want to do that in this option.
I previously tried to use the "DESTYPE=printer" option but, the issue with it has to deal with fonts. I do not want to store fonts on every printer, given the different types of printers our users have. I can print to the printer but the fonts are all messed up so, not an option.
So, basically I'm trying to replace that option with generating to a PDF, then I don't have to worry about fonts, since I have them all working, then I can just open the PDF file on the server and send to the printer. I was wondering if that is an option available in Oracle Forms when calling reports. I figured that when someone sends the option of "DESTYPE=printer" that it must be calling some shell script on Linux that handles this. I'm just not seeing it.
Any help is appreciated.
ChrisOk, one final question because I want to see how far this can go.
Can I issue this command via the HOST inside the form? Basically I'm telling it to open and send the file to the printer. The vFileName is the directory/filename stored on the Linux Server. I can execute this command on the command line of Linux and it works
HOST( 'lpr -P gt-ybs-ps /u11/app/as10g/tools/web/html/pc_rp00120100210035258.pdf');
I promise this is my last quesion.
Chris -
Access Denied to report file on Windows Server 2003 Enterprise
Hi,
I have a deployment problem for which I am out of ideas. I have an ASP.NET web site deployed on a server running Windows Server 2003 R2, sp2. It makes extensive use of Crystal Reports, including both displaying them and e-mailing them to specified recipients as PDF files. It all works great.
Now I need to port the web site to a different server, running Windows Server 2003 Enterprise, sp1. The reports display fine as long as I am not trying to convert it to PDF for e-mailng. When it gets to the following line in my code:
MemoryStream memStream = (MemoryStream)rptDoc.ExportToStream(ExportFormatType.PortableDocFormat);
It reports the following error:
Access denied.Error in File JobDetails {DC64A5D3-9DD7-4E4C-90F5-A08731409B29}.rpt:
Access to report file denied. Another program may be using it.
I finally got it to work by granting Modify permission to Everyone for the c:\Windows\Temp folder. Obviously this is not a good practice. Granting Full Control to the IUSR_servername account did not solve the problem on Windows Server Enterprise, although it did the trick on R2.
So the question is, which account needs which permission to the Temp folder to enable the PDF to get written?
Thanks.
DanWhat ever account the app is running under will need read / write permissions on the temp folder. Your working server should be a good place to look to see how the premissions were set there. The same will apply to any other server(?).
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports] -
RE: What's database field are used in crystal report file?
Hi all
Please help me a C# code that using Crystall Report API (Crystal Report XI- Develop license) to get the list of database fieldname that using in crystal Report file. (What's database field using in header section ,group section , detail section of report.....)
We looking forward to hearing from you
Thanks
SonHello Son,
please use this code below to get a list of used database fields in a report :
//File Name: CS_Get_report_data_out_inproc.sln
//Created: April 11, 2008
//Author ID: FLI
//Purpose: This C# .NET sample Windows application demonstrates
// how to retrieve report data and put the into a XML file
// using unmanaged RAS.
// Note this is available without a dedicated RAS with SP2 for XI R2
using System;
using System.IO;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using CrystalDecisions.CrystalReports.Engine;
using CrystalDecisions.ReportAppServer.ClientDoc;
using CrystalDecisions.ReportAppServer.Controllers;
using CrystalDecisions.ReportAppServer.DataDefModel;
namespace CS_Get_report_data_out_inproc
public partial class Form1 : Form
// CR Declarations
ReportDocument boReportDocument;
ISCDReportClientDocument boReportClientDocument;
public Form1()
InitializeComponent();
//Create a new ReportDocument
boReportDocument = new ReportDocument();
// load the RPT file
boReportDocument.Load("..
ReportData.rpt");
// show in reportviewer
crystalReportViewer1.ReportSource = boReportDocument;
private void button1_Click(object sender, EventArgs e)
//Access the ReportClientDocument in the ReportDocument (EROM bridge)
boReportClientDocument = boReportDocument.ReportClientDocument;
// Retrieve the Rowset Controller
RowsetController boRowsetController = boReportClientDocument.RowsetController;
// Retrieve the metadata (column headers) - this allows you to only retrieve the data that is on the report.
RowsetMetaData boRowsetMetaData = new RowsetMetaData();
Fields boFields = boReportClientDocument.DataDefinition.ResultFields;
boRowsetMetaData.DataFields = boFields;
// Now print out the data in XML file
//(Note: This will print out the results of formulas too)
StreamWriter sw = new StreamWriter("C:
ReportData.xml", false);
sw.WriteLine("<?xml version='1.0' encoding='utf-8'?>");
sw.WriteLine("<ReportData>");
sw.WriteLine("<Reportheader>");
// Print out the titles
for (int i = 0; i < boFields.Count; i++)
String boFieldName = boFields<i>.Name;
sw.WriteLine("<ReportheaderDetail>" + boFieldName + "</ReportheaderDetail>");
sw.WriteLine("</Reportheader>");
//Create the cursor which lets us loop through the data
RowsetCursor boRowsetCursor = boRowsetController.CreateCursor(null, boRowsetMetaData, 1);
Record boRecord;
while (boRowsetCursor.IsEOF == false)
sw.WriteLine("<Customer>");
boRecord = boRowsetCursor.CurrentRecord;
for (int j = 0; j < boFields.Count; j++)
try
sw.WriteLine("<Detail>" + (String)boRecord[j].ToString() + "</Detail>");
catch (Exception err)
sw.WriteLine("<Error>" + err.Message + "</Error>");
sw.WriteLine("</Customer>");
boRowsetCursor.MoveNext();
sw.WriteLine("</ReportData>");
// CLose the file
sw.Close();
MessageBox.Show("XML File 'ReportData.xml' successfully created on C:"); -
Retrieve crystal report file print settings
I have crystal reports 10 report file, in which I edited the printer settings... collate and number of copies(2) and saved it.
now i want to print it from VB6. I am using a customized print dialog form (not using the common dialog control)
I want to get the collate and number of copies settings from the rpt file. how can I get those details. any API available?Hello Sankar ,
as you refer to the legacy technology VB6 I recommend to post this query to the [Legacy Application Development SDKs|SAP Crystal Reports - Legacy SDKs; forum.
This forum is dedicated to topics related to legacy SDKs, including the Report Designer Component (RDC), OCX, VCL, and Crystal Reports Print Engine (CRPE).
It is monitored by qualified technicians and you will get a faster response there.
Also, all Legacy Application Development SDKs queries remain in one place and thus can be easily searched in one place.
Thanks a lot,
Falk -
View Crystal Report File from SDK
Hello All,
I want to View Crystal Report File (.rpt file) from SDK (using VB 6 )
I have already try following code on my Add On :
Public Sub RunCrystalReport()
Dim crlApp As New CRAXDDRT.Application
Dim crlRep As CRAXDDRT.Report
Set crlRep = crlApp.OpenReport("D:\ReportTest.rpt")
Dim CRAX2 As CrystalActiveXReportViewerLib12Ctl.CrystalActiveXReportViewer
Set CRAX2 = Form2.CRAX
CRAX2.ReportSource = crlRep
CRAX2.ViewReport
End Sub
But, nothing happen
Could some one help one for this ?
Thanks a lot
Regards,
Arie
SDK BeginnerAmazing Sir !!...
I could run my report through B1 SDK right now...
Many thanks to you Sir..
Just one more thing, The Horisontal and Vertivcal Scroll control wasn't appear. Do I have to add scroll object or someting like that
Many thanks again to you Mr. Porcelli
Arie
Maybe you are looking for
-
Backup with retention policy to recovery window of N days
Hello, I've issued command to create database incremental backup with configuration: run configure retention policy to recovery window of 14 days; backup incremental level 1 cumulative tag daily_incr_14_days database plus archivelog del
-
Start managed server with the node manager???
Hello, I have one admin server and one managed server for my domain. Can i Start the amdin and managed server from the node manager and not just the admin server. Currently with the install of node manager only the admin server starts and not the man
-
Finding a location on an image
Hello folks I had posted a topic about zoomin a part of an image which I wanted for my project but now I want to add one thing and that is, I am having an image which is a city map and I want to find the pixel location of a particular area on the map
-
Slow report - more than 20000 rows
When i use a pagination refresh page take more than minute for every page(much to slow). without pagination less then second. how can i solve pagination without visible loosing performance?
-
Is it possible to backup files on a Satellite A-215/ S7416 Laptop using a USB Flash Drive and if so, how? My optical disc drive will not work anymore. If not possible, are there any other alternatives? I am using a Windows Vista O.S. and Internet