If I specify a local drive, everything works fine.
This fails:
Code: Select all
PDFPrinter = DriverInit("Amyuni Eval Printer")
ls_output_file = "some.pdf"
ls_output_folder = "\\server01\c$\output\"
ll_doc_file_props = 3
SetDocFileProps(PDFPrinter, ls_output_file, ll_doc_file_props, ls_output_folder, ls_output_file )
EnablePrinter(pdfPrinter,LicensedTo,ActivationCode) // Send license code to activatePDF Converter
ll_PrintJob = PrintOpen( ls_output_file )
PrintDatawindow( ll_PrintJob, ads_doc)
PrintClose( ll_PrintJob )
Unlock(PDFPrinter, ls_output_file, 100) // unlock the printer and wait 100 milliseconds if there was an error
DriverEnd (PDFPrinter)
Code: Select all
PDFPrinter = DriverInit("Amyuni Eval Printer")
ls_output_file = "some.pdf"
ls_output_folder = "Z:\output\"
ll_doc_file_props = 3
SetDocFileProps(PDFPrinter, ls_output_file, ll_doc_file_props, ls_output_folder, ls_output_file )
EnablePrinter(pdfPrinter,LicensedTo,ActivationCode) // Send license code to activatePDF Converter
ll_PrintJob = PrintOpen( ls_output_file )
PrintDatawindow( ll_PrintJob, ads_doc)
PrintClose( ll_PrintJob )
Unlock(PDFPrinter, ls_output_file, 100) // unlock the printer and wait 100 milliseconds if there was an error
DriverEnd (PDFPrinter)
Code: Select all
PDFPrinter = DriverInit("Amyuni Eval Printer")
ls_output_file = "some.pdf"
ls_output_folder = "C:\output\"
ll_doc_file_props = 3
SetDocFileProps(PDFPrinter, ls_output_file, ll_doc_file_props, ls_output_folder, ls_output_file )
EnablePrinter(pdfPrinter,LicensedTo,ActivationCode) // Send license code to activatePDF Converter
ll_PrintJob = PrintOpen( ls_output_file )
PrintDatawindow( ll_PrintJob, ads_doc)
PrintClose( ll_PrintJob )
Unlock(PDFPrinter, ls_output_file, 100) // unlock the printer and wait 100 milliseconds if there was an error
DriverEnd (PDFPrinter)