Skip navigation
Currently Being Moderated

printing artboard only with vbscript

Apr 17, 2012 3:31 AM



my script creates an artboard in my pdf file. i need to print this artboard only.


if i go to file/print manually there is an option 'Bereich' (pls see screenshot, my illustrator is in german language), so only the 2nd page is printed. (exactly what i want)


up to now i could not find this option (or something similiar) within vbscript.




     appRef.ActiveDocument.Artboards.Add(Array(Rminx,Rmaxy,Rmaxx,Rminy)) ' vars are correctly set before

     Set jobOptionsRef = CreateObject("Illustrator.PrintJobOptions")

     Set printOpts = CreateObject("Illustrator.printOptions")

     printOpts.JobOptions = jobOptionsRef

     jobOptionsRef.Designation = 2 'aiAllLayers


     appRef.ActiveDocument.PrintOut printOpts



these lines prints 2 pages: 1) main document  2) artboard


if i set

     jobOptionsRef.Designation = 1

only the main document is printed - but not the artboard. i need exactly the other way round, only the artboard but no main image.


pls could somebody help me with this problem?

thank you very much!

kind regards


  • Currently Being Moderated
    Apr 17, 2012 8:25 AM   in reply to soletti500

    this is not what you use for pages to print





    you need to set the PrintAllArtboards property to false first, before you set your Pages to print


    jobOptionsRef.PrintAllArtboards = false
    jobOptionsRef.ArtboardRange = 2

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points