FrameFitting- what am I missing

I am missing something when it comes to syntax of framefitting. I am using CS5.5 and VBScript.  I found a past forum post here where they successfully did it with JS, but I can't seemed to get something right when moving it over to a VB syntax.
I keep getting an OBJECT REQUIRED: 'EmptyFrameFittingOptions' error
I have tried several variations without success, and here is my last attempt...
set P1F2 = myPages.Item(1).Rectangles.Item(1)
P1F2.name = "P1F2"
P1F2.FillColor = myDocument.Swatches.Item("DGC1_446a")
P1F2.frameFittingOptions.fittingOnEmptyFrame = EmptyFrameFittingOptions.FILL_PROPORTIONALLY
P1F2.frameFittingOptions.fittingAlignment = AnchorPoint.CENTER_ANCHOR
P1F2.Place "C:\\dmshoe1.png", false
P1F2.ItemLayer = myDocument.Layers.Item("Block 1 Layer")
Can anyone see what I am doing wrong.

It has been reported that attempting to use "named" constant values in Visual Basic doesn't work (not always, or always not -- either one of these).
Try again with the numerical value for EmptyFrameFittingOptions.FILL_PROPORTIONALLY, 1718185072.

Similar Messages

Maybe you are looking for

  • Pls can you help? Setting new itunes account, new laptop, same ipod, separating libraries

    I have my 2 kids ipods set up as different libraries under my own account, which works fine, as up til now they did not have their own computers but now one kid has their own laptop, I would like to get their own itunes account. and put their library

  • BAPI for ABZU - Asset Write UP

    Hi I need to post asset write up documents through ABZU tcode. Can any one help me out with the appropriate BAPI for the same. BDC will not solve my problem as the set of screen changes as per the 'Transaction Type'. Regards, Sudip Kumar Das.

  • Can't open jpegs into Camera Raw from Bridge

    Everytime I right click on an image to open it into camera raw I get a message telling me Bridge's Parent Application is not Active Bridge Requires that a qualifying product has been launched at least once to enable this feature. What??? I don't get

  • Archive apply to standby

    Hai all, I confihgured physical standby and it is working fine.. but before making a switch over, oracle recommends to run this query inorder to Make sure the standby database is current with redo application. On each database server, run this query

  • Removing Cisco Clean Access Agent 4.5 (CCA)

    I'm more or less having trouble with uninstalling Cisco Clean Access Agent 4.5.0.0, so I can install CCA 4.1... I removed CCAAgent 4.5 + the files within "Library/ApplicationSupport/" and in "Library/Receipts"...yet when I try to install 4.1, it tell