NetTalk Central

Author Topic: Multi DLL Problem ((PDF Tools Example))  (Read 6860 times)

johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
Multi DLL Problem ((PDF Tools Example))
« on: June 13, 2013, 12:17:25 AM »
Hi Bruce

I try to get a multi dll app running. Everything compiles, but when I start it in the web browser, I immediately comes up with the EXCEPTION window with the close application.

Can you take a look at the example please.

Regards
Johan

[attachment deleted by admin]
« Last Edit: June 28, 2013, 04:37:09 AM by johanco123 »

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Multi DDL Problem
« Reply #1 on: June 13, 2013, 07:18:44 AM »
I get link errors when compiling the exe -
Unresolved External for the PDF stuff.

I'm guessing you need to read the PDF Tools docs to see how to set that up for multi-dll? I don't know the details for that.
Perhaps do that, then repost the example?

cheers
Bruce

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Re: Multi DDL Problem
« Reply #2 on: June 14, 2013, 04:07:11 AM »
Bruce, Johan, Yes,

I have been trying for a few days to weeks now to get this to work too.

The ideal example will have the following:

- Multi DLL NetTalk App
- Multi DLL DeskTop App
- With a PDFTool (4.1) example that can print from both App's (ie a Report.DLL)

Getting the multi-DLL NetTalk App to work has been quite frustrating with the 'Access Violation Errors', thus making it difficult to get that part of the App to work.  Adding a Report.DLL makes it impossible.

Where I managed not to get Errors, either the report in the NT app work, or the report in the DeskTop app.  I think some logic has broken somewhere, but I struggle so much to make an example app to demonstrate this I have given up.

Bruce, please see whether you can construct some example app like this, or if you wish, I can send you 2 of my attempts on 2 different apps (the PDF Tools 4.1 example posted here last week or the Multi-DLL app).  Don't know where else to go with this.

Thanks
Charl

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Multi DDL Problem
« Reply #3 on: June 14, 2013, 05:34:36 AM »
I guess if Johan posts back the earlier example, with the PDF stuff added, that will be a starting point.

cheers
Bruce

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Re: Multi DDL Problem
« Reply #4 on: June 19, 2013, 04:04:00 AM »
Bruce,

Right, here is the ideal example  ;)   Johan got the App right, sent it to me and I've made the DeskTop app.

And as predicted and experienced elsewhere, we cannot get the Report in the DLL to work as per the documentation.

So in the attachment, Names.app is the NetTalk app, DeskTop.app the desktop app, the report is in dll Na_Reports.app.  Password and username for the NetTalk app is demo and demo.

Please have a look at why the Report only works in the NetTalk app and does not show on the DeskTop app.

Thanks

Charl

Clarion 8.0.8973, NetTalk 7.10, StringTheory1.84, PDFTools 4.1


[attachment deleted by admin]

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Re: Multi DDL Problem
« Reply #5 on: June 24, 2013, 04:05:13 AM »
Yes, and, Please?

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Multi DDL Problem
« Reply #6 on: June 24, 2013, 10:42:20 PM »
Hi Charl,

can you check the example and rep-post please.
When I compile the Na_Reports.app I get lots of "Unresolved External" errors for the PDF stuff. There's also no PDF extension in the Data dLL (which I was expecting.)
So maybe you had the app open (unsaved) when you zipped the example?

Anyway please check and repost please.

cheers
Bruce

charl99

  • Full Member
  • ***
  • Posts: 185
    • View Profile
    • Email
Re: Multi DDL Problem
« Reply #7 on: June 28, 2013, 12:27:03 AM »
Example checked, there is no problem.  I downloaded the upload to new directory, unzipped, compiled, no errors.

Maybe here is a problem:  Clarion 8.0.8973, NetTalk 7.10, StringTheory1.84, PDFTools 4.1 ?

I've added the PDF Tools Extension to the data app as per your suggestion, still compiles fine (here).

I now attach the whole directory as example.  Please have a look.

Thanks

[attachment deleted by admin]

johanco123

  • Full Member
  • ***
  • Posts: 245
    • View Profile
    • Email
Re: Multi DLL Problem ((PDF Tools Example))
« Reply #8 on: June 28, 2013, 04:44:21 AM »
Hi Bruce

I update the example. The pdf report print in the desktop app with Tracker V4.1.

The pdf report print in the web browser with Tracker 4.1, BUT the problem is that when the pdf file opens in the web browser, it also opens a windows pdf file, but cannot find the file. The problem is that it must only open the pdf in the web browser and not in windows as well.

NT7.12 StringTheory 1.90 and Trackersoft V4.1

Please find the example file as attached.

Kind regards
Johan

[attachment deleted by admin]

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11250
    • View Profile
Re: Multi DLL Problem ((PDF Tools Example))
« Reply #9 on: July 01, 2013, 06:56:16 AM »
Hi Johan,

In your example, rpt_names app, global pdf tools extension, Previews tab, you have
Run Print Previewer: Yes - Always

In the local report extension this is set to
Run Print Previewer: No - Never.

Unfortunately though the global extension settting seems to win as the PDF template generates;

PDFXTR1.SetPreview(True)

I have added a bit to the nettalk template so that if it is running in Web mode this automatically sets;

PDFXTR1.SetPreview(False)

and I think that will solve your problem.
so keep an eye out for build 7.13

cheers
Bruce