How to open a document from a known path from Plugin, I am using CS4

Hi
I have some files in one of the location and wanted to open through plugin
I have a piece of code which does not throw any error nor opens the document
I get the message "Before" and "After"
i would like to know where am i going wrong
Code below: 
const ASUnicode *s = (ASUnicode *) "C:\\test.ai";AIColorModel colorModel = kAIUnknownColorModel;
ai::FilePath path;
path.Set(ai::UnicodeString(s),
false);ActionDialogStatus dialogStatus = kDialogNone;
AIBoolean forceCopy=
false;sADMBasic->MessageAlert("Before");
error = sAIDocumentList->Open(path, colorModel, dialogStatus, forceCopy, &document);
sADMBasic->MessageAlert("After")
Experts, Please help me
Thanks
Srinivas

hi
Thanks for the quick reply,
i tried using that but it resulted in compilation error
const ASUnicode *s = (ASUnicode *) "C:\\test.ai";ai::FilePath path(s,true);
Error 5 error C2664: 'ai::FilePath::FilePath(const ai::UnicodeString &,bool)' : cannot convert parameter 1 from 'const ASUnicode *' to 'const ai::UnicodeString &'
Thanks
Srinivas

Similar Messages

  • HOW TO OPEN WORD DOCUMENT FROM JAVA???

    hi everyone! Can you please help me to come with this problem? Let me to set my main target I want to achieve:
    1) In my program user should first press a button;
    2) Then already created Word Document should be opened (I DO NOT NEED to open that Word Document in Java or something like JField). Just simply it should be opened as a Microsoft Word Document.
    I DO NEED YOUR HELP! PLEASE HELP ME....!

    Running cmd using the exec is also a windows only solution, there is no "more" or "less" it that solution compared to the rundll.
    Since word is a windows format its pretty obvious that the application is ran under windows platform.
    If you are running on a different platform (maybe using open office you can open word documents, i'm not sure) you might want to use the JDIC library (https://jdic.dev.java.net/) which enables you to open/edit/browse such files using the default viewer/editor/browser of the system you are working on.
    Look at the org.jdesktop.jdic.desktop.Desktop object for these methods.
    You can also find the Desktop object in J2SE6 but its still in beta.

  • HT1688 How do you print documents from an ipad one using an iphone?

    I want to be able to print from my ipad one using my hot spot through my iphone.  Is this possible?

    No. Or, to be more accurate, yes, but it's not going to be worth the hassle. By the time you monkey around with all of that, you could have just purchased an AirPrint compatible printer and had done with it.

  • How to open word document from application server?

    hello ,
    I want to open a word document that is placed on the application server.
    the function module 'ws_execute' works fine for displaying documents placed on ur local file system. But if i want to open from application server, what needs to b done?
    i m referring to the following demo program 'SAPRDEMOOFFICEINTEGRATION'
    is this the correct reference or there is some other way to do the same?
    kindly help.
    Regards,
    Roshani

    Hi Roshani,
              The solution is like this.
    1> Execute - this is the solution to your program. The file is generated and put in the Application Server for the data to be sent by some means to the intended Place.
    2> To Display/View - This is for the person (who runs the program) to view if the output generated is correct or not.
             So to accomplish this use the same internal table for both Open Dataset and Gui download.
    Open dataset puts data onto the Application server and Gui_download puts the data onto the Desktop or Presentation server for the user to see the data thats fetched.
    So use them as directed to achieve the desired output.
    Reward Points.
    Thanks,
    Tej..

  • How do I save documents from iCloud into pages on my ipad?

    HOw do I save documents from iCloud into pages using an ipad?

    Where are you expecting to see "iCloud document?" Pages stores copies of your documents in iCloud but the documents appear in the Pages app. When you edit the document changes are automatically saved to iCloud. You do not go to iCloud to look for documents to open or copy.

  • HT2128 Does any one know how to attach a document from your mail, while you are already in your e-mail, meaning not having to look for your file first and then open the e-mail.

    Does any one know how to attach a document from your mail, while you are already in your e-mail, meaning not having to look for your file first and then open the e-mail.

    Luis
    Good question - and one that a lot of (business) people would like solved!
    Your question prompted me to do some research, and I found this workaround posted by Scott Grossberg:
    His solution actually addresses a second problem too - how to attach a document when replying to an email message. In your case you may not need to consider the "reply" aspect - but if not right now, it'll come in useful someday!
    I've pasted it verbatim - if it works for you (it does for me) then all credit goes to Scott for solving the problem. There's just one thing I'd add to his solution: you will probably want to rename the message, as by default Goodreader gives it the Subject line: Mail with GoodReader attachments.
    THE GOODREADER OPTION
    1.  CREATE the document you want to send.
    2.  SAVE it to GoodReader (this will require you to buy and install the app).
    3.  Go to your email and OPEN the email thread to which you want to Reply and attach your file.
    4.  COMPOSE your Reply.
    5.  DOUBLE TAP the message.
    6.  TAP SELECT ALL. This will copy the entire email thread.
    7.  OPEN GOODREADER on the iPad and go to the file you want to send as part of your Reply.
    8.  At the bottom of the GoodReader screen you will see an EXPORT icon (it looks like a rectangle with an arrow pointing to the right).
    9.  TAP the Export button.
    10.  TAP EMAIL FILE. Depending on your needs, tap either SEND FILE “AS IS” or “FLATTEN ANNOTATIONS.” This will open a compose message screen with the chosen document already attached.
    11.  TAP in the body of the email screen. TAP PASTE. This will place your composed Reply and the prior email thread into the message.
    12.  ENTER the Recipients’ names in the TO: field of your message.
    13.  SEND your email Reply.
    The modified version (= when composing a new message rather than a reply):
    1 Make sure that the doc you want to attach is saved in GoodReader
    2 In the message you are composing, double tap, select all, and then copy.
    3 Open GoodReader and select the file you want to attach
    4 Select the export button at the bottom of screen
    5 Select e-mail file
    6 Position cursor in body of the email message, tap and paste. You may want to delete the "sent from GoodReader" text that precedes the attachment.
    7 Rename your message (as by default it will be Mail with GoodReader attachments)
    8 Add the recipient's address in the To field.
    Hope this helps! All thanks to Scott for this workaround.

  • How to open a PDF from AS

    Hello again!!!
    I would like to know how can a Client open a PDF document which is in the AS.
    The point is that i know how to pass this document from Client to AS, but it needs to be open from Server using an aplication in Forms. Yes, i use the following line:
    WEBUTIL_HOST.NONBLOCKING('CMD /C ACRORD32 '||trim(:block.rute));
    and i have the ACRORD32.EXE in the Windows Path, so it should work. However, Acrobat launches a pop-up that says something like 'file not found', and the rute is correct and the file exists.
    Any suggestions?
    Message was edited by:
    abladb

    Hello,
    <p>Web.show_document calling .htm files saved on disk.....</p>
    Francois

  • How can I move documents from my iPad to the cloud?

    I am trying to move documents into the cloud from my iPad. Every time I select the upload icon, only my photos show up. How do I find my documents?

    squirrels,
    To save a single PDF document on iPad to Acrobat.com (i.e. one document at a time)
    Open a PDF document in Adobe Reader for iOS.
    Tap anywhere in the document to display the toolbar.
    Tap this icon in the toolbar.
    Select "Save to Acrobat.com".
    If prompted, sign in with your Adobe ID.
    If you want to transfer a lot of PDF documents on your iPad to any cloud storage service, you can transfer them to your Windows/Mac desktop computer using iTunes first.
    How to transfer PDF documents from your iPad/iPhone to your computer
    and upload them to the cloud storage service of your choice via a web browser.
    Does it answer your question?
    Please let us know if you still have a problem with uploading files.

  • Problem opening Office documents from KM

    Hello, I have some problem opening Office documents from KM.
    We stored a lot of office documents (Excel, Word ecc.) in a File System repository (the standard repository "/documents"), when I open one of these files, before to view the document, a little logon window appears, it asks portal user's credentials.
    If the user presses the "Cancel" button the logon window will be closed and the document showed, but on the next attempt to open an office file the system will asks again the user information .
    If the user gives the right information the documents will be showed and the logon window does not appear again..
    How con I avoid the logon request for each Office document in my repository?
    Any suggestion??
    Best Regards

    Thank you a lot Brad!!
    We use Office 2003 and the note 549610 solves our issue!!
    Best Regards.

  • How to open an Applet from a text link in a HTML Page

    Hi There
    How to open an Applet from a text link
    in a HTML page
    For example I have a HyperLink "Open Applet"
    When a user clicks that link i want to open a
    Applet in a AWT Window.
    How can i do this
    Will any one help me?
    -Ramya

    u can use javascript for that
    <SCRIPT language="javascript">
    function loadAppNow() {
    document.write("<APPLET ......></APPLET>")
    </SCRIPT>
    LoadApplet
    this will overwrite the applet on current window
    There are many good ways other than document.write to open in same window. I don't remember the syntax right now.
    Plz. refer to javascript tutorial for that.
    even you can insert the applet while retaining previous contents. its quite easy actually.
    regards....bhart

  • How can I copy documents from a Sharepoint On Premises library to a Sharepoint Online library and at the same time preserving their metadata?

    How can I copy documents from a Sharepoint On Premises library to a Sharepoint Online library and at the same time preserving their metadata?
    I use the Open Explorer Windows to drag and drop the files, but the metadata are not copied. Thanks.

    To maintain the metadata you'll need to use one of the third party tools that does this kind of migration.  Metalogix has a product with a free trial that we have used before.  (Don't remember whether the free version maintains metadata or not).
     You can read about it here:
    http://www.metalogix.com/Products/Content-Matrix.aspx
    Paul Stork SharePoint Server MVP
    Principal Architect: Blue Chip Consulting Group
    Blog: http://dontpapanic.com/blog
    Twitter: Follow @pstork
    Please remember to mark your question as "answered" if this solves your problem.

  • How to open iCloud documents with ios8

    hi,
    i recently updated my iPad to ios8. and when it asked me to install iCloud drive i said yes.
    Now when i open pages on my iPad, there are no documents.
    when i go to iCloud.com on my mac i can see those documents, so they still exist.
    how can i open my 'iCloud'  documents on pages on my iPad?
    most forums say i need to install the beta version of os yosemite, whom installation is not working those days.
    the only thing i can do was to open a document on iCloud.com on my mac and send it to me via email. from my iPad i could read that email and open the document in pages. But this work only with small documents, a document bigger than 20 Mo, cannot be sent via email ( i'm using gmail)
    please help me, i really need those documents, i'm working with them.
    thank you

    beckstarr wrote:
    Does anyone know how to open pages document with windows vista? i saved it onto a usb stick but when i tried to open it on the computers in my university which support windows vista, it didnt reconise the file and opened with a page of question marks!!!! Im panicking now!!!!!
    You cannot open it on Windows Vista. The only application in the world that opens a Pages document is Pages, and it is Mac OS X only.
    Your options:
    1. Find a Mac with Pages installed, and save the document as doc or pdf, which you can open on Vista.
    or, if that is impossible,
    2. Open the files in a texteditor like Notepad.exe on Windows and try to piece text fragments together to get at least part of your original text back. The images should also be available somewhere, even though all formatting is gone.

  • How to open my documents on windows 8?

    how to open my documents on windows 8
    pavilion p7-1234
    model:mxu23701n8
    This question was solved.
    View Solution.

    There are a couple ways you can do this, here's one:
    1. On the Windows 8 Start screen, move your mouse to the bottom left corner of the screen.
    2. Right-click in the corner, and a menu should appear. Click File Explorer.
    3. The Computer window appears on the Windows desktop. Click the file location from the navigation panel on the left. (Example: If the file you're looking for is in the Documents folder, click Documents, and browse to the desired file.)
    I hope this helps. If have further questions please let us know!
    Please click the thumbs up button to say "Thanks!"
    Clicking "Accept as Solution" on a reply that solves your problem makes it easier for other people to find solutions.
    I am an HP employee.

  • How to open Pages files from previous versions?

    Can anyone tell me how to open a pages file I made on Pages '09?  I don't remember uninstalling that version of Pages, so I'm guessing the current version just wrote over it.  Anyway, it won't let me open those files, which is puzzling since I can open Office documents from that time period.  Thanks.

    Pages 5 is in your Applications folder.
    Pages '09/'08 is in your Applications/iWork folder.
    Pages '09/'08 can not open Pages 5 files and you will get the warning that you need a newer version.
    Pages 5 can open Pages '09 files but may damage/alter them. It can not open Pages '08 files at all.
    Once opened and saved in Pages 5 the Pages '09 files can not be opened in Pages '09.
    Anything that is saved to iCloud is also converted to Pages 5 files.
    All Pages files no matter what version and incompatibility have the same extension .pages.
    Pages 5 files are now only compatible with themselves on a very restricted set of hardware, software and Operating Systems and will not transfer correctly on any other server software than iCloud.
    Note: Apple has removed over 90 features from Pages 5 and added many bugs:
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Peter

  • I can't download videos in Safari. I can't open Adobe documents from Mail or Safari even though I downloaded Adobe from the App Store.

    I can't download videos in Safari? It doesn't tell me why or how to fix it.
    I can't open Adobe documents from Mail or Safari even though I downloaded Adobe from the App Store?

    I can't download videos in Safari? It doesn't tell me why or how to fix it.
    I can't open Adobe documents from Mail or Safari even though I downloaded Adobe from the App Store?

Maybe you are looking for

  • Getting Values of MMBE transaction

    Hello all,      I need to get the Values of the MMBE transaction and use those values in my report for calculation. Can anybody suggest a way to execute the MMBE tranasaction from my report and get the values in a  table. Regards, Vijayakumar

  • Leopard killed my mini... HELP!  :_(

    After many years of faithful service, I decided to give my mini (intel solo) a well deserved upgrade. I got Leopard from the Apple Store, installed, upgraded to the latest version (10.5.4), played with it throughout the weekend, and then, as I sat to

  • Thailand VAT numbering

    Hi, We are into ECC 600 & we need to implement that VAT solution for thailand. We have closely followed the SAP TH Country documentation so as to meet all statutory requirements. We faced no problem for incoming VAT. While configuring for Output VAT

  • Reports -- Creation for the Scenarios Mentioned

    Hi All: I need to create a Report and Dash Board using the following scenarios as mentioned below, Please let me know the procedure for the same. Region Wise Lead Reports 1 Region 2 Lead amount 3 No of leads 4 Subtotal 5 Grand total Top 10 Performer

  • Retrieving Model's metadata using OdiRef

    Folks, Does anyone knows how to get the "resource name" from a file type model, using odiRef? Let me be more specific: in a interface, when mapping a value to a target column, I have to insert the file name of a model's resource name. Have to note th