Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: DF 19.1 Order Sample - Error loading DR

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2009
    Location
    Brazil
    Posts
    5,447

    Default DF 19.1 Order Sample - Error loading DR

    Hi DAW

    Posting this here, because faced issue running order sample.. but feel free to move it to DR forum if the case.

    I don't have DR, never had.

    Today I tried to compile and run Order sample (not web), compiled and when the app started.. got this error:
    Erro no DataFlex Reports. Impossível carregar DataFlex Reports 2018 Developer Edition API.ocx (Versão 6.2)

    Translating should be something like:

    Error in DataFlex Reports. Unable to load DataFlex Reports 2018 Developer Edition API.ocx (Version: 6.2)
    Don't remember having this issue in the past.
    Samuel Pizarro

  2. #2
    Join Date
    Feb 2009
    Location
    Hengelo, Netherlands
    Posts
    10,869

    Default Re: DF 19.1 Order Sample - Error loading DR

    Samuel,

    DataFlex 19.1 comes with live DataFlex Reports examples and for that the installation contains a demo version of the OCX (DataFlex Reports 2018 Demo Edition API.ocx).

    The cDRAPI.PKG file in the DataFlex Reports library in the 19.1 example contains code that instructs to load this demo ocx.

    So there is something on your machine that let is 'think' it should use the developer edition OCX. I have no explanation for that.
    Regards,
    Data Access Worldwide
    Vincent Oorsprong

  3. #3
    Join Date
    Feb 2009
    Location
    Brazil
    Posts
    5,447

    Default Re: DF 19.1 Order Sample - Error loading DR

    Me neither

    that’s why I posted this. I never installed DR here. Only thing I ha been doing regard DAW’s product was uninstalling and installing df 2020 preview releases.

    Is there any way to debug this to determine why it’s looking for it?
    Samuel Pizarro

  4. #4
    Join Date
    Feb 2009
    Location
    Hengelo, Netherlands
    Posts
    10,869

    Default Re: DF 19.1 Order Sample - Error loading DR

    Samuel,


    • Go to the examples\dataflex reports folder (e.g. C:\Examples\DataFlex 19.1 Examples\DataFlex Reports)
    • Open cDRAPI.PKG
    • Go to the end of the file
    • See what component it tries to use
    • Should be: DataFlex Reports 2018 Demo Runtime with CLSID: {72EFE658-9743-42E3-83E9-B568BE9F5799}
    • It this is not the case the demo library folder is "corrupted"
    • I have no idea how this happened
    Regards,
    Data Access Worldwide
    Vincent Oorsprong

  5. #5
    Join Date
    Sep 2016
    Location
    São Paulo - Brazil
    Posts
    682

    Default Re: DF 19.1 Order Sample - Error loading DR

    Hi, Vincent

    It may be that the problem is, with the Portuguese version, because I also never managed to use and see these examples, without installing DR.

    As I performed a test yesterday, downloading and installing DR 2020, I finally got to see the reports and examples in DR.

    Regards,

  6. #6
    Join Date
    Feb 2009
    Location
    Brazil
    Posts
    5,447

    Default Re: DF 19.1 Order Sample - Error loading DR

    I have the same CLSID

    Code:
    // CoClass
    // ProgID: DRAPI.Demo.6.2
    // CLSID: {72EFE658-9743-42E3-83E9-B568BE9F5799}
    // DataFlex Reports 2018 Demo Runtime
    { CLSID="{72EFE658-9743-42E3-83E9-B568BE9F5799}" }
    Class cDataFlexReportsAPI is a cComActiveXControl
        Import_Class_Protocol cCom_DataFlexReportsAPI
        Import_Class_Protocol cCom_DataFlexReportsAPIEvents
    
        Procedure Construct_Object
            Forward Send Construct_Object
            Set psProgID to "{72EFE658-9743-42E3-83E9-B568BE9F5799}"
            Set psEventId to "{8703066E-B5E6-4BBC-9234-91D67111964A}"
            Set peAutoCreate to acDeferredAutoCreate
        End_Procedure
    End_Class
    Any other place to look ? Does the .ocx get deployed as part of the examples ? Where it should be ? Does it has to be registered ? Maybe the COM register is missing (for some obscure reason ?)
    Samuel Pizarro

  7. #7
    Join Date
    Feb 2009
    Location
    Hengelo, Netherlands
    Posts
    10,869

    Default Re: DF 19.1 Order Sample - Error loading DR

    Samuel,

    The "DataFlex Reports 2018 Demo Edition API.ocx" is one of the binary files in the DataFlex Bin folder.

    But I have discovered why the error shows "DataFlex Reports 2018 Developer Edition API.ocx"; the cDR.h.pkg in the demo library folder contains:
    Code:
    Define C_DR_OCX_NAME       for "DataFlex Reports 2018 Developer Edition API.ocx"
    and that is misleading.

    So your guess that the OCX is not registered (anymore) is a very good one.

    The text string is already correct in the DataFlex 2020 environment.
    Last edited by Vincent Oorsprong; 27-May-2020 at 02:06 AM.
    Regards,
    Data Access Worldwide
    Vincent Oorsprong

  8. #8
    Join Date
    Feb 2009
    Location
    Brazil
    Posts
    5,447

    Default Re: DF 19.1 Order Sample - Error loading DR

    Ok.

    It was really un-registered for some (obscure) reason.
    Manually registered it with regsvr32 cmd and the error is gone.

    Got unregistered by DF 20 installation ?

    Regards
    Samuel Pizarro

  9. #9
    Join Date
    Feb 2009
    Location
    Hengelo, Netherlands
    Posts
    10,869

    Default Re: DF 19.1 Order Sample - Error loading DR

    Samuel,

    Got unregistered by DF 20 installation ?
    I doubt it as each COM module has its own GUID.
    Regards,
    Data Access Worldwide
    Vincent Oorsprong

  10. #10
    Join Date
    Feb 2009
    Location
    Brazil
    Posts
    5,447

    Default Re: DF 19.1 Order Sample - Error loading DR

    But there wasn’t a period where one of initial df 20 previews was still sharing the same DR version shipped with 19.1?

    So when it got uninstalled, dr ocx got unregistered. But then latest df 20 release registered a new dr ocx release?

    anyway, It’s working now. No need to chase the ghosts here.
    Thanks again
    Last edited by Samuel Pizarro; 29-May-2020 at 12:04 PM.
    Samuel Pizarro

Page 1 of 2 12 LastLast

Posting Permissions

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