6254

From BR Wiki
Revision as of 15:22, 27 September 2016 by John (talk | contribs)
Jump to navigation Jump to search

Summary:

Creating a new PDF document failed.

Cause:

  1. If under Client Server and you try to create a PDF file on the server.
  2. The PDF file is locked by a different program.

Remedy:

  1. PDF files must be created on the client side, and then copied up to the server. To do that, you put an "@:" on the front of the file name and specify a valid local directory for the creation. Then you follow up with an "execute copy" command to copy the file from the client to the server.
 open #255: "name=PDF:,PrintFile=@:Temp\Tmp.pdf,Replace,RecL=500",display,output
 ! Print the report here
 Close #255:
 execute "copy @:Temp\Tmp.pdf Reports\TimeLogReport.pdf"

In this example, the "@:" causes the PDF file to be created on the client, in the clients Current Directory in a subdirectory called "Temp". In the copy command, the "@:" at the beginning tells BR to get the file from the Client computer, and the fact that there is no "@:" on the second parameter of the copy command tells BR that you're copying the file up to the server.

  1. close the other program and try again