Previous Document Next Document

Object Model Reference : Classes : C : CorelScript : Methods : CorelScript.FileImport


CorelScript.FileImport

Function FileImport(FileName As String, FilterID As Long, MaintainLayersAndPages As Boolean) As Long

Description

Member of CorelScript

The FileImport method brings a graphic into CorelDRAW from another program.

Parameter
Description
FileName
Specifies the name of the file to import
FilterID
Specifies the type of file filter:
 
 
769 = Windows Bitmap (BMP)
 
770 = Paintbrush (PCX)
 
771 = Targa Bitmap (TGA)
 
772 = TIFF Bitmap (TIF)
 
773 = CompuServe Bitmap (GIF)
 
774 = JPEG Bitmap (JPG)
 
775 = Kodak Photo CD Image (PCD)
 
776 = Scitex CT Bitmap (SCT)
 
784 = Windows 3.x/NT Cursor resource (CUR)
 
785 = Windows 3.x/NT Icon resource (ICO)
 
786 = Windows 3.x/NT Bitmaps resource (EXE)
 
787 = GEM Paint File (IMG)
 
788 = Adobe Photoshop (PSD)
 
789 = Picture Publisher 4 (PP4)
 
791 = MACPaint Bitmap (MAC)
 
 
792 = OS/2 Bitmap (BMP)
 
793 = Wavelet Compressed Bitmaps (WVL)
 
800 = CALS Compressed Bitmap (CAL)
 
802 = Portable Network Graphics (PNG)
 
803 = Picture Publisher 5.0, 6 (PP5, PP6)
 
806 = Kodak FlashPix Image (FPX)
 
1280 = Computer Graphics Metafile (CGM)
 
1281 = HPGL Plotter File (PLT)
 
1282 = Micrografx 2.x, 3.x (DRW)
 
1284 = GEM File (GEM)
 
1285 = IBM PIF (PIF)
 
1287 = WordPerfect Graphics (WPG)
 
 
1289 = Encapsulated PostScript (EPS)
 
1290 = PostScript Interpreted (PS, PRN, ES)
 
1291 = MET Metafile (MET)
 
1292 = NAP Metafile (NAP)
 
1293 = Macintosh Pict (PCT)
 
1294 = Windows Metafile (WMF)
 
1296 = AutoCad (DXF)
 
1298 = Scodl (SCD)
 
1300 = Enhanced Windows Metafile (EMF)
 
1302 = True Type Font (TTF)
 
1303 = Adobe Type 1 Font (PFB)
 
1305 = Adobe Illustrator (AI)
 
1312 = Corel Barista (HTM)
 
 
1313 = Corel Image Map (HTM)
 
1314 = Placeable Enhanced PDF (PDF)
 
1315 = Visio (VSD)
 
1329 = Frame Vector Metafile (FMV)
 
1333 = Adobe Portable Document File (PDF)
 
1334 = Lotus Pic (PIC)
 
1339 = Micrografx Designer 6.0 (DSF)
 
1557 = HyperText Markup Language (HTM)
 
1792 = Corel PHOTO-PAINT Image (CPT), version 5.0/6.0
 
1793 = Corel Presentation Exchange 6/7 (CMX)
 
1794 = Corel Presentation Exchange 5.0 (CMX)
 
1796 = CorelDRAW Compressed (CDX)
 
1797 = Corel CMX Compressed (CPX)
 
1799 = Corel PHOTO-PAINT Image (CPT)
 
2048 = ANSI Text (TXT)
 
2049 = MS Word for Windows 6/7 (DOC)
 
2050 = MS Word for Windows 2.x (DOC)
 
 
2051 = MS Word 4.0, 5.0, 5.5 (DOC)
 
2052 = MS Word for Macintosh 4.0, 5.0 (DOC)
 
2053 = Rich Text Format (RTF)
 
2055 = Corel WordPerfect 6/7/8 (WPD)
 
2056 = Corel WordPerfect 5.1 (WP5)
 
2057 = Corel Word Perfect 5.0 (WP5)
 
2058 = Corel Word Perfect 4.2 (WP5)
 
2059 = Word Star for Windows 1.x, 2.0 (WSW)
 
2060 = Word Star 7.0 (WSD)
 
2061 = Word Star 2000 (WSD)
 
2062 = XYWrite for Windows (XY)
 
2063 = Ami Professional 2.0, 3.0 (SAM)
 
2068 = MS Word 97 (DOC)
MaintainLayersAndPages
Specifies whether to maintain layers and pages on import. True (-1) enables this option.

Previous Document Next Document Back to Top

Copyright 2013 Corel Corporation. All rights reserved.