How to Open Project Professional file of particular project from project server pro-grammatically?

Hello all,
I am working on project server 2013 right now.
I am able to create and check in project from my C# application. but is there any way open MPP file of this project from my App.
Regards, Kartik Ghodasara Associative Software engineer, Synoverge Tech Pvt. Ltd. Ahmedabad Please vote or mark as answer if it helps...

Hello Folks,
i have found some code to do the stuff i want to. but it ain't working right now as i don't know what to pass in Filename
argument in the FileOpen() method.
Reference : http://us.generation-nt.com/answer/how-open-winproj-exe-2007-programmatically-c-applicatio-help-96037972.html
private void start()
var objProcess = Process.Start(@"winproj.exe", "/s http://servername/pwainstance/");
internal void OpenProjectPlanThroughXMl()
var backgroundThread = new System.Threading.Thread(new ThreadStart(start));
backgroundThread.Start();
System.Threading.Thread.Sleep(10000);
Microsoft.Office.Interop.MSProject.ApplicationClass objProject = new ApplicationClass();
objProject.Visible = false;
object oMissing = System.Reflection.Missing.Value;
object oFile = @"<>\myprojectname.published";
object oUserName = "username";//"MSProjectUser"; // Project server database user
object oPassword = "password@123";//"tcs@12345"; // project server database password
object oURL = "http://servername/pwainstance";
object oFormat = "MSProject.mpp";
objProject.DisplayAlerts = false;
objProject.FileOpen(oFile, oMissing, PjMergeType.pjDoNotMerge, oMissing, oMissing, oMissing, oMissing, oUserName, oPassword, oFormat, oMissing, PjPoolOpen.pjPoolReadWrite, oMissing, oMissing, oMissing, oMissing);
objProject.ActiveProject.Application.BaselineSave(true, PjSaveBaselineFrom.pjCopyCurrent, PjSaveBaselineTo.pjIntoBaseline, true, true, true);
objProject.ActiveProject.Application.PublishAllInformation();
right now i am getting error like "Argument not valid".Please help me out. 
Regards, Kartik Ghodasara Associative Software engineer, Synoverge Tech Pvt. Ltd. Ahmedabad Please vote or mark as answer if it helps...

Similar Messages

  • How to open jpg, tiff files in camera raw from elements 10 organizer

    How to open JPG, TIFF files in camera raw from Elements 10 organizer.

    Thanks for that Damead, I agree with you that Organiser is real pain (there is a total lack of intuitiveness if that is  the correct word).
    For my own work I use 'Lightroom' for around 90% of the time, only going into PSE10 for the 10% difficult bits the Lightroom can't handle.
    I only needed to sort out the JPEG file opening method within PSE10 for some freinds in a small Photo Group that I run in Woodhall Spa, UK. 50% of the 12 members are beginners & a number of them do not have Raw capability on their Camera's, but now they can get their JPEG's into Camera Raw within PSE10 they have the same simple tabular form of adjustment sliders (not as many as in Lightroom of cause) but it gets over the labourious problem of going thru the PSE10's individual tool selection process each and every time since we are trying to get everyone in the Group working with individual Tools rather than the 'Auto' functions. We do this so that they learn what they are doing rather than staying 'dumb&happy' within Auto all the time & they also learn how to get more detailed control for each photo.
    Ref. your comments on file handling/usage, I agree with your comments. Its far and away much more preferable to set up a file structure in 'Finder" (or in 'Explorer' if still using Windows) that you understand so you always know how to find the files. Also, I also never ever use the Camera Auto Load programme but physically 'drag & drop' photo files direct from the 'card' into the file system so I always know thier place (ie: they go into the location I want, not that which the Auto Loader wants).
    As regards your comment about 'Lightroom', I don't have any problems at all since I just imported the whole of my photo file structure into the Lightroom Library Catalouge and then it automatically shows up on the LHS of the screen, still in that format, so you can search it direct within Lightroom and display all of the photo's in variuos arrangements and sizes; everything is as easy to find as it is in 'Finder' plus of cause you have all the 'Tagging' possibilities to use as well. As you add more new files into the 'Finder' structure, all you need to do in Lightroom is reimport, starting 1 level up from the new files and Lightroom will find the new files that need loading (ignoring the older ones already in the Library at that or lower levels) then 1 click and its done.
    Your comments about getting others to follow a set file structure is very pertinant and also applies to evrything else that one ever does apart from just photo work; the times I have had to help others find info/files etc on their PC's because they don' know the location of anything is too many to contemplate.
    Regards

  • How to open an excel file on my ipad from dropbox

    How can I open an excel file on my ipad from dropbox using numbers?

    You are asking about Numbers for iOS in a forum dedicated to Numbers for OS X.
    As most of us aren’t using this app, it would be more efficient to ask in the dedicated forum (link below).
    Yvan KOENIG (VALLAURIS, France) lundi 26 décembre 2011 12:03:51
    iMac 21”5, i7, 2.8 GHz, 12 Gbytes, 1 Tbytes, mac OS X 10.6.8 and 10.7.2
    My iDisk is : http://public.me.com/koenigyvan
    Please : Search for questions similar to your own before submitting them to the community
    For iWork's applications dedicated to iOS, go to :
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • How to open a XML file in internet explorer from labview

    I need to open the xml file and see the content in the internet explorer through labview. clicking the button in labview front panel  i need to see the same view as we double click the xml file as it open in internet explorer .

    Hi parthipan,
    you can use the "Open URL in Default Browser.vi".
    Mike

  • How to open a pdf file in Acrobat Reader from a webdynpro application

    Hi,
    I need to open a pdf file stored in the server from a web dynpro application. The pdf needs to be opened in the stand alone reader at the client and not in a reader embedded in the browser.
    Cheers,
    Krish

    Hello,
    I'm fairly new to webdynpro and am trying to  render a pdf via webdynpro.
    The webdynpro application runs but I see only a blank screen with the title.Is there any specific setting I need to do in order to view this pdf?I have used the FileDownload-UIElement.
    Thanks in advance
    Biraj

  • How can i check the file  which is upload from  the server

    when upload the excel file from the server file to the internal table ,how can i check the data whether it accord with  the required condition .
    for example ,i want to upload the file which have the data whose type is pack, and it have three integer and  two decimal ,how can i check in my code.
    thanks,

    Hi Sichen,
    First upload the file, Then do ur validations and delete the records that doesn't satisfy ur requirements.
    Thanks,
    Vinod.

  • HT1863 How can I transfer a file of older images from my macbook pro to my new iPad.

    Hi,
    I'd like to take an album of photos on my Macbook Pro and transfer them to my Ipad using iphoto. I have iphoto on each device.

    You can sync photos from your Mac's iTunes to the iPad's Photos app - once they are in Photos then the iPhoto app should see them as well. To sync photos, connect and select your iPad on the left-hand sidebar of your Mac's iTunes (you can enable the sidebar via option-command-S on a Mac), and on the right-hand side there should be a series of tabs, one of which should be Photos - if you select that tab you can then select which iPhoto albums to sync to the iPad. There is a bit more info on this page.
    You will need to sync all the photos that you want on the iPad together in one go as only the most recent photo sync remains on the iPad -photos synced from a computer can't be deleted directly on the iPad, instead they are deleted by not including them in the next photo sync.

  • How to open a .pse file in photoshop elements?

    Hello,
    All my previous files were saved as (.psd). Somehow, one of my photoshop elements projects was saved as a (.pse). I can't open it. How can I re open this file and continue working?
    Thanks in Advance

    A PSD is the standard working file for Photoshop.
    A PSE is a project file for Photoshop Elements. These projects are multiple pages. If you are working with a PSE on Windows, there will be a folder along side your PSE that contains a PSD file for each page of the PSE. If you are missing this folder, you won't be able to open the file. The PSE file itself is just instructions on how to open the PSD files as pages of a project. On Mac, all of these files are wrapped up in a single container.

  • How to open Adobe Reader file from another native IOS application?

    There is an existing thread, but I want to re-open it because I think this is an important feature that we need badly.  I was wondering if there is any plan to add this feature so we can open PDFs directly into Adobe from the web / other apps.
    How to open Adobe Reader file from another native IOS application?
    Basically, we just want to use a custom URL scheme to open a specific document in the App.  Currently, this only opens the app but does not load the file.
    APB

    Not to hijack the conversation but I can explain why this would be useful for both the above case and another.
    What I believe Pavel is talking about is setting up a "URL Scheme" for the Adobe Acrobat iOS application so that you can easily open a PDF specifically in Adobe Acrobat iOS from other native applications and even from web applications opened within Safari. This is particularly useful if your application requires some of the specific features in Adobe Reader iOS to grant them the best experience possible and you want to encourage this.
    Another case: If you're using Adobe Livecycle's document security modules (that encrypts PDF files so that Adobe Acrobat must "phone home" to decrypt and view the document), these PDF's can only be viewed inside the Adobe Acrobat application and appear as blank in most other PDF readers. Having a URL scheme allows your application utilising this functionality to have a 1 click step to view the PDF rather than the current non-user friendly process:
    - Within Safari, touch the PDF link (appears as blank in the default Safari PDF reader, which in itself is confusing)
      - Touch "Open in..."
      - Touch "Adobe Acrobat"
    We have an immediate need for this functionality for the example above. I can resubmit it in a separate post if necessary.

  • How to open a .War file

    Hi all
    I have an application running on J2EE server as packed .War file .
    Does anybody know how to open the War file in NWDS ??
    And how to modify some JSP present in that application ???
    Thanks
    KK

    Hi KK
    You will ot be able to open a WAR application deployed in NWDS . Alternatively you can open it using windows ity tools like winzip outside NWDS .
    What you can do is you can create a Web module project and incude all the src including JSP's and change the reqd jsp and redeploy the application again with the changes
    hope this helps,please do not forget to reward suitable points .
    regds
    rajeshkr
    Message was edited by: Rajesh K. R.

  • How to open a specific file in projector.

    Hi to all
    can any body tells me that how to open a specific file in
    projector with an application not in browser????
    and also want to add a button to mute the sound just like in
    intros with fade in and out effect.
    its urgent....
    Thanks in advance

    Hi,
    You can use FlashJester JStart
    http://jstart.flashjester.com
    that will open up any file the has been associated in Window
    Explorer.
    Download a FREE evaluation copy and try it for yourself.
    Please look at the example files given.
    Regards
    FlashJester Support Team
    e. - [email protected]
    w. -
    http://www.flashjester.com
    There is a very fine line between "hobby" and
    "mental illness."

  • How to open a .MAT file in LABVIEW

    Hey everyone,
    I currently have a .MAT image file which I would like to open in LABVIEW to apply some image filters. However, I am unsure as to how to open the .MAT file in LABVIEW. Ideally I would like to be able to open the .MAT file without using matlab, and it seems the only way to accomplish this task is through the mathscript node. I have attached an example of the image im trying to open, as well as the LABVIEW program which I would like to use on the image. Thanks for the feedback! =]
    Attachments:
    MAT_Image_Adjust.zip ‏1779 KB

    Hi Boiler,
    1) Do you have a choice in the format you export your data from MATLAB?
    "ASCII Format
    Complete the following steps if you want to import or export data between LabVIEW and the MATLAB® environment, the process is straightforward as long as you are using ASCII format.
    From the MATLAB® environment to LabVIEW
    To save a vector or a matrix Xin ASCII format with tab delimiter, enter the following in the command window or m-script file in the MATLAB® environment:   
    >>SAVE filename X -ascii -double -tabs
        This creates a file whose name is filename, and it contains the data X in ASCII format with a tab delimiter.
    Import the file into LabVIEW using the Read From Spreadsheet File VI located on the Programming»File I/O palette.
    2) Have you tried using the mathscript node? Did you get any errors?
    "Binary Format
    Complete the following steps if you want to import or export data between LabVIEW and MATLAB®.
    From the MATLAB® environment to LabVIEW
    To read a .mat file in LabVIEW would require a VI to parse the file. This may be easier if each variable is saved to a separate file.
    " -- this was done here, no ideas if it still works,
    I want to read a Matlab MAT file into labview
    Hope this helps, James
    Kind Regards
    James Hillman
    Applications Engineer 2008 to 2009 National Instruments UK & Ireland
    Loughborough University UK - 2006 to 2011
    Remember Kudos those who help!

  • I do not know how to open a folder, file !

    Hi  everyone,
    I do not know how to open a folder, file or
    a JavaScript  program in photoshop cs4?
    can you tell me how to proceed
    Thank you

    thank zhpingw
    the script not function unfortunately
    I had to go  through to have a flash file. swf
    I put in a  url link
    file. swf I was put in the palette and  its works!
    Download This file tutoweb. link . swf
    requete  content  for Google find tuto a Photoshop !
    Warning you change to script Google.fr  for Google.uk  in file .fla
    Place to swf in your palet of configurator
    Enjoy
    http://rapidshare.com/files/390041665/Flash_CS4.rar

  • How to open a .JAR file on the Z30

    Hi,
    Would anyine know how to open a .JAR file on the Z30?
    I get a message saying "Unable to open" when I click on the .jar file i want to open in my blackberry & install.
    Cheers
    Mario

    JAR files are for older java phones, they dont work on BB10
    maybe you should look into using SNAP to get some apps yoru looking for
    http://supportforums.blackberry.com/t5/Downloaded-Applications-for/You-Upgraded-to-OS-10-2-1-and-wan...
    Click here to Backup the data on your BlackBerry Device! It's important, and FREE!
    Click "Accept as Solution" if your problem is solved. To give thanks, click thumbs up
    Click to search the Knowledge Base at BTSC and click to Read The Fabulous Manuals
    BESAdmin's, please make a signature with your BES environment info.
    SIM Free BlackBerry Unlocking FAQ
    Follow me on Twitter @knottyrope
    Want to thank me? Buy my KnottyRope App here
    BES 12 and BES 5.0.4 with Exchange 2010 and SQL 2012 Hyper V

  • How to open a log file form a frame in linux

    Hy,
    Can anyone knows how to open a pdf file in linux from java?? and also a conf file(when I try Runtime.getRuntime().exec("path") -gives me an error like -I don't have the right to open that file , how can I open that file as root??)
    Thanks in advance

    Are you familiar with java.awt.Desktop?
    http://java.sun.com/javase/6/docs/api/java/awt/Desktop.html
    Try its open() method.

Maybe you are looking for

  • How do I change the instance number 00 that Java Engine trys to connect to?

    Hi All, I hope you may be able to advise me here.... I have a Solution Manager 4 installation that the Java Engine / Server 0 does not start on. When I look in the std_Server0.out log I see the below errors when trying to connect.  What I see wrong h

  • IOS 8.3 Safari issues

    I updated my iPhone 6 to iOS 8.3 yesterday. Afterward when I went to my Reading List in Safari, I discovered all of the articles and pages I'd saved were completely gone. My icloud has been full for awhile now and stupidly, I haven't backed up my pho

  • Photosmart c7180 paper jams & wrong paper size errors

    About 5 weeks ago I bought an ASUS computer with Windows 7, 64 bit and installed the drivers for my printer from the hp website. The printer is hooked up to my wireless network. No problem. 3 weeks later I have constant paper jams, I did the standard

  • Something weird is going on here..

    I was surfing VLC's webpage with Safari and watching a movie when my mousepointer suddenly stoped. Then it started moving again, and now everything is acting weird. The mousepointer works fine, but magnification in the dock doesn't work. Apps start,

  • TS2830 I need help. Trying to open iTunes and get a 13010 error???

    I'm trying to access itunes so I can put more songs on my ipod. I can't even get to itunes because I keep getting a 13010 error. Can anyone please help? Thanks, petpatrolkitty