6254: Difference between revisions

From BR Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 2: Line 2:
|6254
|6254
|Creating a new [[PDF]] document failed.
|Creating a new [[PDF]] document failed.
|#One potential cause for this error is if you're running under Client Server and you try to create a PDF file on the server.
|#If under [[Client Server]] and you try to create a PDF file on the server.
#Another cause is that the PDF file is locked by a different program.
#The PDF file is locked by a different program.
|#Under Client Server, 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.
|#PDF files must be created on the client side, and then copied up to the server. To do that, you put an <nowiki>"@:"</nowiki> 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.
<code>
open #255: "name=PDF:, PrintFile=@:TempConvert\TimelogReport.pdf, replace, recl=500",display,output<br>
! Print the report here<br>
Close #255:<br>
execute "copy @:TempConvert\TimelogReport.pdf Reports\TimeLogReport.pdf"<br>
</code>
#close the other program and try again
}}


  Example:
  open #255: "name=PDF:, PrintFile=@:TempConvert\TimelogReport.pdf, replace, recl=500",display,output
  ! Print the report here
  !
 
  !
  Close #255:
 
  execute "copy @:TempConvert\TimelogReport.pdf Reports\TimeLogReport.pdf"


In the above example, the "@:" causes the PDF file to be created on the client, in the clients Current Directory in a subdirectory called "TempConvert". 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.


}}
In the remedy 1 (above) example, the "@:" causes the PDF file to be created on the client, in the clients Current Directory in a subdirectory called "TempConvert". 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.
 
<noinclude>
<noinclude>
[[Category:Error Codes]]
[[Category:Error Codes]]
</noinclude>
</noinclude>

Revision as of 15:52, 4 April 2016

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:

.



In the remedy 1 (above) example, the "@:" causes the PDF file to be created on the client, in the clients Current Directory in a subdirectory called "TempConvert". 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.