I was able to determine the correct Class name by using the Microsoft Ole/Com viewer.
The error I currently get is as follows: --------------- An exception occurred when executing a Com method. The cause of this exception was that: AutomationException: 0x80004002 - . The error occurred in C:\Inetpub\wwwroot\reports\cfaxcr.cfm: line 13 11 : 12 : <cfscript> 13 : crobj.ReportSource=""; 14 : crobj.ViewReport(); 15 : --------------- The code I am using is as follows: --------------- <cfobject type="com" action="create" class= "CRViewer9.CRViewer.9.2" name="crobj"> <cfscript> crobj.ReportSource=""; crobj.ViewReport(); </cfscript> --------------- The error occurs when I try to set the ReportSource property. I doesn't matter what I put in there, it throws this error. (hence why its currently blank) I've tried: C:\Inetpub\wwwroot\reports\test.rpt http://localhost/reports/test.rpt \\pcname\reports\test.rpt test.rpt The first 3 should be valid paths, but the error never changes. I'm starting to think that the ReportSource property is actually a structure or something else special, but I can't find any hint as to what it should be. A CFDUMP on crobj.ReportSource says it doesn't exist, even thought the Crystal Reports Developer's Help says the following is all that is required to make this work: --------------- Private Sub Form1_Load() Dim report As New CrystalReport1 CRViewer1.ReportSource = report CRViewer1.ViewReport End Sub --------------- Apart from the error in this code, the thing that I can't understand is how any of this code will ever open the activex viewer in the users browser to actually view the report. There must be some html code that loads the activex viewer file to the users browser and then the html need to know where on the page to put it. I can find no example of this display part of what this viewer is supposed to do. Not even an ASP version. Even if I can find some html to load the activex, I can't see how it will be controlled by the COM object that was created and modified in the CF page back on the server. I'm specifically not after a html conversion of a crystal report, because it looks awful when you do, and images and charts all break. This activex (from the Crystal Reports SDK cd) is supposed to open an activex window in the html and show the crystal report in all its natural glory. Sadly, I'm starting to think that the frequent Macromedia claim that CF supports Crystal Reports is at best some marketing fluff that may have been true in the distant past, and at worst, just a bold faced lie. Regards Darren Tracey > -----Original Message----- > From: Gary Menzel [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 29 July 2003 12:39 PM > To: CFAussie Mailing List > Subject: [cfaussie] Re: com objects, activex and CF > > > > Can anyone help or even just direct me to somewhere where I > can find > help? > > Just let me clarify Darren..... > > You aren't getting any errors as such, you just dont see how you can > obtain the output? > > Does that mean the API for the COM object is incomplete? I would be > checking to see if it supported a "toString" method - or something > similar. > > As you know, I have been very unhappy with Crystal Reports as > I have not > been able to get it to work at all (assuming that is what you > are trying > to do). > > > Gary Menzel > IT Operations Brisbane -+- ABN AMRO Morgans Limited > Level 29, 123 Eagle Street BRISBANE QLD 4000 > PH: 07 333 44 828 FX: 07 3834 0828 > ************************************************************** > ************** > If this communication is not intended for you and you are not > an authorised > recipient of this email you are prohibited by law from dealing with or > relying on the email or any file attachments. This > prohibition includes > reading, printing, copying, re-transmitting, disseminating, > storing or in > any other way dealing or acting in reliance on the > information. If you > have received this email in error, we request you contact ABN > AMRO Morgans > Limited immediately by returning the email to > [EMAIL PROTECTED] > and destroy the original. We will refund any reasonable costs > associated > with notifying ABN AMRO Morgans. This email is confidential > and may contain > privileged client information. ABN AMRO Morgans has taken > reasonable steps > to ensure the accuracy and integrity of all its > communications, including > electronic communications, but accepts no liability for materials > transmitted. Materials may also be transmitted without the > knowledge of ABN > AMRO Morgans. ABN AMRO Morgans Limited its directors and > employees do not > accept liability for the results of any actions taken or not > on the basis > of the information in this report. ABN AMRO Morgans Limited and its > associates hold or may hold securities in the > companies/trusts mentioned > herein. Any recommendation is made on the basis of our > research of the > investment and may not suit the specific requirements of clients. > Assessments of suitability to an individual's portfolio can > only be made > after an examination of the particular client's investments, financial > circumstances and requirements. > ************************************************************** > ************** > > > --- > You are currently subscribed to cfaussie as: [EMAIL PROTECTED] > To unsubscribe send a blank email to > [EMAIL PROTECTED] > > MX Downunder AsiaPac DevCon - http://mxdu.com/ > --- You are currently subscribed to cfaussie as: [EMAIL PROTECTED] To unsubscribe send a blank email to [EMAIL PROTECTED] MX Downunder AsiaPac DevCon - http://mxdu.com/
