🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20088

[VB.NET] Weird export behaviour

#20088
From: Gunnar Liljas
Date: Tue, 29 Oct 2002 07:54
25 lines
1517 bytes
Yes, I know VB.NET isn't quite supported, but generally it works just fine. I've encountered a weird behavior with the Export method of Document. 

This doesn't work, it raises an "Unspecified error": 


For i = 1 To mApp.Documents.Count 
 mDoc = mApp.Documents.Item(i) 
 mDoc.Export(InDesign.idExportFormat.idExportPDF, "c:\test.pdf", False) 
Next 


..but this works: 


For i = 1 To mApp.Documents.Count 
 mApp.Documents.Item(i).Export(InDesign.idExportFormat.idExportPDF, "c:\test.pdf", False) 
Next 


In other words, when using the aquired Document object the Export fails, but when using the Method on the collection item directly it works just fine. I've only seen this error with the Export method. 

A bug? 

Best regards 
Gunnar
Technical Details
Message-ID: <1de65d2e.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!news.algonet.se!algonet!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.online.be!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,65f93367bcccc369,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-10-29 00:20:03 PST
From: "Gunnar Liljas" <adobe.forums@nexterday.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-05!sn-xit-06!sn-xit-04!supernews.com!news.maxwell.syr.edu!news.algonet.se!algonet!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: [VB.NET] Weird export behaviour
Message-ID: <1de65d2e.-1@WebX.la2eafNXanI>
Date: Mon, 28 Oct 2002 23:54:54 -0800
Lines: 30
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit