[JS] Problem in importing data.

Hello
I am trying to place a .doc file in my document(textframe). For that i am using following script
var myDocument = app.activeDocument;
var myTextFrame = myDocument.pages.item(0).textFrames.add({geometricBounds:myGetBounds(myDocument, myDocument.pages.item(0))});
myTextFrame.place(File(mypath_new));
But i want to auto-flow the data if i use above script it will place the text on first page only.
Is there any way to auto-flow the data in InDesign.
Thank you,

Hi Avi,
I don't think you understand what I'm saying. Flowing the text using the code I posted will not create two text frames unless you are placing it on a page with two columns. Set the margin preferences of the page and/or the master spread to use one column, and you will not have two text frames on the page. If you don't have two text frames on the page, then you do not need to merge them.
Or it might be that I'm not understanding you--if you mean that placing the document with autoflow on results in the story spanning multiple pages, then--yes, that's what autoflow does. That's what you asked for, as I understood it.
To apply an object style to all of the text frames created by the autoflow operation, do this:
var myBounds = myGetBounds(myDocument, myDocument.pages.item(0));
var myX = myBounds[1];
var myY = myBounds[0];
//Placing a file returns an array--in this
//case, an array containing a single item.
var myStory = myDocument.pages.item(0).place(File("/c/AutoflowTest.txt"), [myX, myY], undefined, false, true)[0];
//Apply an object style "myTextFrameStyle" to
//all of the text frames in the story.
for(var myCounter = 0; myCounter < myStory.textContainers.length; myCounter++){
myStory.textContainers[myCounter].applyObjectStyle(myDocument.objectStyles.item("myTextFr ameStyle"));
Thanks,
Ole

Similar Messages

  • Problem while importing data schema not found

    Hi,
    I'm facing problem while importing data through system to a schema and impdp gives me error that schema XYZ was not found but when I query dba_users schema exist there what could be the reason of this.
    Regards,
    Abbasi

    Hi,
    Here is complete listing
    bash-3.2$ impdp system/abc schemas=XYZ DIRECTORY=data_dir DUMPFILE=Today_dump.dmp LOGFILE=Today_log.log PARALLEL=8
    Import: Release 11.1.0.7.0 - 64bit Production on Friday, 07 January, 2011 11:18:57
    Copyright (c) 2003, 2007, Oracle. All rights reserved.
    Connected to: Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production
    With the Partitioning, OLAP, Data Mining and Real Application Testing options
    ORA-39002: invalid operation
    ORA-39165: Schema XYZ was not found.
    Regards,
    Abbasi

  • Problem in importing data in oracle 10g from 9i backup

    Hi ,
    Am trying to import data in oracle 10g..but it does not importing constraints, and stop doing anything by the msg.
    About to enable constraints.....
    after this msg it does not work.
    plz help,
    Regards,
    Neha

    Hi Neha,
    You have a lot of options. I'll supose you can test first, and you're using an export file.
    First forget about the data, think in your database structure. So you can do this:
    exp userid=... file=exp_norows.dmp full=y rows=n statistics=none
    Now you have the structure of your database. Create the database, in 10g, empty, check you have all filesystem, etc. for you new datafiles. And do the import with parameter ignore=y, you'll see a lot off errors on SYSTEM schema, don't worry about it.
    Now you have the structure of you database in 10g. You can take a look in the import log file, looking for some possible errors come from your schemas. so check the objects, and check the schemas.
    Bear in mind things like CONNECT role in 9i it's different in 10g, you can't create db_links in 10g with "IDENTIFIED BY VALUES" because you'll get an ORA-00600, etc.
    Well, fix all problems on source database (9i) and repeate this procedure until you don't recieve any more errors (not a SYSTEM schema errors).
    When you have everything solved, you can try to import the data.
    I hope, this method can help you. If you have any problem do not hesitate to ask me.
    John Ospino Rivas

  • Problem in importing data service into workspace

    Hi,
    I'm using Visual Composer (7.0, Flex Server installed) in Netweaver 2004s Sneak-Preview.
    When I import BW query to workspace, below error message is displayed.
    "Error-30005Cannot create the BI data service Cannot add BI data service to iView MYiView"
    then, just 4 dots is marked on workspace.
    In Portal, I created the connection with SAP BW in system landscape menu, then do connection test and test was successful! BW system is version 3.5 sp 15.
    But, I cannot use BW query in Visual composer.
    How Can I solve it?
    Message was edited by: Young Seol Sohn

    Hi Poornima,
    It’s a known issue with Excel Driver. The Excel driver reads a certain number of rows (by default, 8 rows) in the source to guess at the data type and length of each column. When a column contains mixed data types, especially numeric data mixed with text
    data, the driver decides in favor of the majority data type, and returns null values for cells that contain data of the other type. To avoid this issue, we only need to add IMEX=1 to the value of Extended Properties in the connection string of the Excel connection
    manager in the Properties window. The connection string is like:
    Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Temp\Excel\Template1.xls;Extended Properties="Excel 8.0;HDR=YES;IMEX=1";
    Reference:
    http://msdn.microsoft.com/en-us/library/ms141683.aspx 
    Regards,
    Mike Yin
    TechNet Community Support

  • Problem in importing data to Excel from a REPORT

    Hi,
    Can anybody tell me ,
    i created a report using alv_grid_display function. but if i want to load the output data , i am unable to load it in to excel by clicking on the spread sheet icon on the output screeen. but i am able to load it by going to printpreview  and after if i click the spreadsheet icon.
    please suggest me
    thanks in advance.
    KP

    i guess you want to say that when you click on the change layout to spradsheet, then it is not working.
    If thats the case then check your fieldcatalog, there must be some error, like uper case word is missing or any column number is double somthing like that may be there.
    Regards,
    Amit
    Reard all helpful replies.

  • Problem in importing data from shape file to Oracle Spatial

    The following error is being displayed
    symbol : constructor ShapefileReaderJGeom(java.lang.String)
    location: class oracle.spatial.util.ShapefileReaderJGeom
    Though i have downloaded latest Spatial Java class library (sdo_java_040319.zip) file and properly set sdoapi.jar and sdoutl.jar in the classpath.
    How can i get rid of this problem. Is it because i am still using old spatial java library for some other programs.

    Hi,
    Did you follow the instructions in the readme? Are you using Oracle10g?
    Thanks,
    Dan

  • Import data to FDM fails for planning app

    Hi,
    I have a problem with importing data from oracle view using FDM script.
    I have to make 2 things:
    1. Import data to HFM app (it works fine)
    2. Import data to Planning
    First of all i have configured HFM integration and set up all necessary information - it works fine (I can simply import data to import view using FDM).
    In the next step I'm trying to do the same with Planning data.
    I have set up connection to Essbase (I have test it setting up period table where I set manualy period table by getting values from Essbase Period and Year dimensions)
    When running the import process I got message that import failed. And thats all - no more informations in logs.
    I have also checked that:
    Data are imported from oracle view to my repository (new table with data was created but there is a problem with "showing them" on the FDM import site.
    Can any body help me with this one?
    regards
    Karol

    Hi,
    I take it you are using a Integration script to load the data from the sql respository, are you using the example script in the documentation and updating it ?
    If you are using the example script make sure the line > SQLIntegration = True matches the name of the function, so if it was
    Function SqlDload(strLoc, lngCatKey, dblPerKey, strWorkTableName)
    then it needs to be SqlLoad = True
    I have used the script to load data directly from a sql table into essbase so it does work in FDM
    If you are still having trouble then let me know further information or the script you are trying to run and I might be able to spot something.
    Cheers
    John

  • IMPORT DATA TO USER DEFINED TABLESPACE

    I HAVE FACED A PROBLEM REGARDING IMPORT DATA IN A USER DEFINED TABLESPACE.FOR DOING THIS AT FIRST I HAVE CREATED A TABLESPACE SAY USERS ASSOCIATED WITH A DATAFILE NAME AND PATH IS 'D:\ORACLE\ORADATA\ORCL\USERS01.DBF' ITS SIZE IS 200M.IN THE SAME PATH THERE IS A TEMPORARY TABLESPACE ASSOCIATED
    WITH A DATAFILE NAMED 'D:\ORACLE\ORADATA\ORCL\TEMP01.DBF' ITS SIZE IS 80M.
    THEN ASBESCO USER CREATED IN USERS TABLESPACE THROUGH THIS SQL COMMAND.
    CREATE USER ASBESCO IDENTIFIED BY ASBESCO
         DEFAULT TABLESPACE USERS
         TEMPORARY TABLESPACE TEMP
         QUOTA UNLIMITED ON USERS
         QUOTA UNLIMITED ON TEMP;
    GRANT PRIVILAGE TO ASBESCO USER BY THIS SQL .
    GRANT CONNECT,RESOURCE,DBA TO ASBESCO;
    MY EXPORT FILE NAME IS ASBESCO.DMP WHICH IS EXPORTED FROM ANOTHER MACHINE. I WANT TO IMPORT THIS INTO MY MACHINE'S SPECIFIED TABLESPACE. ITS SIZE IS APPROX 26 MB.
    NOW I MPORT ASBESCO.DMP FILE THROUGH THIS COMMAND..
    IMP SYSTEM/<SYSTEM PASSWORD> FILE= ASBESCO.DMP FROMUSER=ASBESCO TOUSER=ASBESCO.
    AFTER SUCCESSFULL IMPORT OPERATION I HAVE SEEN ALL OBJECTS IN ASBESCO USER ARE CREATED IN SYSTEM TABLESPACE NOT USERS TABLESPACE. WHY?
    IT IS TO BE NOTED THAT I HAVE NOT MENTIONED THE DEFAULT TABLESPACE 'USERS' WHEN I CREATED MY USER OBJECTS.

    Please change to lower case letters
    If the user has UNLIMITYED tablespace privilige
    Revoke it
    If the user has a privelegs on a tablespace
    Revoke it
    Create a new tablespace and assign it to the user as Default tablespace.
    then import

  • Error when importing data using DTW template

    Dear All gurus/experts,
    I have a problem when importing data into SBO system using DTW. The error message is "sort error, pls check the prepared data and delimeter. I use SBO 2004 SP 00 PL 41. I don't understand to cope with this problem, I have no idea anymore. I appreciate your answer. TIA
    Rgds,

    Tks for your reply. I have seen it and the error message relates to delimeter. I have tried to correct the error by recreate the file and save as tab delimeted. Right now I am trying to import the files.
    Rgds,

  • Aperture Video Import Problem - from Lumix GH4: Imported clips have their dates changed to the import date.  The files show up on the hard drive but many are not showing up in Aperture.

    Aperture Video Import Problem - from Lumix GH4: Imported clips have their dates changed to the import date.  The files show up on the hard drive with import date not created date, but many of these same files are not showing up in Aperture. Sometimes the clips actually show up with the current import but take on the video information from a previously imported file.

    It was suggested I move this question to IPhoto or IMovie which I did. 
    Well moving to a different discussion group did not provide an answer to this question either. But what I finally did was import one batch of photos and videos into IPhoto for a given day at a time. Working with these I could change the date and times in order to get them in the original sequench taken. Then I would create an album with that batch. These would all be on the same day (IMove was closed for this phase). Then I would open IMovie, generate the thumbnails for that album, and select the album I had created. This was necessary because the importing process in IPhoto was using incorrect dates for my video so it was a real struggle finding them in IMove until I developed this approach.
    I believe that this whole process was so screwy because I was importing from an external hard drive not a camera. I had these photos on a PC and did not have the original cameras to use to import directly which I am fairly sure would have made this easier!

  • I have a password problem. After importing data and settings from one MacBook Pro to a new one, I have to put my iCloud password in when re-starting, but the password from the old computer in when waking the computer from sleep.

    I have a password problem. After importing data and settings from one MacBook Pro to a new one, I have to put my iCloud password in when re-starting the new computer, but the password from the old computer in when waking the computer from sleep. I want to use my iCloud password on both computers consistently. How can I fix this?

    The only other place to change a password for the computer login is in Users & Groups preferences. But I don't really know enough here to fix your problem. You can try fixing the keychain:
    iCloud- Frequently asked questions about iCloud Keychain
    Tutorial: Resolving Keychain Issues
    If you can't access your keychain, or forget your password If you can't get into your keychain file because you've forgotten your password or the keychain file appears to be corrupt, there are a couple of options.
    First, if you've forgotten your password, you can use the "Keychain First Aid" utility to make the keychain password the same as the login password. This can be accomplished via the following process:
      1. Open Keychain Access (located in Applications/Utilities)
      2. Go to the "Keychain Access" menu and select "Preferences"
      3. Click the "First Aid" tab
      4. Make sure the "Synchronize login keychain password" box is checked
      5. Close the Preferences window
      6. Go to the "Keychain Access" menu and select "Keychain First Aid"
      7. Enter your username and password
      8. Click the "Repair" button
    The second option is to completely delete your keychain then recreate it. This routine is useful if your keychain appears to be corrupt or otherwise inaccessible. This can be accomplished as follows:
      1. Launch Keychain Access (located in Applications/Utilities)
      2. Click "Show Keychains" in the lower-left corner of the window.
      3. Select the problematic keychain from the left-hand pane.
      4. Navigate to the "File" menu and select "Delete Keychain '(name of keychain)'"
      5. Check all options for deletion and press "OK"
      6. Create a new keychain by going to the "File" menu, then "New" and selecting
          "New Keychain"
      7. You can now make this keychain your default if you desire by selecting it, then
          going to the "File" menu and selecting "Make '(name of keychain)' Default"
    Login as root and perform repair In some cases, problems with keychains can only be resolved when logged in as the root user.
    First, you want to enable the root user:
      1. OS X Mountain Lion: Enable and disable the root user
      2. OS X Lion: Enable and disable the root user
      3. Mac OS X 10.6: Enabling the root user
      4. Enabling and using the "root" user in Mac OS X
    After enabling the root user, and logging in under this account, again open Keychain Access. First attempt repairs using Keychain First Aid, and failing that, delete then recreate the keychain as described above while logged in as root.
    Persistently asked for stored passwords If you are persistently asked for passwords in various applications that you have specified should be remembered in a keychain, your "login" keychain may not be active for one reason or another.
    Navigate to ~/Library/Keychains/ (this is the Library folder inside your user's home folder). Find the file named "login.keychain" and double-click it.
    Failing that, select the "login" keychain within the Keychain Access application and make sure it is the default keychain by going to the "File" menu and selecting "Make 'Login' Default"
    Turn off Keychain synchronization in applications having problems If specific applications are experiencing issues when accessing password-protected material, the Keychain may be to blame.
    The above comes from an article published on MacFixit.com.

  • Excel import date problems

    Please tell me why when I import dates from excel to P6 7.0 the current date not what is in the excel spreadsheet is what appears in P6.  How do I fix this problem?

    Are there any solutions to the data truncation/rounding problem?
    I am trying to import Excel data into tables through SQL Developer and notice that the preview screen displays truncated/rounded numbers even after I have deliberately formatted the data in Excel as numbers in 3.2 format. Is there a workaround?
    Thanks for any advice you can give.
    Frank Eichel
    Forest Inventory Analyst
    Natural Resources Canada
    Victoria, Canada

  • Problem in importing calendar data

    Hi, I have a problem in importing calendar data, i.e. no national holidays are imported in the calendar (neither when I create the calendar nor later on using the settings). After waiting quite a while on the window "importing calendar data" I always get the message:
    "Unable to access calendar data - There was an error attempting to access a shared calendar using your internet connection. Check your connection settings and try again".
    That happens whatever the national holidays I choose.
    My internet connection works fine, so I don't understand where the problem is. Would anyone have useful hints?
    Thanks.

    Log into another account on you Mac and see if you can add holidays there. If not then a reinstall of iPhoto is indicated. To do so you'll have to delete the current application and all files with "iPhoto" in the file name that reside in the HD/Library/Receipts folder.
    If you can import OK in the other account then the problem is with your primary account. It could be a preference file other than iPhoto's. Here's how to determine if that's the case:
    Trouble Shooting Preferences in Leopard
    1 - Create a folder titled "Preferences A" on the Desktop.
    2 - Open the working Preferences folder, HD/Users/your_name/Library/Preferences, and move the contents to the Preferences A folder on the Desktop.
    3 - Make a duplicate copy of the Preferences A folder on the Desktop as a precautionary backup.
    4 - With the working Preferences folder empty run the application again and determine if the problems is fixed.
    NOTE: you may have to drag the contents of the working folder to the trash and empty if moving the contents to the A folder only copies them instead of moving.
    5 - If the problem is fixed:
    A - open the working Preferences folder (HD/Users/your_name/Library/Preferences).
    B - Open the Preferences A folder on the Desktop, select all of the contents and drag them into the working Preferences folder.
    C - When the Copy window pops up check the "Apply to All" check box and then click on the Don't Replace button as seen here.
    6 - If the problem is NOT fixed, empty the working Preferencess folder and move the contents of the Preferences folder on the desktop back into it.
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto (iPhoto.Library for iPhoto 5 and earlier) database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've created an Automator workflow application (requires Tiger or later), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. It's compatible with iPhoto 6 and 7 libraries and Tiger and Leopard. Just put the application in the Dock and click on it whenever you want to backup the dB file. iPhoto does not have to be closed to run the application, just idle. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.
    Note: There's now an Automator backup application for iPhoto 5 that will work with Tiger or Leopard.

  • Importing data into an existing table from excel problem

    Hopefully I am posting this in the right place..
    I am having trouble importing data from Excel into an oracle table using the 'import data' wizard in SQL developer.
    The problem is that the I want to import data into a table which all ready has data and I want the new data to be imported into the first row of the table not in a new row at the end of the table.
    This is probably best shown by example:
    create table todelete (
         site_no varchar2(2),
         data1 number,
         qa number);
    insert into todelete values ('w1',1,null);
    insert into todelete values ('w1',2, null);
    insert into todelete values ('w1',3,null);
    Now I want to import the following data from excel into the QA column starting at w1:
    SITE_NO
    QA
    w1
    4
    w2
    4
    w3
    4
    However, when I import the QA column it goes into a new row:
    SITE_NO
    DATA1
    QA
    w1
    1
    NULL
    w2
    2
    NULL
    w3
    3
    NULL
    NULL
    NULL
    4
    NULL
    NULL
    4
    NULL
    NULL
    4

    The problem is that the I want to import data into a table which all ready has data and I want the new data to be imported into the first row of the table not in a new row at the end of the table.
    No - the PROBLEM is that a table does NOT have a 'first' row or a 'row at the end of the table'.
    Rows in a table are like balls in a basket; there is NO 'first' ball.
    As already suggested please mark this thread ANSWERED and repost it in the sql developer forum where it belongs.

  • Problem import data blackberry dekstop manager from 8900 to Z30

    Hi,
    My old bb is model 8900.
    I have update bb dekstop manager 7 & try to switch data from bb 8900 to Z30 but it failed.
    Then I try to downgrade version dekstop manager but it also fail to import data to my new bb.
    The dekstop manager cannot connected with my bb & hang..
    Please help me!
    Solved!
    Go to Solution.

    Hi and Welcome to the Community!
    The Desktop Software is not capable of working with the new BB10 devices...you must use LINK:
    http://us.blackberry.com/support/transferring-to-bb10-device.html
    Good luck!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for