CS3 Print Routine (VBScript)

I'm trying to write a fairly simple print routine that will ask a user for a folder and then print every ID file in that folder to a PDF using a printer preset. Here's what I have so far:
Set myInDesign = CreateObject("InDesign.Application.CS3")
sDirName = InputBox("Folder to convert?")
Set fso = CreateObject("Scripting.FileSystemObject")
Set fldr = fso.GetFolder(sDirName)
Set fls = fldr.Files
For each aFile in fls
strFileName = CStr(aFile)
Set myDoc = myInDesign.Open(strFileName)
myInDesign.ActiveDocument.PrinterPreset = "small"
myInDesign.ActiveDocument.PrintOut False
myInDesign.ActiveDocument.Close
Set myDoc = Nothing
Next
Set myInDesign = Nothing
Set fso = Nothing
I'm getting this error on the PrinterPreset line:
#438 - Object doesn't support this property or method
I'm sure I found this somewhere in my searching, but I guess it's wrong. Does anyone know what the actual syntax is?
Thanks!

Document - and myInDesign.ActiveDocument - don't have PrinterPreset property
from VB6 ObjectBrowser:
Sub PrintOut([PrintDialog], [Using])
Member of InDesign.Document
Prints the Document(s). / PrintDialog: Whether to invoke the print dialog as Boolean / Using: Printer preset to use as idPrinterPresetTypes enumerator or PrinterPreset
so, you need to delete this line and in next line add second parameter - printer preset you want to use
call myInDesign.ActiveDocument.PrintOut(False, myInDesign.PrinterPresets.Item("small")
robin
www.adobescripts.com

Similar Messages

  • Unable to create a pdf file using the print routine

    Hey all,
    Recently, i've been unable to create a pdf using the print routine from quickbooks, word, outlook, etc... using the print routine and the adobe pdf driver....
    I have vista and cs3... Any thoughts?
    Thanks,
    Murph
    [email address deleted by host]

    If you are trying to print to the Adobe PDF printer and that fails, try using print-to-file. Then open the file in Distiller. If the result is the desired PDF, then check for AcroTray running as a background application. Sometimes it has to be restarted, but should be in your startup (you can check msconfig from the start>run menu to see if AcroTray is there).

  • How to create a file which i can attach to an email using the same print routine i use for printing

    Hi all,
    In my current code i print a document.
    What I would like to do is attach this file - possibly as a pdf - to an email using the same print routine ( with some additional code obviously)
    Did some research on the web and can't find a solution to this.
    Any help would be appreciated.
    Regards
    Jan Konijnenberg

    What I would like to do is attach this file - possibly as a pdf - to an email using the same print routine ( with some additional code obviously)
    You need to install a printer that 'prints' to a PDF file.  Then send your document to that printer and attach the file.  There are several available, free and commercial.
    http://www.dopdf.com/
    There are other formats which may be suitable.
    http://www.howtogeek.com/150891/how-to-print-to-pdf-in-windows-4-tips-and-tricks/

  • How to select the printer and select the ICC profile for printing with VBScript?

    I try to automate my printing procedure in photoshop. The problem is that I don't know how to select the printer and select the icc profile for printing with vbscript like I manually do in the print-menu in photoshop?
    Anyone has done this before?
    Thanx!
    jus

    Client/Server version:
    - D2KWUTIL.PLL library provides a 'Select Printer' dialog box to be used in Forms: WIN_API_DIALOG.SELECT_PRINTER
    http://guenter-huerkamp.dyndns.org/oracle-doc/docs/html/d2kwutil.html
    I suggest you to create a form to invoke the report, allowing user to select the printer and then pass it as parameter DESNAME

  • Distribution of InDesign CS3 Print Presets

    Is there a way to "mass" distribute InDesign Print Presets for InDesign CS3?
    Have a large list of Print Presets saved on a server. Would like to "push" them out to over 20 production Macs with CS3, using something like Apple Remote Desktop. Each Print Preset that exists on the server are also on one specific Mac. Each has a unique name. But can NOT find these names when doing a search on the Mac. Where are they actually being stored?

    The CS3 print presets are stored in the ID Preferences (~/Library/Preferences/Adobe InDesign/ Version 5.0/InDesign Defaults).
    Here is a link to an InDesign Secrets article which talks about how to export the presets to a .prst file:
    This article covers CS and CS2, but I'm guessing it's the same for CS3.

  • CS2 vs CS3 printing to Epson 3800

    In trying to diagnose a Photoshop/11880 printing problem, I made some test prints to an Epson 3800 from the same test file. Andrew Rodney's "printer test" image includes very smooth color gradations R > M > B > C > G > Y > R. This image was printed from PS CS2, PS CS3 and Lightroom to the Epson 3800 on Epson Premium Semigloss Photo paper using Epson's Pro38PSPP profile. The CS2 and Lightroom prints were identical. The transitions in the color gradations were very smooth. The CS3 print was very close in overall color balance, but the transitions in the gradations were not as smooth, or gradual, especially between magenta and blue, and between green and yellow. Shouldn't prints of the same file from CS2 and CS3, using the same profile, look identical? The on-screen soft proofs in CS2 and CS3 look identical, but the prints do not.
    4 x 2.5 GHz PowerPC G5.
    4.5 GB RAM.
    OS X 10.4.11.
    Photoshop CS2 9.0.2
    Photoshop CS3 10.0.1.
    Lightroom 1.2
    Epson 3800, Driver Version 3.57
    Direct USB connection.
    Epson profiles are located in driver package (as installed).
    Epson Semigloss Photo Paper 250.
    Photoshop Manages Color, Epson Pro38PSPP profile.

    Yes, all settings were the same. I got official word from Epson today there are problems with CS3. Epson, Apple and Adobe tech people are meeting in a few weeks to find a solution. In the meantime, all printing from my Macs to the 3800 and 11880 will be from CS2 and Lightroom. Thanks for your input.

  • InDesign CS3 Print Booklet function

    I have an issue with InDesign CS3 Print Booklet Function.
    Certainly Print Booklet is not InBooklet by any stretch. It does however have to be an integral part of the InDesign Program(one of the reasons it is better than QuarkXPress).
    Print Booklet takes the age old practice of creating 4 page signatures for booklets of 4-page multiples and when you get to 12-16 pages it mysteriously inserts blank pages making non-4 page multiple booklets. I have had 12 page booklets made into 14 and 16 page booklets into 18 pages.
    Is there a fix for this issue forthcoming from Adobe, or has anyone discovered a workaround?
    I do not want to teach students that they have to go to PDF's and use another way to impose, when it is an important part of InDesign.
    Jack Mertes

    >I click Printer Settings to make sure I've got spreads selected and crop marks etc.
    Make sure you DON'T have the "print spreads" box checked when setting up to use Print Booklet.
    >make booklet makes low res pages in an InDesign file and Booklet CE 3.5 makes a new InDesign file up of individual PDFs but the pages are all out of order.
    I'm not sure what you mean by "make booklet makes low res pages." Are you referring to Dave's MakeBooklet.jsx script? That simply places the pages from an existing InDesign file into a new file in Printer spread order. It's up to you what sort of resolution any page element has in the original file, or what PDF settings you use to make a PDF from the new file. Perhaps you need to adjust your View > Display Quality setting?
    The pages in an imposed file SHOULD be "all out of order." You are looking at printer's spreads, not reader's spreads. Are they not in the correct order for printing?
    Peter

  • Printing problems with CS3- Prints dont match what is on screen

    My prints dont match what i am seeing on the screen when using CS3. I am using windows xp and printing on a epson 7800. I never had this problem before i started using CS3. I have calibrated my monitor.
    I have the standard version of CS3 not the extended.
    I read a arctical that CS3 prints darker then what is on your screen. The solution if you have CS3 extended is to increase lightness just before printing, but what if you dont have the extended version, what do you do?
    I couldnt find this topic on the forum here. I am sure others must have had this problem too. What is my solution?
    Thanks in advance
    KB

    There are a bunch of things that can affect the difference between what you see on screen and what you get in print. It is not enough to just look at calibration. Calibration is a starting point. Here are some things that may affect your result:
    * Your monitor type
    * Your PC type (laptops may not be best for image correction)
    * Your calibration device
    * The lighting in the area you work in
    * Choices made while calibrating
    * Proper setup for using the ICC profile (e.g., you aren't running conflicting software)
    * Proper color management setup
    * Smart choice in color space / working space selection
    * Sensible choices for any other color management changes (if any)
    * Careful use of on screen proofing settings
    * Sensible choice for color management in capture (on camera or with scanner)
    * Smart use of color profiling
    * Good choice of printing materials / inks (as applicable)
    * Good choice of equipment for printing
    * Proper maintenance of printing equipment
    I'm probably missing a few there, but I'll work on it. The best scheme I think is to keep things as simple as possible. Especially if you are having trouble, eliminate variables. When you get things working as you expect, then you can try to get a little more fancy. However, every variable you add will come with drawbacks in one form or another. Freeagent seems to make some sense here...
    Richard Lynch

  • Print Routine

    hi all,
    I  am posting a document in MIRO with output type ZREK. So i am using standard Driver program SAPLMRMN in NACE. So i want the print routine for the standard driver program. Please Help!!
    Thank You.

    Actually it is declared in the else.. The code just did not display correctly..
    Here is the if statement..
    { //Passed in an HolidayValue object
    if (objtype == "V")
    { HolidayValue val = (HolidayValue)obj; }
    else //Passed in an Holiday (Local Interface) object
    { Holiday val = (Holiday)obj;}
    [/code/                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Placed QuarkXpress 7 eps into InDesign CS3 prints with slanted type

    any suggestions to fix?

    placed QuarkXpress 7 eps into InDesign CS3 prints with slanted type
    The problem may be in the HP print drivers.
    Printing to Epson printers works, printing to HP 132, 5000 or 2200 produces slanted type, even at Adobe.
    Printing to disk as a Postscript printer and then printing the ps file using the pdf printer works fine.
    Roger

  • CS3 printing problem

    Working in CS3 on my Mac, I routinely export PDFs from InDesign for printing at Kinko's or Office Depot or anywhere else I can find a laser printer.
    Although I can take the native InDesign file to print, I prefer the more conservative approach and export the PDF.
    This system has worked flawlessly until the last month or so. The top margins, while set precisely in InDesign and exported precisely to Acrobat, are printing off by about an eighth of an inch. I've tried printing PDFs at Kinko's and Office Depot and have gotten the same results. At Kinko's I printed the native InDesign files perfectly.
    As I have changed none of my output settings, the only thing I can think of is that the discrepancy results from my using Acrobat 8 and the printing folks using Acrobat 9.
    Any input? Is this a known problem? Is there a work-around that eliminates my having to update my software?
    Thanks for any help.

    Ah, yes. I neglected to say that those choices are set in the print dialogue: No scale, and do not center content.

  • Indesign CS3 printing alignment issues with Konica Bizhub

    Hi,
    I am designing documents in ID CS3 to print inhouse on our Konica Minolta BizHub 350 through a Fiery. I will set up a document with at least .375 inch border all the way around. I'll print it, sometimes the documents are duplex, and it's all good. A month later I will go to print this document again, same print set up options and everything is shifting to one side, sometimes as much as .5 inch. Our printer technicians have been out here and found that we did not have the appropriate Fiery driver. So we downloaded and installed that and everything seemed to be fine until today, I go to print a document that had previously been set up and everything is shifting to the side. I went in and selected the paper size rather than let it be defined by driver and it helped a little but it's still off. Same thing happens on business cards. I'll set up the business card template in InDesign, futz with it to make sure it's printing within the card size (I can't tell you how many sheets of business card paper I've had to toss trying to work this out) and works great. Next time I go to print the cards, everything is shifted up by a quarter of an inch.
    This makes no sense to me. Am I doing something wrong in InDesign? Has anyone else had this problem? I just can't spend hours realigning every document that I've already created every time I have to print them. Please help.
    Mina

    You may see about getting upgraded to the Creo print management software for the BizHub over the Fiery. Despite it having its quirks it does pretty well.
    We have had great luck with our BizHub though it only runs 6 hours per day. Only have to have service for PM kits. I don't know about those who require so much more service on theirs, perhaps they aren't built for 24/7 continuous operation. Ours certainly has no trouble being ran through the little one shift routine we put it through. Again, we don't really push the thing, just a hair under a quarter million impressions a year with a variety of odd stocks. For a specialty machine that does our short runs and one offs it is a really nice machine, though not something I'd just hit "print 1000" without reviewing an initial proof.
    If you need to have it serviced that frequently and are getting inconsistent results that you speak of I think you are running the machine incorrectly. The gentleman that runs our was previously running a hand crank letter press for the last twenty years. It and a couple black and white production printers are his only exposure to computers at all. You should have someone educate you on how to properly run the machine if you are continually running into these problems, or get a $300 PC and a copy of Adobe Reader to do the printing for you like we do.

  • Photoshop CS3 printing garbage characters on HP LaserJet 1300

    After installing CS3, Photoshop prints garbage characters on my HP LaserJet 1300.
    Yes, I have tried printing as ASCII, ASCII85, Binary and JPEG - nothing helps (plus the settings won't stick even after holding down Alt and clicking the Remember button).
    The only way to print right now is to choose Save as PDF in the print dialogue, open the PDF in Adobe Reader and print from there.
    Any ideas?

    tzw - I responded about this on another forum. I talked to technical support at Adobe about this exact issue about 2 months ago - can't print photoshop CS3 on any of my three HP printers. ( I have a HP1200, an HP 2550 and a HP photosmart 7660) (CS2 works fine) They worked with me for about an hour - called me back and worked some more, and then decided to send it up to the programmers (or engineers or whatever) The programmers called me and worked with me for another hour - trying different set-ups etc., but the conclusion by them was that this was a huge problem in that there were a lot of HP printers out there - that they were going to give this their top priority - and that there would be a fix for this soon. (I have yet to see a fix.)

  • Adobe Photoshop CS3 printing to an HP Pro B9180

    I am trying to print a borderless project. The preview looks perfect but when printed it cuts 1/8th of an inch off the top. I have reinstalled Adobe Photoshop CS3, reinstalled the printer and spent 2 hours with an HP tech online and no fixes yet. Windows Vista Home Premium is the O/S.
    Any suggestions, thanks Jan

    Hi Jan,
    Don't know if this will help or not, but it may be worth a look. Russell Brown has a video tutorial on printing with CS3 to the HP Photosmart B9180 here:
    http://www.russellbrown.com/tips_tech.html
    You'll have to scroll about 1/3 down the page to get to the section entitled
    Adobe Photoshop CS3 Standard Edition Tutorials
    and its the third tutorial in the list. He also gives some useful tips about drivers et cetera.
    Good luck.

  • CS3 Printing has a major bug or progamming Issue.

    Tried to print a 10ft panoramic landscape with CS3 on an Epson 1290 with disastrous results. Only prints about 4ft then aborts. Worse still what it did manage to print was 5ft of the the panorama compressed into that 4ft, the width had been compressed by my assessment as much as 15/20%.
    Previously had no problems with CS2 so I have had to reinstall CS2 to effectively do all my printing (especially long landscapes).
    Even gone to the extent of reformatting computer and reinstalling everything from new.
    So Adobe can you please tell me what good is it or the point in releasing a program that you cannot trust to print?
    I don't trust Photoshop CS3 to do any of my printing anymore, not even A4 or A3 sizes.

    > "Did you set the Epson driver to minimize margins?"
    No - the Epson driver is set to A3, "Standard printable area" and "Centered".
    (The PS CS3 dialogue box has "Center image" and "Scale to fit media". And the correct landscape/portrait button).
    What I get is about 3 mm margin one side, and about 25 mm margin on the other. In CS3 Beta, after doing the workaround for non-standard paper sizes, I would get about 3 mm each side for the same photograph. This has now occurred for several prints.
    It is somewhat as though PS CS3 has an incorrect value for the width of A3 paper! The extra margin is on the left side of the printer, (the side opposite to the buttons), where the adjustable guide is. It is as though PS CS3 acts as though the paper is about 22 mm narrower, and so treats the guide as set about 22 mm towards the RHS. (I'm describing the effect, not the reason - I don't know what that it).
    But contrary to that last paragraph, as I said earlier, the CS3 preview shows that the paper isn't centred, and in fact appears to give an accurate indication that it will print off-centre. PS "knows" where the image will print - it isn't simply that the printer & driver screw up without PS knowing about it.
    Whoops! I've just measured the margins in the long dimension too, and they are out. (I hadn't spotted this because the natural margins in the long dimension are bigger, so it isn't quite so obvious). For one picture, they are 25 mm and 46 mm. Suspiciously close the the 22 mm difference for the short dimension.
    For one of the images, I just examined the aspect ratios of the original image and the printed image to see if this was an example of squashing that I have read about. No. The former is 1.297, the latter is 1.301 - exactly the same to within the measuring accuracy.

Maybe you are looking for

  • Accounts on 2 computers

    I have 2 computers with separate accounts for email (primary and sub account). Verizon FIOS made recent changes with email.  Now my emails have jumped to the other computer with the sub-account. How do I get me emails back on my computer in my primar

  • ADF 11g:Success message on fire fox Staus bar

    Hi all, Im working on ADF 11g - Jdeveloper 11.1.1.2. The page contains a ADF table with Create, Edit and delete operations. The success messages of these operations have to be displayed on the staus bar of the Fire fox browser. Ex: "Record Successful

  • Ipod nano 6th gen cant download files into it anymore

    So i try to download podcasts and music but it wont let me anymore, it says a file is missing.

  • Inserting MathML as XMP metadata

    Hi, I'm planning on embedding MathML for equations in a PDF into document-level metadata so that search engines will see it, and just pointing to it via an attribute on the equation (or perhaps an annotation, but it seems like the equation is a more

  • Calling Bapi from Dot Net

    Hi All, We are Trying to upload Bapi's From Dot Net. When we are uploading Sales Order upload i will get this error ""ERROR: Sales document type DG-1 is not defined"" ,But If i Call Again It is not giving the any error and simply its updating the SAP