🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20457

Having problems running InDesign thru ASP

#20457
From: Joseph McDonald
Date: Thu, 11 Jul 2002 17:44
41 lines
1951 bytes
I was wondering if anyone else has had any luck with running InDesign from ASP pages? 


 
What I am doing is having a user enter information into a webpage and then I generate an XML document. Then right from the ASP page (after I generate the XML) I am trying to trigger InDesign to start up and read the XML in and print the document. Now I can get InDesign to do this using a seperate .vbs script, but when I try to use the same code directly in the ASP page nothing works and InDesign hangs and I have to reboot the server. I even tried triggering the .vbs script from the ASP page using the shell object but that won't work either. 


 
I would appreciate any suggestions anyone may have. Here is the code that I am trying to use:  


 

Dim myInDesign 

 
Dim myDoc 


 
Set myInDesign = CreateObject "InDesign.Application.2.0") 


 
myInDesign.Documents.Open "c:\Inetpub\wwwroot\keepsakes\templates\2ndballoontemplate.indd" 


 
Set myDoc = myInDesign.ActiveDocument 


 
myDoc.ImportXML "c:\Inetpub\wwwroot\keepsakes\keepsakes.xml" 


 
myDoc.PrintOut idPrintOptions = 3, "Envelope" 


 
myInDesign.Quit idSaveOptions = idDoNotSaveChanges
Technical Details
Message-ID: <ef999f9.-1@WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news.tele.dk!small.news.tele.dk!news.tele.dk!213.38.238.69!cw-insnet-peer-00!newsfeed.media.kyoto-u.ac.jp!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,bbba8fcb7e0a3be9,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-07-11 11:25:24 PST
From: "Joseph McDonald" <jmcdonal@email.usps.gov>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-04!supernews.com!news.tele.dk!small.news.tele.dk!news.tele.dk!213.38.238.69!cw-insnet-peer-00!newsfeed.media.kyoto-u.ac.jp!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Having problems running InDesign thru ASP
Message-ID: <ef999f9.-1@WebX.aaQKaf7vad4>
Date: Thu, 11 Jul 2002 10:44:17 -0700
Lines: 32
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit