PRINT (1) (DOCUMENT=DOCUMENT$,'REP')


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]

Posted by Herb Walters on June 06, 2019 at 08:47:06: Uploaded files: 1

I use the document= to send out invoices and it works fine.

Now that my customer has updated Comet to 2015 I am trying to replace a bunch of old pdffactory code to document= code and it is fighting me all the way.

I wrote this simple program to test copying the logic from invoice printing that works fine and it doesn't work. The program runs BUT it does not label the report and it does not write the report to the REP folder.

What have I overlooked and coded wrong. attached are screen shots of the printer setup and the output.

Thanks.


DATE: 06/06/19 File: #DOCTEST, N35 Page 1
TIME: 10:35 AM
1 !S #DOCTEST,N35
2 !O DOCTEST,N35
3 !L TXX,B,E
4 !R CED
5 !*
15 !
17 !
19 ! PROGRAM DESCRIPTION:
20 !
21 !
22 !
25 !
35 ! SOURCE FILE NAME :
45 !
1000 !
2000 ! DECLARATIVES
3000 !
3140 LENGTH 252 & LOCAL DOCUMENT$
3240 !
15000 !
16000 ! USE FILES
17000 !
50000 !
51000 ! FORMATS - VIDEO AND PRINTER
52000 !
52100 LINE.01: FORMAT @(01);'LINE 01';''
52200 LINE.02: FORMAT @(01);'LINE 02';''
52300 LINE.03: FORMAT @(01);'LINE 03';'';(FF)
52400 !
100000 !
101000 ! EXECUTABLE SECTION
102000 !
103000 !
104000 ESCAPETO 9990
105000 !
106000 !
107000 1000 CLEARLOCAL
107100 !
107200 DOCUMENT$='THISISATEST.PDF'
107300 !
107400 CLOSE (1) & OPEN (1) 'LPP' ! PDFFactory4 configured Windows Printer
107500 !
107600 PRINT (1) (DOCUMENT=DOCUMENT$,'REP')
107700 !
107800 PRINT (1,LINE.01)
107900 PRINT (1,LINE.02)
108000 PRINT (1,LINE.03)
108100 !
108200 CLOSE (1)
108300 !
108400 PRINT (0) DOCUMENT$ & INPUT (0) ''
108500 !
900000 9990 CLOSE & OPEN (0) TERM$
900100 !
900200 RUN '*MONITOR'
900300 !


Follow Ups:



Post a Followup

Name:
E-Mail:

Subject:

What is the name of the main Signature System's Product?  

Comments:

Optional Link URL:
Link Title:
Optional Image URL:

You may attach up to 5 files to your followup (see below):





Each file can be a maximum of 1MB in length Uploaded files will be purged from the server on a regular basis.


[ Follow Ups ] [ Post Followup ] [ Signature.net Forum ]