PDF-XChange - Tracker PDF Viewer - TIFF-XChange - Image-XChange - XMF-XChange - Raster-XChange - Support

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

 
dmjung
User
Topic Author
Posts: 102
Joined: Mon Oct 23, 2006 6:54 pm

CPCS example app problem

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.)

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

Re: CPCS example app problem

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
http://www.tracker-software.com
 
BarneyJ
User
Posts: 3
Joined: Thu Oct 06, 2016 11:08 am

Re: CPCS example app problem

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: 11332
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: CPCS example app problem

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?

Regards,
Stefan

Who is online

Users browsing this forum: No registered users and 1 guest