Macromedia live cycle 7.2 매뉴얼

다운로드
페이지 123
Adobe LiveCycle
Post-deployment
Installing and Configuring LiveCycle for JBoss
 Running the Form Server Module API Print application     30
located in the same directory as the lcprint.bat file. (See “About the print specification” in the 
LiveCycle Print Getting Started guide.)
One value that you must specify within the print specification is the location of the form design on 
which a print stream is based. Sample form designs are located in the 
[LiveCycle root]/components/print/samples/common/lcprint /forms directory.
The third argument, which is required, specifies the server name and port.
You can also use the Print Submitter console application to retrieve information about a previous 
request. To perform this task, use the following command:
lcprint <-r,--result requestId>
where 
requestId
 is a string value, such as 
59572cd82
, that specifies a request identifier. This 
command returns result data that specifies the status of a request. (See “About result data” in the 
LiveCycle Print Getting Started guide.)
Running the Form Server Module API Print application
The Form Server Module API Print application uses the Form Server Module API to invoke LiveCycle Print 
from a command prompt. (See “Working with the Form Server Module” in the LiveCycle Print Getting 
Started
 guide.)
The Form Server Module API Print application consists of a Java file named FsPrint.java, which is located in 
the [LiveCycle root]/components/print/samples/common/fsprint directory. If you are using Windows, you 
must run the fsprint.bat file located in this directory. If you are using Linux, you must run the fsprint.sh file.
Note:
The Form Server Module API Print application creates a 
SOAPClient
 object that specifies a valid 
SOAP endpoint. The default SOAP endpoint in the FsPrint.java file is configured for the default SOAP 
endpoint that JBoss uses. If LiveCycle Forms is deployed on a different J2EE application server, you 
must edit the FsPrint.java file by commenting and uncommenting the appropriate SOAP endpoint. 
For more information about using a 
SOAPClient
 object, see the LiveCycle Forms Developing 
Custom Applications guide.
To run the Form Server Module API Print application:
1. From a command prompt, navigate to the application 
[LiveCycle root]/components/print/samples/common/fsprint directory.
If you have not installed to the default directory, create a new environment variable named 
LiveCycleRoot
 and set the value to the installation directory used on your system.
2. Enter the following command:
fsprint <-argument 1> <-argument2>
The first argument is a fully qualified path to the form design (an XDP file). You can use a sample form 
design that is located in the [LiveCycle root]/components/print/samples/common/lcprint/forms 
directory.
The second argument, which is optional, defines the print stream destination. For example, you can 
define a file URI to a PostScript file. If this value is not specified, output is written to the standard output. 
This value is similar to the 
PrintURI
 element that is located in the print specification. (See “About the 
print specification” in the LiveCycle Print Getting Started guide.) 
Tip:
The source code for the Form Server Module API Print application is located in the FsPrint.java file. You 
can open this file to see the application logic that invokes LiveCycle Print by using the Form Server 
Module API.