Buy now displayed.

This Forum is for the use of Clarion For Windows - Software Developers requiring help and assistance for Tracker Software's PDF-XChange Printer Drivers SDK (only) - Please use the PDF-Tools SDK Forum for Library DLL assistance.

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Sean - Tracker, Chris - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software, Tracker - Clarion Support, John - Tracker Supp, Support Staff, moderators

Post Reply
Bradnams
User
Posts: 26
Joined: Fri Jan 21, 2005 2:30 am
Location: Australia
Contact:

Buy now displayed.

Post by Bradnams » Mon Jul 05, 2010 5:14 am

Hi Guys,

I've converted the crwpxc40.exe to Clarion 7 and that works fine after making a small change to the template. (see other issue raised)

But in my main application the "buy now" signs are displayed. So I created a small app doing mostly the same as the sample but that two is displaying the buy now signs. There are some different settings between the two apps but that should not affect it should it? Could it be a timing issue?

Regards,
Attachments
ReportWriterReportEngine.zip
Example application.
(14.23 KiB) Downloaded 222 times

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Buy now displayed.

Post by Tracker - Clarion Support » Mon Jul 05, 2010 3:07 pm

Hi!

I'll check this out also. No one else has mentioned this.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Bradnams
User
Posts: 26
Joined: Fri Jan 21, 2005 2:30 am
Location: Australia
Contact:

Re: Buy now displayed.

Post by Bradnams » Wed Jul 07, 2010 10:19 pm

Any progress on this one?

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Buy now displayed.

Post by Tracker - Clarion Support » Thu Jul 08, 2010 2:12 am

Hi!

Working on it.

It's acting as if it's not using the correct virtual printer, but I'm not sure why.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Buy now displayed.

Post by Tracker - Clarion Support » Thu Jul 08, 2010 6:07 pm

Hi!

I have your solution!

After running debugger to trace the code path, I discovered that you hadn't done something that's vital to making the PDF-Driver work properly.

The way you had CallReportWriter coded, the Source procedure would exit immediately after calling ReportWriter. This would in turn cause the Driver class Destruct to fire, and that would destroy all the info about the virtual printer. You have to WAIT after calling the remote print until the EVENT:PXCDRV4_DocSaved is fired by the PDF-XChange Driver, and detected by the Window ACCEPT loop! It's in the crwpxc40.app that way and also documented.

I corrected your code to perform properly by changing CallReportWriter to a Window procedure and adding in the appropriate coding.
Attachments
RW.zip
Corrected example
(18.48 KiB) Downloaded 243 times
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Bradnams
User
Posts: 26
Joined: Fri Jan 21, 2005 2:30 am
Location: Australia
Contact:

Re: Buy now displayed.

Post by Bradnams » Thu Jul 08, 2010 9:01 pm

Thanks Craig,

I thought it's probably something I'm doing wrong. :oops:

Tested and working.

Thanks again.

Tracker - Clarion Support
Site Admin
Posts: 1412
Joined: Wed Jun 30, 2004 4:45 pm
Location: Maryland, USA
Contact:

Re: Buy now displayed.

Post by Tracker - Clarion Support » Thu Jul 08, 2010 10:31 pm

Hi!

No problem! :) Glad to help.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

Post Reply

Return to “PDF-XChange Drivers (only) API SDK - For Clarion For Windows Developers only Please”