Automating Importing a Visio OLE Object or Changing the Source of a Previously Imported OLE Object

My colleagues and I import our Visio files into FrameMaker 10 via the following mechanism: File > Import > Object... > Create from File (with Link checked).  We do this because, for us, the benefits of object linking and embedding outweight the pitfalls. In order to institute and automate a graphic file naming convention, I want to be able to do one of the following using ExtendScript:
Replace each Visio OLE object with that of a renamed or new Visio file. (I've tried using the Import() method  with many different import-script settings, but have not found the correct import-script, if such a thing exists for importing Visio files  imported by reference and linked as OLE objects. My typical error when attempting this is FV_DisallowedImportType, which indicates the source file type is disallowed by my import-script settings. When I talk about my import-script settings, I'm referring to the adjustments that I make to the parameters returned from a call to GetImportDefaultParams().  I've tried numerous import-script combinations but have had no luck. )
Rename the Visio source file and change the source file of an already-linked Visio OLE object.  (To do this, I need to determine how to implement a script that equals the following user actions while a FM document is open: clicking on Links... under the Edit menu to bring-up the Links window; selecting each link displayed in the Links window; clicking the Change Source button for each selected link; entering the new file name in the File name field of the Change Source window; clicking Open.  Needless to say, I found nothing in the ExtendScript capabilities that indicates that this approach is doable. It may be doable using FDK F_Codes, I haven't explored that avenue and would like to avoid it.)
Modify the OLE2 facet such that it points to the renamed file instead of the previous name for the file.  (This does not seem like a clean approach.  As is the case now, I don't know how to properly update the facet with the new file name.  I've experimented with simply changing the file name strings from new to old, but that does not work.  There's probably some error-checking or checksum that needs to be recomputed.  Bottom line: I don't know enough about facets.)
Any help would be greatly appreciated.
Thanks, Paul

Hi Paul,
I tried doing something like this years ago with FrameScript, but found out that the OLE stuff is not exposed to FrameScript or the FDK. So it is probably not exposed to ExtendScript either. When you query an OLE graphic's InsetFile property, it returns a null string, the same as a graphic Imported by Copy would. As far as I can see, importing as an OLE object is only available through the Windows FrameMaker interface.
Rick

Similar Messages

  • Changing the source system in QA

    Hello All,
    I just wanted a quick opinion from your experience on the following issue:
    We  have a ECC Dev client 20 connected to BI Dev client 20
    Similarly we have ECC QA 120 connected to BI QA 120
    But due to some reason we now want to connect a new ECC QA client 150 to BI QA 120 and take out ECC QA 120 totally(120 is wiped off).
    I already have a lot of development transported to BI QA where the source system is ECC 120. Now if 120 dies and we pull the data from 150, what are the pitfalls to watch for?
    Like all my Master data objects , DSO and Cubes still point to ECC QA client 120 but now the "actual" source system is going to be ECC QA 150.
    Points,
    Gaurav

    You need to replicate all the data sources in BI from QA 150 and change the source system assignment to 150 instead of 120.
    Also, you need to reinitilase delta for delta enabled extractors.
    Two  things to watch out:
    1.  If you dont have source system identifier,  then if you happen to get records with same key, then it will overwrite. This applies to both master and transaction data.
    2. For transaction data that is not delta enables, there may be a possibiltiy with which the records will get duplicated. So, better to delete the old requests before reload the data from QA150.
    Ravi Thothadri

  • How can I change the source file so it is direct from external hard drive?

    I am trying to make a movie on imovie of a snowboarding trip that I went on, there is around 80 to 100 gig of mp4 movies that will not fit on my computer that I have stored on my external harddrive. I had the movie half finished then found I could do no more as I had no space left in my mac. I had to delete everything and start again but I'm not doing this until I can find a way of changing the source file so I can take them direct from my external hard drive as to not use up all my computers available space. I have moved imovie to my external hard drive but it still tries to read from a movie file on my mac, how can I change that so it will read from a source file on my external hard drive, is it possible?? Can someone help me??

    Hi Bengt, Thanks for your input, much appreciated.
    I have a WD 1TIG hard drive and are using usb connection, is it possible to use fire wire with these? I have had trouble with a lot of the videos I Imported, once they downloaded the file in the viewer window showed up blank and when I mouse over them it places a picture of another file in the window and wont drag and drop into the movie window, like their corrupted or something? Had to delete just about all of them and start again. Also is it possible to select a bunch of videos in the viewer window as to change the dates to the correct dates? All I have been able to do is "select all" which is no help.

  • How to change the source ip address

    hi all,
    i got the problem that how to change the source ip address when i
    get a website's page!
    i mean i want to change the source ip address when i access the
    remote website, sure i know when change the source ip, i can not get
    the result correctly when changing the source ip address, but it is not
    important to get the result i just want to send out a "click" event to the website by calling a post method in the site!
    does anybody have some ideas?
    Best Regards,
    Eric Gau

    Here's some code that connects to google and does a get:
    import java.io.*;
    import java.net.*;
    public class HTTPTest {
        private Socket sock;
        private BufferedReader in;
        private BufferedWriter out;
        private boolean running = false;
        HTTPTest() {
        private void go(String site) {
            try {
                sock = new Socket(site, 80);
                in = new BufferedReader(new InputStreamReader(sock.getInputStream()));
                out = new BufferedWriter(new OutputStreamWriter(sock.getOutputStream()));
                System.out.println("Connected");
                out.write("GET / HTTP/1.1\r\n\r\n");
                out.flush();
                doRead();
            } catch (IOException e) {
                e.printStackTrace();
        private void doRead() {
            running = true;
            String line;
            System.out.println("Read started");
            while (running) {
                try {
                    line = in.readLine();
                } catch (IOException e) {
                    e.printStackTrace();
                    line = null;
                if (line == null) {
                    running = false;
                } else {
                    System.out.println(line);
            System.out.println("Socket closed");
        public static void main(String [] args) {
            String site;
            if (args.length > 0) {
                site = args[0];
            } else {
                site = "google.ca";
            new HTTPTest().go(site);
    }

  • Change the source system

    Hello
    In our Quality Box , I need to change the source system connection (from QR1 to QR2). I created the new connection successfully. Now the issue is all the Transfer structure still using OLD connection ( i.e QR1) . I run BDLS and it did not word. How can I re-assign the new source system (QR1)  to all of my Transfer structures in one go. Is there any report ?
    Farooq

    Hello,
    You cant directly convert the existing objects for a source system to the new source system.
    For that you need to do a transport of the objects to the QA box while maintaining the entry in BDLS to convert to the new source system.
    Regards,
    Shashank

  • Dynamically change the source flv video in flv play back...

    Dear Friends,
    Iam trying to load flv files in flash using flvplayerback components. iam using the following code. Initially iam loadign video1.flv. Then i want to load video2.flv when i press next button. It is loading video2 only when i press next button after finishing the full loaded video1. i want change the source anytime please tell the right way.
    import fl.video.VideoProgressEvent;
    import fl.video.VideoEvent;
    plr.source = "video1.flv";
    plr.addEventListener(VideoProgressEvent.PROGRESS,showmsg);
    function showmsg(event:ProgressEvent) {
    if (plr.bytesTotal == plr.bytesLoaded) {
      trace("Loaded");
    loaderpic.visible = false;
    plr.addEventListener(VideoEvent.COMPLETE, comple);
    function comple(event:VideoEvent) {
    trace("Movie Finished");
    nxt.addEventListener(MouseEvent.CLICK, nxtclick);
    function nxtclick(event:MouseEvent) {
    plr.stop();
    plr.source = "video2.flv";
    plr.play();
    Thanks in Advance,
    Syed Abdul Rahim

    The code you show works fine for me when I set things up to match.  When the button is clicked the first video is stopped and the second one replaces it.  Maybe you have some other code that is interfering.

  • How to change the source file of audio elements

    Hi,
    I am using adobe edge version 3 to add audio to a website.I use both .ogg and .mp3 files.
    Inside the _edge.js file the audio element has 2 sources (one for .ogg and one for .mp3)
                    id: 'audio_element_id',
                    type: 'audio',
                    tag: 'audio',
                    rect: ['0', '0','320px','45px','auto', 'auto'],
                    source: ['source_file.mp3','source_file4.ogg']
    I want to change the source file of the audio_element programatically......
    So i am using the following code inside edgeActions.js to change the source
    sym.$("audio_element_id")[0].src="new_source_file.mp3";
    But this will change the source of both(.mp3 and .ogg ) to  new_source_file.mp3
    I want to change the source induvidually. What should i do??
    Also I wanted to know what " [0] " stands for in " sym.$("my_audio_element")[0].play(); "
    Please give me an example of a situation wherein i have to change the value of [0].
    Thank you
    Nithin

    you should create a different directory for each dvd on your hard drive and put the files where they belong eg: dvd1, dvd2, dvd3
    then create 3 bins in your project manager called dvd1, dvd2, dvd3 and put the relevant files into the bins ( can import whole folders into each respective bin )
    OR rename your files using something like " renamer" before importing to premiere
    otherwise youll have a mess of a time trying to figure out whats what...maybe someone else has a better solution

  • How can I change the source DB?

    Hi all,
    I have implemented an ETL with OWB where the source DB and the target DB both are Oracle.
    Now I have the same source (the same structure, tables, indexes,...) DB in MSSQL. Then my question is: how can I change the connections without modifying the mappings?
    I only want to change the source DB in Oracle to the same DB in MSSQL, therefore the mappings that are getting the data from Oracle then will get the data from MSSQL DB. Is it possible? or I have to create new mappings for MSSQL?
    Many thanks in advance,
    Victor.
    p.d. hope my english is understable

    Hi
    To have one set of mappings that could be switched to point to one system or another would be possible using synonyms to the source, where the synonym could be refined at runtime.
    You can have unbound table operators in OWB mappings that would be the name of the source item. It helps to understand a little about how the code generation works in order to do this. If you use a source table T in a schema S1, and the mappings is in schema S2, then the generated code would refer to S1.T and may even have a dblink so S1.T@dblink, an unbound table operator for table T would simply use the name T in the generated code, this lets you define T however you want in the schema where the mapping is deployed to. So T could be a synonym that points to a local Oracle table for example named S3.MYORATAB or it could be a SQLServer table referenced via the database gateway using MYSQLSERVERTAB@mysqlserverinstance
    Here is a trick to quickly define an unbound table operator based on the table structure of an existing table. You can quickly create unbound table operators that look like other tables by adding an existing table which you have imported into the map, then add a new table operator and add it unbound with a name. Then map from the bound table operators in/out group to the unbound table operators in/out grp, this will define all of the attributes and datatypes, you can then delete the bound table operator to leave the unbound one.
    An alternative would be to copy-paste the mappings and synchronize the source table operators with the SQLServer table definitions.
    Cheers
    David

  • Change the source of query - Urgent

    hello everyone,
    I have an urgent requirement to change the source of the query, till now our query is based on Info cube but now we want it to come from the Multiprovider, so please give me some suggestions what to do. Should i copy this query, if yes, how should i go about it.
    i shall assign points for all helpful answers.
    Thanks
    Laura.

    Laura,
    Queries can only be copied if the underlying objects are the same and copying is the only way.
    Use transaction RSZC to copy. Technical name of the copied query is different to the technical name of the original query.  If the underlying cubes are not completely identical then this won't work and then the only option is to manually move the query.
    Secondly, this will only copy the query and not the related objects like views or web templates.
    Cheers
    Aneesh

  • How to change the source type for a primary key on a form?

    Hi,
    At the time of creating a form, I had set the source type for the primary key to an existing sequence.
    Now I want to change the source to a trigger.
    Can anyone suggest how to do it?
    Thanks in advance,
    Annie

    Annie:
    Define the trigger and then delete the page process named 'Get PK'
    Varad

  • How to change the source system for just a datasource

    Hi,
    Our test/development BI system ( BI 7.0 Unicode ) is connected to our development system and to our test system, 1 BI system connected to 2 R/3 systems.
    During some time, the test system won't be available so all datasources that point to the test system must be connected to the development system. In RSA1 is not possible to change the source system in a datasource: RSDS 057
    'Creation of DataSources for SAP source system D30CLNT007 is not permitted' , same error trying to copy the datasource,.
    Any idea about how to proceed ?
    Regards,
    Joan

    Hi,
    If I try to repliclate metadata in the datasource, message RSAR 051 appears: 'error when opening an RFC connection'. This error is expected because the logical system pointed in the datasource does not exist.
    Is not possible to change the source system in datasource ( in RSA1 ) because the field is always greyed, also if I try to copy the datasource the message RSDS 057 appears.
    Any idea about how to proceed ?
    Regards,
    Joan

  • Change the source of place holder dynamically in report

    Hi,
    We need to assign values to place holder dynamically in report pages based on the page number.
    Basic requirement is to have dynamic images (generated in before report trigger with file name having timestamp and page number) in dynamic pages (getting repeated based on number of lines in the report).
    Is there any way we can have a place holder mapped to this field (Read from file, type: Image) and change the source dynamically when each page is formatted?
    Any pointers for this will be helpful.
    Thanks,
    Ayyappa

    Hi,
    We need to assign values to place holder dynamically in report pages based on the page number.
    Basic requirement is to have dynamic images (generated in before report trigger with file name having timestamp and page number) in dynamic pages (getting repeated based on number of lines in the report).
    Is there any way we can have a place holder mapped to this field (Read from file, type: Image) and change the source dynamically when each page is formatted?
    Any pointers for this will be helpful.
    Thanks,
    Ayyappa

  • Problem in Internalization( I18N) for changing the Source langeuage

    Hi All,
    I have some problem in changing the source language in header:
    In S2X editor, I copyed the .xlf file pasted in same then modifyed accordingly(xxx_de.xlf) when i opend the xlf its asking the Activity when I created its throwing repository access faild like no deltaV resource avilable with directory(c:\......)
    and im not able to change the header and Resource text In S2X Editor, any one give me help on this.
    Thanks
    polaka

    Hi Nagesh,
    When we are doing I18N for that Application. Go to Navigator Tab
    Here Select Particular Projects--à src-àPackages-àsap-àvijay
    To internationalize the Web Dynpro application, copy the automatically generated *.xlf files and save them under a new name in the same directory.
    The new name must meet the following convention:
    u2022 .xlf
    For example, if you are creating *.xlf files for German,
    Use the language key de.
    Here Click on OK
    After that we can edit and translate these new *.xlf files in the S2X Editor.
    ApplyTemFirstView.wdview_de.xlf-àClick on Resource Text Tab
    Select Particular Text and Change the language to German-àClick on EDIT Button
    Here Enter German Lang-àClick on OK
    Now Go to Web Dynpro Explorer Tab
    Select Project-àRC Click on Rebuild Project
    Select Project-àRC Click on Reload
    Then Deploye the Application
    How to Check in Explorer. It is converting to German Language or not
    Open Internet Explorer
    Tool-àInternet Options -àClick on Languages Button-àClick on ADD Button
    Select German Language--àClick on OK
    Now We will Check in Portal
    Created Web Dynpro iView in Portal. That iView assign to the particular WorkSet-àAssign to Role
    Select that user Can Change Language
    Regards
    Vijay Kalluri

  • How to change the source level in java Studio creator

    Hi,
    I am using Sun Java Studio Creator 2 Update 1 IDE, in this IDE how to change the source level to 1.5 for an existing project.
    Thanks in advance,
    Rajesh.

    Hi!
    Unfortunately Sun Java Studio Creator 2 Update 1 doesn't support 1.5 source level. But You can try to download NetBeans IDE (from http://www.netbeans.org) and there with Visual Web project You will find the same functionality as for Creator. And 1.5 source level is supported by NetBeans.
    Thanks,
    Roman.

  • How can I change the source directory in Netbeans

    Hi there,
    Thanks for reading.
    How can I change the source directory in Netbeans so I can have a src directory?
    Thanks,
    Lorenzo

    Forgot to say Netbeans 3.6.
    thanks

Maybe you are looking for

  • Error message: "Cannot extract embedded font..."

    I have Acrobat 7.1  Professional with Windows Vista and until now have not had a problem downloading and reading any .pdf file.  Today I tried to download brochures from a company's product line web page (example: http://www.ulsinc.com/products/ils12

  • XSLT Exception

    Hello,   I am creating a XSLT Mapping ( ABAP Engine). I have created my tranformation, its getting executed successfully when I test it in SE80. Now when I am using the same transformation in the Integration Repository I am getting the below error. A

  • Poor image quality on exported version

    I am trying to export versions of my photos to a folder on my external drive. Every time I do this the resulting jpg is washed out and has poor resolution + a ton of noise. The resulting image is substantially lighter than the images in my aperture w

  • Question About Using iPhoto With Sony Wireless Auto Import

    I just bought a Sony DSC-RX100M2 and I'm very excited about the prospect of sending my photos wirelessly to my Retina MacBook Pro OSX 10.9.1. I use iPhoto but I just know the basics. I just imported 2 test pictures. I can find them in Finder: My Home

  • What router do I need?

    I recently went from dial up to a cable modem and I would like to hook both my computers up using ethernet. In the future I plan to get a Powerbook, or macbook, and would like that to be wireless. I also might add a PC. Could someone suggest the best