MyPDF:Device variable generated by Extension Template

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
griffo
User
Posts: 18
Joined: Wed Oct 05, 2005 3:39 pm
Location: DownUnder

MyPDF:Device variable generated by Extension Template

Post by griffo » Wed Oct 10, 2007 2:49 am

Hi Craig/John

In all my past PDF printer driver projects, I have always used handcoding. But after upgrading and trying to use the Extn template this now generates a compile error..

!*** PDFXC Driver v3.6 Start (Code)
MyPDF.Kill()
PRINTER{PROPPRINT:Device} = CLIP(MyPDF:Device)
!*** PDFXC Driver v3.6 End

I have managed to put an OMIT around the section, and handcoded the call to KILL and all is OK, I searched the LibSrc for "Device" and could not find the variable declaration anywhere.

JohnG

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

Post by Tracker - Clarion Support » Wed Oct 10, 2007 3:08 pm

Hi griffo!

It appears as if you might have an earlier version of the template.

Please try the attached and see if this resolves your problem.
Attachments
pxcdrv36tpl.zip
pxcdrv36.TPL
(30.35 KiB) Downloaded 236 times
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

griffo
User
Posts: 18
Joined: Wed Oct 05, 2005 3:39 pm
Location: DownUnder

Post by griffo » Thu Oct 11, 2007 12:18 am

Hi Craig

Thanks for the new template.. I see it has many differences to the V3.60 that I had.

But, it references a file pxcdrv36.inc that I dont have so now no source generates. :(

My earlier tpl file was named pdfxdv36.tpl dated April 2007

JohnG

griffo
User
Posts: 18
Joined: Wed Oct 05, 2005 3:39 pm
Location: DownUnder

Post by griffo » Thu Oct 11, 2007 12:37 am

griffo wrote:Hi Craig

Thanks for the new template.. I see it has many differences to the V3.60 that I had.

But, it references a file pxcdrv36.inc that I dont have so now no source generates. :(

My earlier tpl file was named pdfxdv36.tpl dated April 2007

JohnG
Also, I see that pxcdrv36.INC references pxcdrv36.CLW which is also missing...

I did download and run the installer PDFXV3SDKPRO_CW.zip yesterday.

Is there some other download I should be using?

Thanks
John Griffiths

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

Post by Tracker - Clarion Support » Thu Oct 11, 2007 12:42 am

Hi griffo!

My bad! You need the new class files also.
Attachments
pxcdrv36.zip
Template & Class files
(46.24 KiB) Downloaded 237 times
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

griffo
User
Posts: 18
Joined: Wed Oct 05, 2005 3:39 pm
Location: DownUnder

Post by griffo » Thu Oct 11, 2007 6:23 am

Hi Craig

Thanks for those files.. :D All works again but for a small problem with the genned Legacy code. Here is what I see and how I fixed my .CLW output...


OMIT('!*** PDFXC Driver v3.6a Omit (Legacy)')
!*** PDFXC Driver v3.6a End
ENDPAGE(Report)
IF NOT SkipPreview THEN
ReportPreview(PrintPreviewQueue)
ELSE
GlobalResponse = RequestCompleted
END
IF GlobalResponse = RequestCompleted
FREE(LocalOutputFileQueue)
LOOP PreviewQueueIndex=1 TO RECORDS(PrintPreviewQueue)
GET(PrintPreviewQueue,PreviewQueueIndex)
IF NOT ERRORCODE() THEN
LocalOutputFileQueue.FileName = PrintPreviewQueue.FileName
ADD(LocalOutputFileQueue)
END
END
Do ProcessOutputFileQueue
FREE(LocalOutputFileQueue)
Report{PROP:FlushPreview} = True
END
END ! <- CRAIG NOTE1 !IF LocalResponse = RequestCompleted
!
!*** PDFXC Driver v3.6a Omit (Legacy)
END ! <- CRAIG NOTE2
CLOSE(Report)
FREE(PrintPreviewQueue)

Attn: CRAIG Notes:-
NOTE1 The generated OMIT is including/encasing the END statement at NOTE1
NOTE2 If I add the END statement after the
"!*** PDFXC Driver v3.6a Omit (Legacy)"
tail of the omit, then all compiles and runs.
Might need a small tweak to
keep old Legacy users like myself happy!

I shall see if I can fix my template here.
Should be a simple enough fix that I can do it...

Thanks again for the updated files.
John Griffiths

John - Tracker Supp
Site Admin
Posts: 8202
Joined: Tue Jun 29, 2004 10:34 am
Location: Vancouver Island - Canada
Contact:

Post by John - Tracker Supp » Mon Mar 24, 2008 7:44 pm

Thanks John.
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com

Post Reply

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