2016

Table Of Contents
This alert displays if you supply an invalid path parameter.
What to do: Specify the correct file path with the path parameter.
HTTP Error #500The specified
folder is
Read-Only.
This alert displays if you try to save a project to a folder with read-only
access.
If the request succeeds, a transaction success message is written to the QuarkXPress Server
transaction log file. For example:
Logs
11/16/2005 15:41:42 saveas/5mb.qxp Type: Size: 28 Client: 127.0.0.1
If an alert displays, an error message is written to the QuarkXPress Server error log file. For
example:
11/16/2005 15:42:12 Error Error Code: 10371 The file path is invalid.
To save a PDF file named "Customer1.pdf" in the folder HDD:temp and also in the document
pool, use a URL like the following. Note that this URL will cause the saved-as file to replace
any existing file with the same name.
http://localhost:8080/saveas/pdf/sample.qxp?
newname=Customer1&path=HDD:temp&savetopool=true
Example, GET
URL
Request object name: SaveAsRequest
com.quark.qxpsm.QRequestContext rc = new com.quark.qxpsm.QRequestContext();
Example, object
model
if(!this.DocumentSettings1.documentName.Text.Equals(""))
rc.documentName =
this.DocumentSettings1.documentName.Text;
// STEP 2 (SPECIFIC TO REQUESTS):
// Create the Save as request and chain it to the document context
SaveAsRequest saveasreq = new SaveAsRequest();
saveasreq.newName = this.newname.Text;
if((this.path.Text != null) &&
(!this.path.Text.Equals("")))
saveasreq.newFilePath = this.path.Text;
saveasreq.replaceFile = this.replace.Checked.ToString();
saveasreq.saveToPool =
this.savetopool.Checked.ToString();
rc.request = saveasreq;
// Create the service and call it with QRequestContext object
RequestService svc = new RequestService();
com.quark.qxpsm.QContentData qc = svc.processRequest(rc);
Importing XML with placeholders
This topic explains how to import XML data into boxes using QuarkXPress placeholders.
To use this feature, you must have a QuarkXPress project that has been set up with
placeholders that correspond to the element types in a source XML file. For more
information, see A Guide to XML Import.
Lets you specify the XML file containing the data to import. The
path can be absolute or relative to the location of the XML file. You
can also supply XML as a string.
XML
thexmldoc
Parameters
Lets you specify which layout to render. The first layout is layout
1. You can also specify a layout by name.
String
layout
Lets you specify the XML file containing the data to import. The
paginate parameter reates enough pages in the target layout to
accommodate the records in the XML.
XML
paginate
86 | A GUIDE TO QUARKXPRESS SERVER 2016
USING QUARKXPRESS SERVER