×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Help! Using API to print tifs

Help! Using API to print tifs

Help! Using API to print tifs

(OP)
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!

RE: Help! Using API to print tifs

(OP)
FIXED.

vPrintsheets = i    instead of    vPrintSheets = nPrintSheets

RE: Help! Using API to print tifs

how did you defined vPrintSheets?

Dim vPrintSheets(0) As Long

RE: Help! Using API to print tifs

(OP)
Dim vPrintsheets(0) As Variant

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources