Question
Place INDD file, select page (CS3)
Can anyone please help with placing e.g. page 2 of an INDD file (preferrably in VB)? The imported file defaults to page 1; how can I tell to place page 2, or change the pagenumber after placing?
It would be nice to control the layers as well, but I hope I can figure that out myself once I can access the object.
I now place the INDD-file in a Rectangle. Is that maybe the problem for the error below? I'm completely stuck.
Did I miss a reference or tutorial on this?
Dim myImportedPage As indesign.ImportedPage
If Typename(myRect.AllGraphics.Item(1)) = "ImportedPage" then
Set myImportedPage = myRect.AllGraphics.Item(1) 'Error: Type Mismatch
end if
It would be nice to control the layers as well, but I hope I can figure that out myself once I can access the object.
I now place the INDD-file in a Rectangle. Is that maybe the problem for the error below? I'm completely stuck.
Did I miss a reference or tutorial on this?
Dim myImportedPage As indesign.ImportedPage
If Typename(myRect.AllGraphics.Item(1)) = "ImportedPage" then
Set myImportedPage = myRect.AllGraphics.Item(1) 'Error: Type Mismatch
end if
