[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.axapta.programming

Specifying output file to Acrobat Distiller

Darren

1/4/2006 10:00:00 PM

I am using Acrobat Distiller 5.0 in a batch process so I have the options set
on the Distiller print driver to not prompt for a output file name and not
show a preview.

I want to specify the output file from Axapta but the
printJobSettings.fileName( 'outputfile' )
setting as no effect. Acrobat just prints to a file called 'Report.pdf' on
the user's Desktop.

Has anyone found a way to specify the filename to Acrobat from Axapta?

Thanks,
Darren
1 Answer

Darren

1/10/2006 8:10:00 PM

0

I've discovered that the report's description is availble to the Distiller
and is used for the output file name in this case.

It's not pretty and I have to put the following lines in every report 's
init() that needs to print in batch. Also it doesn't appear to work if a
path is specified. Without a path it dumps the file on the Desktop.

pjs = element.printJobSettings();
if (pjs.fileName() && pjs.deviceName() == 'Acrobat Distiller' )
element.design().description( pjs.fileName() );

If anyone knows a better way I'd appreciate it.

Darren