15.11.2012 Views

Mechanical APDL Basic Analysis Guide - Ansys

Mechanical APDL Basic Analysis Guide - Ansys

Mechanical APDL Basic Analysis Guide - Ansys

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Chapter 19:The Report Generator<br />

To perform this editing<br />

task ...<br />

Change the caption of<br />

a report component<br />

Prevent Microsoft Internet<br />

Explorer (IE) from<br />

splitting a component<br />

between two pages<br />

during printing<br />

4. Save your work.<br />

Do this:<br />

Note<br />

If your report contains a heading, it remains<br />

fixed at the top of the report.<br />

Click on the caption field that you want to change to place<br />

the cursor within the text.Type your changes directly into<br />

the field.<br />

Check the box labeled Insert page break for Microsoft IE<br />

for the appropriate component.This feature is especially<br />

useful after you have printed an initial draft of your report<br />

from within IE and determined how your printed report<br />

looks.<br />

Select File> Save periodically (or File> Save and Close to save your report and close the report assembler<br />

window).<br />

19.6.2. Batch Report Assembly<br />

Issue the *CREATE command in batch mode to open and append HTML tags to your report file. By default,<br />

the report assembler uses the *CREATE command to write the report to the ANSYS log file.<br />

19.6.3. Report Assembly Using the JavaScript Interface<br />

For maximum flexibility and usefulness, the report generator employs JavaScript, a coding language for Web<br />

browsers supported by Microsoft Internet Explorer and Netscape Navigator. JavaScript allows easy encapsulation<br />

of data and access to that data.<br />

The report generator creates JavaScript functions (in form) as you capture image and text data. Therefore,<br />

rather than using the report generator's built-in report assembler, you can use the JavaScript functions to<br />

manually assemble your HTML-based report.<br />

19.6.3.1. Inserting an Image<br />

The following example JavaScript code creates an image in the HTML report that you are assembling. If the<br />

specified image is not available, your report will contain a message indicating the problem.<br />

<br />

<br />

imgName('imgCaption');<br />

<br />

Following is an explanation of the JavaScript code:<br />

<br />

Loads the ansysImages.js file to provide the images. You must include this line of code at least<br />

once in your HTML document and before calling the imgName function. Typically, this line appears in<br />

the section of an HTML document.<br />

292<br />

Release 13.0 - © SAS IP, Inc. All rights reserved. - Contains proprietary and confidential information<br />

of ANSYS, Inc. and its subsidiaries and affiliates.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!