Missing something simple

This Forum is for the use of Clarion For Windows - Software Developers requiring help and assistance for Tracker Software's PDF-Tools SDK of Library DLL functions(only) - Please use the PDF-XChange Drivers API SDK Forum for assistance with all PDF Print Driver related topics.

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

Post Reply
rockyp
User
Posts: 5
Joined: Fri Apr 03, 2009 11:32 pm

Missing something simple

Post by rockyp » Sat Oct 12, 2013 10:14 pm

I am trying to make a one-proc app to print multiple PDFs. I used your example pvxprt20.app in the viewer examples. So I copied that app to make a stand-alone print program… I fill the print queue from a loop through a file rather than use the ADD button in your example. The queue is loaded with PDF names as it should, but when I click the PRINT button, nothing prints. I have followed the program in the debugger, and it does loop through the queue in the print routine, seems to load the document, and executes the “PXCVAX1.PrintDocument(DocID, aSettings)” line, yet nothing goes to the printer. If I run your example program, it does print. Do you have any idea what I may have missed when copying it to my C6 app folder?

Thanks,
Rocky

rockyp
User
Posts: 5
Joined: Fri Apr 03, 2009 11:32 pm

Re: Missing something simple

Post by rockyp » Sat Oct 12, 2013 10:17 pm

More information: Here is the PrintFiles routine from your example and my copy.

PrintFiles ROUTINE

DATA

P LONG
DocID LONG

aSettings LIKE(PrintSettings)

CODE
!Settings
aSettings.PrinterName = SelectedPrinter
aSettings.RangeType = PXCVA_RANGETYPE_ALL
aSettings.PrintToFile = False
aSettings.RangeFilter = PXCVA_RANGEFILTER_ALL
aSettings.PaperRotate = PXCVA_RANGEFILTER_ALL
aSettings.ScaleType = PXCVA_PST_NONE
aSettings.AutoRotate = True
aSettings.AutoCentre = True
aSettings.PaperByPage = True
!Printing
LOOP P = 1 TO RECORDS(List1:Queue)
GET(List1:Queue,P)
PXCVAX1.OpenDocument(List1:Queue.PdfFileName, '', DocID, PXCVA_NoUI)
PXCVAX1.PrintDocument(DocID, aSettings) <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< This doesn't seem to work
PXCVAX1.CloseDocument(DocID, PXCVA_NoUI)
END !LOOP

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

Re: Missing something simple

Post by Tracker Supp-Stefan » Mon Oct 14, 2013 8:21 am

Hello rockyp,

Welcome to our forums. I've passed your question to our Clarion expert and he will post back here as soon as he has any further advise for you.

Regards,
Stefan

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

Re: Missing something simple

Post by Tracker - Clarion Support » Mon Oct 14, 2013 4:33 pm

Hi Rocky!

Are you sure all your filenames are fully-qualified?
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

rockyp
User
Posts: 5
Joined: Fri Apr 03, 2009 11:32 pm

Re: Missing something simple

Post by rockyp » Tue Oct 15, 2013 6:59 pm

Yes, full path and file name. The value of DocID is zero - does that mean anything?

In this line: PXCVAX1.PrintDocument(DocID, aSettings)

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

Re: Missing something simple

Post by Tracker - Clarion Support » Tue Oct 15, 2013 7:05 pm

Hi Rocky!

ZERO?! It should be a positive number from 1 up to 4095. No wonder nothing is printing!

Check the DocID after OpenDocument - that must be a valid DocID (1-4095). If it isn't the document has not opened correctly.

Also, double-check List1:Queue.PdfFileName and make sure it exists.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

rockyp
User
Posts: 5
Joined: Fri Apr 03, 2009 11:32 pm

Re: Missing something simple

Post by rockyp » Wed Oct 16, 2013 7:18 pm

Got that sorted - the files to print were on my customer's server, not here, so there were no files to open... My bad!

Now, next problem... I downloaded the latest versions of the software, and now I get the danged DEMO watermark again. I'm using the same TSP_LICS file as before. I don't think I downloaded anything invalid, but now the codes I have been using don't work. The customer called me a bit ago complaining that there were watermarks all over their statements.

Help!!! :!:

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

Re: Missing something simple

Post by Tracker - Clarion Support » Wed Oct 16, 2013 7:54 pm

Hi Rocky!

Have you changed your serial number since this past May?

Please contact support@tracker-software.com with your current serial number to find out if you need a new one.
Craig Ransom
Tracker Software - Clarion Support
http://www.tracker-software.com

rockyp
User
Posts: 5
Joined: Fri Apr 03, 2009 11:32 pm

Re: Missing something simple

Post by rockyp » Wed Oct 16, 2013 8:50 pm

Okay, I'll check. Thanks.

User avatar
Will - Tracker Supp
Site Admin
Posts: 6659
Joined: Mon Oct 15, 2012 9:21 pm
Location: London, UK
Contact:

Re: Missing something simple

Post by Will - Tracker Supp » Wed Oct 16, 2013 9:04 pm

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

Will Travaglini
Tracker Support (Europe)
Tracker Software Products Ltd.
http://www.tracker-software.com

Post Reply

Return to “PDF-Tools SDK (DLL Libraries Only) - Clarion For Windows Developers Only Please”