Help with CFObject & Crystal reports

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Help with CFObject & Crystal reports

    We are trying to export crystal report files using the com object method and
    have run into a problem.

    <cftry>
    <cfobject class="CrystalRuntime.Application.9" action="connect" name="cr">
    <cfcatch>
    <cfobject class="CrystalRuntime.Application.9" action="create" name="cr">
    </cfcatch>
    </cftry>
    <cfscript>
    crEFTPortableDocFormat = 5;
    crEDTDiskFile = 1;

    rpt = cr.openreport("C:\report.rpt");
    rpt.DiscardSavedData();

    crExportOptions = rpt.ExportOptions;
    crExportOptions.DiskFileName = "C:\Exported.pdf";
    crExportOptions.FormatType = crEFTPortableDocFormat;
    crExportOptions.DestinationType = crEDTDiskFile;
    rpt.RecordSelectionFormula = "{tblServiceOrders.SONumber} = 800145";
    rpt.export();

    </cfscript>

    it seems to be hanging on the export function.

    I have tried rpt.export(false); and get " The cause of this exception was
    that: AutomationException: 0x80020005 "

    Any help is appreciated.

    Steve

    Steve O'Neal Guest

  2. Similar Questions and Discussions

    1. Crystal Reports
      Hola, Actualmente me encuentro trabajando con Crystal Reports y he tenido algunas dudas acerca del funcionamiento que espero me puedan resolver....
    2. Crystal Reports + ASP again
      Well I'm just a student wanting an economical approach in incorporating crystal reports with ASP so can anyone tell me how to handcode to use...
    3. Using Crystal Reports with PHP
      Our company intranet is strictly PHP-based. However, one of my new projects is to publish on-demand reports generated in Crystal Reports 9. Has...
    4. How to use Crystal Reports 8.5 in ASP v 3
      HI, I have created a report in Crystal Reports 8.5 and want to display it on my clients webpage. I will develop this webpage in ASP v3 so plz give...
    5. Help with Crystal Reports?
      Hello, Questions 1. Can I use stored procedures with Crystal in VS ASP VB 2003 and if so how? 2. Is there a good how to white paper for VB...
  3. #2

    Default Re: Help with CFObject & Crystal reports

    I have since added :

    rpt.database.LogOnServer("PDSODBC.DLL", "TigerpawSQL", "Tigerpaw", "sa", "password");


    but I still get login failed for user 'sa'.
    Steve O'Neal Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139