Page 1 of 3
Printing XSTABL files using Windows Software
XSTABL is a DOS program, and expects to communicate directly with the printer connected to the LPT1 (or LPT2) port. However, under a MS-Windows environment, this may not be possible due to
• Use of networked printers • Use of a USB printer
• No access to printers via DOS
If you have difficulty printing, you may use other Windows software on your system to print using the Windows environment, as recommended by Microsoft.
Printing the Input and Output Files
The XSTABL input (*.IPT) and output (*.OPT) files are saved as simple, ASCII text files. You may import these files into Windows-NotePad, or any Windows wordprocessor and then print to a Windows compatible printer.
Once you import such a file, please select a fixed-width font, such as “New Courier”, and use a 10 or 11 point size. This will ensure that the tabulated data aligns properly.
Printing Graphical Output files with MS-Word and WordPerfect
To take advantage of the approach suggested here, the user must save the XSTABL graphics files in the
WordPerfect Graphics format at the prompt which follows the display of all screen graphics during the analysis phase. These are:
1. *.WP1 – profile plot 3. *.WP3 – plot of the critical surfaces 2. *.WP2 – plot of all surface generated 4. *.WP4 – supplementary plot
You may print these plots using either MS-Word, or WordPerfect, by following the instructions given below.
These instructions assume that you want to print a file named X_APP_1.WP3.
NOTE: MS-Word 2010 will not read a WordPerfect Graphics (WPG) file unless it has a
“wpg” extension. In this case, just rename the “*.WP?” files such that they have a “wpg”
extension, e.g. change original filename from “Ex_01.WP3" to “Ex_01-WP3.wpg”.
Page 2 of 3
MS-Word
1. In a MS-Word document, go to “Insert, Picture” as shown in Figure 1.
2. Navigate to the folder containing the XSTABL plot file (e.g. Ex_01-WP3.wpg) and select insert.
3. Alternatively, it is also possible to drag-n-drop a “wpg” file from Windows Explorer directly into a MS-Word document which is open.
4. This will add the plot file to the document, as shown in Figure 2, below.
5. Once the plot has been imported, you may change its size, orientation, or crop it using the formatting options indicated in Figure 3.
Figure 1
Figure 2 Figure 3
By repeating the above steps multiple times, all the XSTABL generated images may be imported into the MS-Word file and then printed using a Windows compatible printer.
NOTE: Please refer to file: “XSTABL_MS.DOCX” as an example of using Microsoft Word.
Page 3 of 3
WordPerfect
The XSTABL plots saved in WordPerfect Graphics (*.WP?) format may be imported in WordPerfect without first modifying the filenames. The steps for printing the files using WordPerfect are outlined below.
1. In a WordPerfect document, go to “Insert, Graphics/Pictures, From File” as shown in Figure 4.
2. Navigate to the folder containing the XSTABL plot file (e.g. Ex_01.WP3) and select insert.
3. The imported image will be small and so you will need to scale it. This is accomplished by placing the mouse cursor over the image and pressing the right mouse button. The menu, shown in Figure 5 will pop-up. From this, select the “Size” option.
4. This will lead to the dialog box shown in Figure 6. From the “Box Size” dialog, select “Full” for the box width, and make sure that the “Maintain Proportions” radio-button is checked for the height. Click the
“OK” button and the image will be maximized in the horizontal direction.
By repeating the above steps multiple times, all the generated images may be imported into the WordPerfect file and then printed using any Windows compatible printer
NOTE: Please refer to file: “XSTABL_WP.WPD” as an example of using WordPerfect.
Figure 5 Figure 4
Figure 6
Solution for importing XSTABL WPG files into MS-Word
For complete information regarding “Security settings for graphic filters for Microsoft Office 2010, the 2007 Microsoft Office system, Microsoft Office 2003, and Microsoft Office XP” go to
http://support.microsoft.com/kb/2479871)
This document has all the details and links to more information.
The short version: Microsoft has found that some graphics file formats may cause a security risk so it has issued patches that disable the filters for these formats. In other words, once the patch is in place, you can no longer import these graphics file types.
The link above explains how you can re-enable specific graphics types that the patch has disabled, or re- enable all disallowed graphics types.
If you're in a hurry and need to get one of these files imported NOW, you can make the following registry change (the usual cautions apply whenever you're in the registry ... if you don't know what they are, you should not follow these instructions):
For 32-bit Windows versions, go to:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Common\Security\AllowLists\GraphicsFilt erImport
For 64-bit Windows versions, go to:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\Office\Common\Security\AllowLi sts\GraphicsFilterImport
Under that key, look for AllowListEnabled. If it's there, set it to 0.
If it's not there, create a new AllowListEnabled REG_DWORD key and set its value to 0.
Leave any other settings as-is. Close the registry, start Word and try importing your graphics file again.
This is the quick and dirty version of a fix. Once you're done with the immediate crisis, we recommend setting AllowListEnabled back to 1, then reading the link above to learn how to re-enable only the specific graphics file types you absolutely need.
These file types are not affected by the security update:
Bitmap (.bmp)
Encapsulated PostScript (.eps)
Graphics Interchange Format (.gif)
Joint Photographic Experts Group (.jpg, .jpeg)
Macintosh PICT (.pict)
Portable Network Graphics (.png)
Above information taken from
http://www.pptfaq.com/FAQ01119_Message-_-Failed_to_import_----_or_-
An_error_occurred_while_importing_----_while_importing_CGM_or_other_graphics.htm
Prepared by: Sunil Sharma, 09/06/12