CPCS example app problem

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, Chris - Tracker Supp, Vasyl-Tracker Dev Team, Sean - Tracker, John - Tracker Supp, Tracker Supp-Stefan, Ivan - Tracker Software, Tracker - Clarion Support, Support Staff, moderators

Post Reply
Posts: 102
Joined: Mon Oct 23, 2006 6:54 pm

CPCS example app problem

Post by dmjung » Wed Mar 23, 2011 3:51 pm

I don't think the cabpdf40.app example program is working as described. It looks like you intend to bring the preview up and then can create a pdf using a CPCS user defined button, but I don't see in the code where the user defined button's variable (swMakePdf) ever gets used by pdf-tools and you never get to the cpcs previewer in any event.

I started to tinker with the example app since that's the behavior I want to implement--bring up the cpcs previewer and then let the user create a pdf if desired--but thought I'd find out what's the recommended method to do this. (I'm actually in a legacy template app, but figured I could backtrack from the ABC app.)


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

Re: CPCS example app problem

Post by Tracker - Clarion Support » Wed Mar 23, 2011 8:10 pm

Hi David!

You should be looking at clgpdf40.app since that's the CPCS Legacy demo app.

However, it's not set up for the User Defined Button handling in CPCS. That's easy to handle though.
  • To the Data section, add swMakePdf as a BYTE.
  • On the CPCS template, the second Advanced tab (next to last tab), set up the first User Defined Button to use swMakePdf and to use the MakePDF.ico icon file which should be in your 3rdparty\Images folder. Set the description to Generate PDF.
  • On the PDF-Tools Report Extension template, on the Previewer tab, set the top item to IF <var> and set the VAR field after it to swMakePdf. I would also go to the bottom of that tab and set Hardcopy to No - Never.
That's all there is to it.
Craig Ransom
Tracker Software - Clarion Support

Posts: 3
Joined: Thu Oct 06, 2016 11:08 am

Re: CPCS example app problem

Post by BarneyJ » Fri Oct 07, 2016 1:49 pm

Try to look here http://djangostars.com/blog/ . Helped me several times. Good luck!

User avatar
Tracker Supp-Stefan
Site Admin
Posts: 14888
Joined: Mon Jan 12, 2009 8:07 am
Location: London

Re: CPCS example app problem

Post by Tracker Supp-Stefan » Fri Oct 07, 2016 2:19 pm

Hello BarneyJ,

You are bringing up a post from 5 yeas ago. Is there any particular reason for you to do so?


Post Reply

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