Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations waross on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help! Using API to print tifs

Status
Not open for further replies.

bOILERbRAD

Mechanical
Aug 11, 2008
17
0
0
US
Hello all. I have a working API program that prints drawings in the tif format and stores them somewhere. The idea of this program is to cut out the effort needed to rename each tif to the convention we use at work. I want the program to output tifs like so: "partnumber_sheet1.tif", "partnumber_sheet2.tif", "partnumber_sheet3.tif". Right now this is exactly what happens, but partnumber_sheet1.tif has three pages (sheets 1, 2, and 3) and partnumber_sheet2.tif has two pages (sheets 2 & 3).

Does anyone know if I can (in API) print one sheet per tif?

Here is the printing part of my code:

nPrintSheets(0) = i
vPrintSheets = nPrintSheets
swDocExt.PrintOut2 (vPrintSheets), 1, False, SWPrinter, PrintFileName

Thanks in advance for your help!
 
Replies continue below

Recommended for you

Status
Not open for further replies.
Back
Top