🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18830

page from 1 document 2 an other

#18830
From: BATTISTELLI Laurent
Date: Thu, 20 Feb 2003 15:41
31 lines
1586 bytes
Good morning

I need help

How can I copy a page from one document to an other ?

I try

Public Function transfert(mydocument As InDesign.Document, pageNumber As 
Integer, myIndesign As InDesign.Application)

Dim myNewDoc As InDesign.Document
Dim pageToCopy As InDesign.Page
Dim myNewPage As InDesign.Page

Set myNewDoc = myIndesign.Documents.Add
Set pageToCopy = mydocument.Pages.Item(pageNumber)
Set myNewPage = myNewDoc.Pages.Add
Set myNewPage = pageToCopy

End Function

but the result is not good

when I have a look on the description of myNewPage all things are good 
but my new page is blank


If you know how to copy a page from on document to an other

thanks
Technical Details
Message-ID: <3E54F73A.2060305@comidoc.fr>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.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,354e3e03a5255de6,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-02-20 08:08:22 PST
From: BATTISTELLI Laurent <l.battistelli@comidoc.fr>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer01.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: page from 1 document 2 an other
Message-ID: <3E54F73A.2060305@comidoc.fr>
Date: Thu, 20 Feb 2003 07:41:46 -0800
Lines: 33
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; fr-FR; rv:1.0.2) Gecko/20021120 Netscape/7.01
X-Accept-Language: fr-fr, fr
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit