8.0

Table Of Contents
error log. The following is a sample of the error log entry:
8/10/2005 10:39:07 - Error - Error Code: 10339 - The specified file failed to
load in the picture box.
Example GET
URL
http://localhost:8080/sample.qxp?PictureBox=file:FrenchOpen.pdf
Example, Object
Model
Request Object Name: RequestParameters
sdk.QRequestContext rc = new sdk.QRequestContext();
if(!this.DocumentSettings1.documentName.Text.Equals(""))
rc.documentName = this.DocumentSettings1.documentName.Text;
//STEP 2(SPECIFIC TO REQUESTS):Create the Box Param renderer request
and embed it in
RequestParameters request = new RequestParameters();
NameValueParam nameValue1 = new NameValueParam();
nameValue1.paramName = this.boxname1.Text;
if(!this.boxvalue1.Text.Equals(""))
nameValue1.textValue = this.boxvalue1.Text;
request.params = new NameValueParam[]{nameValue1};
rc.request = request;
//Create the service and call it with QRequestContext object
QManagerSDKSvcService svc = new QManagerSDKSvcService();
sdk.QContentData qc = svc.processRequest(rc);
Notes
Use "&" to change the contents of multiple boxes in one request. The
general URL for a multiple boxes request is:
http://localhost:8080/sample.qxp?Logo=file:logo.jpeg&TopPicture=file:To
pPicture.pdf
where Logo and TopPicture
are the names of the two different picture boxes.
Box names are case sensitive. If you used logo instead of Logo in the URL
above, you would not be able to place the picture into the picture box
named Logo
.
You must include the file:
indicator before specifying the picture file in the request to place the
picture in the picture box. You must ensure that the picture file exists in the
document pool.
To place a picture in a picture box that exists in a subfolder of the
document pool:
On Windows: The general URL format is:
http://localhost:8080/sample.qxp?Pic1=file:Content\Tennis.pdf
where Pic1 is the picture box name and the picture file "Tennis.pdf" exists
in the subfolder "Content" in the document pool.
On Mac OS: The general URL format is:
http://localhost:8080/sample?Pic1=file:Content:Tennis.pdf
where Pic1
Page 84