How to read Microsoft Project File(.mpp) with pure Java?

Hi all:
I want to read Mircorsoft Project File in Solaris,but it too difficult to me.
Anyone that can help me with this it would be much appreciated!
Eagle

most of microsoft documents (doc,excel,mpp) files are formatted in propriety way. at the same time they follow some xml standards.
i think you can get those xml DTDs and try to build read mpp as xml.
have a trial in that way also.

Similar Messages

  • Has anyone Connected a Crystal Report directly to a Microsoft Project file (MPP)?

    Post Author: Brian Morris
    CA Forum: Data Connectivity and SQL
    Iu2019m aware I can save Microsoft Project Files (MPP) to an Access Database, Excel document etc. and there are ways to connect to a Microsoft Project Server.
    I wanted to know if anyone has managed to connect directly to one though. Currently we use MPPs to report project status and other deliverables, and itu2019s been an annoyance to have to save the project file then export the data over into a new excel document when ever we have changes (since not all users have project or need all the data in the file).
    Preferably, a user should be able to save that project file and anyone that has the Crystal report should be able to run the report against the MPP file. In addition to this, it would be extremely helpful in getting a formalized and nicely formatted report when running reports against rational and MMP files, thus giving an alternative from SODA reports in Microsoft word, which doesnu2019t always work well.
    Thanks!

    Post Author: Brian Morris
    CA Forum: Data Connectivity and SQL
    Ok, I answered my own question on the connection issue, but I'm having issues with the predefined fields that enter into the report. The Database Expert shows the correct table names, but when I select them and look at the fields, they are all showing fields that are part of the "Project" table. when I use "Add Command" and use SQL to do a "Select * From TableName" ,where TableName is the name of the respective table, I get the data I'm looking for. Has anyone else run into this error? Is the error on Crystal Reports side or the Data provider's OLE DB driver? Has anyone with a fully patched system encountered the same errors?
    Current SetupCrystal Version: 11.0.0.1282CR Professional; Product Type:FullOLE DB Driver: Microsoft Project 10.0 OLE DB Provider
    I have pasted my findings below, hopefully other people won't have the same issues I did trying to find this information. if anyone else wants to test and see if they get the same issues I did it would be greatly appreciated.
    Connecting a Crystal Report XI to a Microsoft Project File (MPP)
    Prerequisites (as I know them)
    -          Have an installation of Crystal Reports on the machine (a given)
    -          Have Microsoft Project 2000/2003 installed OR  the Microsoft Project OLE DB provider which is installed with Microsoft Project (NOTE: Microsoft 2007 supposedly no longer supports OLE DB and requires an OLAP cube be made or a SOAP connection be used, which I donu2019t deal with personally)
    Creating the connection
    Start Crystal Reports
    Click u201CBlank Reportu201D on the start page
    in the u201CDatabase Expertu201D window, under u201CAvailable Data Sourcesu201D, Select u201C+u201D next to u201CCreate New Connectionu201D
    Select the u201C+u201D beside u201COLE DB(ADO)u201D
    If a u201COLE DB (ADO)u201D  window does not come up, double click u201CMake New Connectionu201D 
    In the u201Cprovider:u201D box Select the u201CMicrosoft Project 10.0 OLE DB Provideru201D
    The name may be different depending on the version of project you install and the patch you have on the machine
    Select u201CNext >u201D
    Under u201CDatabase:u201D copy/paste in the path and project file name
    I donu2019t believe the other fields u201CData Source:u201D, u201CUser ID:u201D, or u201CPasswordu201D need to be filled out, and in fact, I got an error when entering in data into them
    Example: u201CC:\Projects\Project Name\Current Schedule.mppu201D
    Select u201CNext >u201D
    In the Advaned information window, verify the project Name is the path of the project.
    I have not found the use of u201CEnterprise Modeu201D (default: 0), u201CAlways Loadu201D (default: 0), u201COLE DB Servicesu201D(default: -5), or u201CEnterprise RUID Listu201D (default: blank), removing them or changing them did cause errors though.
    Click u201CFinishu201D
    Adding in Tables and extracting data
    You now have a connection to the project File you listed. There is an issue Iu2019ve found though that all the tables you see listed are filling their fields in from the u201CProjectu201D Table, rather then their respective tables (Example: u201CAssignmentsu201D is pointing at u201CProjectu201D rather then the obvious connection u201CAssignmentsu201D). You can, however, use the u201CAdd Commandu201D and select the table you want with just a little SQL code:
    Select *
    From Assignments
    After creating the command, highlight it and hit u201CF2u201D. You should be able to edit the name and change it from u201CCommandu201D to something more meaningful. At the current time Iu2019m unsure if the issue with the default tables all pointing toward the project table is an error on the provider side or Crystal Reports end, and if one of the new patches will fix it. I will update this document accordingly when I have more information and do more testing. I will note however, there is no way to change which table these preset fields point to.
    Thank you for your time.

  • How to read a .csv file(excel format) using Java.

    Hi Everybody,
    I need to read a .csv file(excel) and store all the columns and rows in 2d arrays. Then I can do the rest of the coding myself. I would like it if somebody could post their code to read .csv files over here. The .csv file can have different number of columns and different number of rows every time it is ran. The .csv file is in excel format, so I don't know if that affects the code or not. I would also appreciate it if the classes imported are posted too. I would also like to know if there is a way I can recognize how many rows and columns the .csv file has. I need this urgently so I would be very grateful to anybody who has the solution. Thanks.
    Sincerely Taufiq.

    I used this
    BufferedReader in = new BufferedReader (new FileReader ("test.csv"));
    // and                
    StringTokenizer parser = new StringTokenizer (str, ", ");
                    while (parser.hasMoreTokens () == true)
                    { //crap }works like a charm!

  • How can I read a binary file stream with many data type, as with AcqKnowledge physio binary data file?

    I would like to read in and write physiological data files which were saved by BioPac�s AcqKnowledge 3.8.1 software, in conjunction with their MP150 acquisition system. To start with, I�d like to write a converter from different physiodata file format into the AcqKnowledge binary file format for version 3.5 � 3.7 (including 3.7.3). It will allow us to read different file format into an analysis package which can only read in file written by AcqKnowledge version 3.5 � 3.7 (including 3.7.3).
    I attempted to write a reader following the Application Note AS156 entitled �AcqKnowledge File Format for PC with Windows� (see http://biopac.com/AppNotes/ app156Fi
    leFormat/FileFormat.htm ). Note the link for the Mac File format is very instructive too - it is presented in a different style and might make sense to some people with C library like look (http://biopac.com/AppNotes/ app155macffmt/macff.htm).
    I guess the problem I had was that I could not manage to read all the different byte data stream with File.vi. This is easy in C but I did not get very far in LabView 7.0. Also, I was a little unsure which LabView data types correspond to int, char , short, long, double, byte, RGB and Rect. And, since it is for PC I am also assuming the data to be written as �little endian� integer, and thus I also used byte swap vi.
    Two samples *.acq binary files are attach to this post to the list. Demo.acq is for version 3.7-3.7.2, while SCR_EKGtest1b.acq was recorded and saved with AcqKnowledge 3.8.1, which version number is 41.
    I would be grateful if you someone could explain how to handle such binary file stream with LabView and send an example to i
    llustrate it.
    Many thanks in advance for your help.
    Donat-Pierre
    Attachments:
    Demo.acq ‏248 KB
    SCR_EKG_test1b.acq ‏97 KB

    The reading of double is also straight forward : just use a dble float wired to the type cast node, after inverting the string (indian conversion).
    See the attached example.
    The measure of skin thickness is based on OCT (optical coherent tomography = interferometry) : an optical fiber system send and received light emitted to/back from the skin at a few centimeter distance. A profile of skin structure is then computed from the optical signal.
    CC
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        
    Attachments:
    Read_AK_time_info.vi.zip ‏9 KB

  • How can I read a binary file stream with many data type, as with AcqKnowled​ge physio binary data file?

    I would like to read in and write physiological data which was saved by Biopac�s AcqKnowledge 3.8.1 software, in conjunction with their MP150 acquisition system. To start with, I�d like to write a converter from different physiodata file format into the AcqKnowledge binary file format for version 3.5 � 3.7 (including 3.7.3). It will allow us to read different file format into an analysis package which can only read in file written by AcqKnowledge version 3.5 � 3.7 (including 3.7.3).
    I attempted to write a reader following the Application Note AS156 entitled �AcqKnowledge File Format for PC with Windows� (see http://biopac.com/AppNotes/app156FileFormat/FileFo​rmat.h
    tm ). Note the link for the Mac File format is very instructive too - it is presented in a different style and might make sense to some people with C library like look (http://biopac.com/AppNotes/app155macffmt/macff.ht​m) .
    I guess the problem I had was that I could not manage to read all the different byte data stream with File.vi. This is easy in C but I did not get very far in LabView 7.0. Also, because it is for PC I am assuming the data to be written as �little endian� integer, and thus I also used byte swap vi.
    I would be grateful if you someone could explain how to handle such binary file stream with LabView and send an example to illustrate it.
    Many thanks in advance for your help.
    Donat-Pierre

    One more step...
    short are U16 integer
    double are double precision float
    bool seem to be 2 bytes (= U16)
    char are string (variable length)
    rgb are U16 integer, with high order byte = 0
    rect should be 4 x U16 (top, left, bottom, right)
    Chilly Charly    (aka CC)
             E-List Master - Kudos glutton - Press the yellow button on the left...        

  • Hi, I godt 2 Questions: 1) My Adobe PhotoShop Elements 10.0 for MAC cannot read the RAW files taken with the new Canon 7D Mark II camera. 2) My Photoshop Elements has changed from the danish language to german language, how do I put this back ?

    Hi, I godt 2 Questions: 1) My Adobe PhotoShop Elements 10.0 for MAC cannot read the RAW files taken with the new Canon 7D Mark II camera. 2) My Photoshop Elements has changed from the danish language to german language, how do I put this back ?

    You're in the wrong forum.  This is not the Elements forum.
    Here's the link to the forum you want:
    https://forums.adobe.com/community/photoshop_elements/content

  • How to read multiple dat files.

    Hello Everyone!
    I am working on a project that requires one file that creates a JFrame with a current file title, JTextFields that accesses two .dat files and a JButton.
    The user clicks a JButton to cycle through the first sequential .dat file. When the end of the first file is reached the file is closed, the JFrame title is changed to the second file title as the user continues to click the JButton to continue on viewing the second file?s records, until the second reaches the end of file.
    The project requires using Try-Catches to catch the EOF exceptions and IOExceptions and Thread or Runnable.
    I have been able to get one file to read and display its records; however, researching back through my text on how to read/write to files I haven?t been able to determine how to get to the end of the file and proceed to the next file without triggering the EOFException. I have even tried multiple Try-Catches (one for each file within the actionPerformed method) and that ends up ignoring the first file records and only displays the second files records.
    This is a school project and we have only covered just the bare basics of Java over the last two months. So, any hints that anyone can provide can only be of what type of procedure will be needed or what procedure won?t help to complete the task, without giving away the solution.
    I have spent approximately 40 hours of study time on this project and believe that I have definitely run into a major snag.
    The following is the code I have so far:
    import java.io.*;
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class StudentRead extends JFrame implements ActionListener
       private JLabel gradStudentList = new JLabel("GRADUATE Student List");
       private JLabel undergradStudentList = new JLabel("UNDERGRADUATE Student List"); 
       private Font bigFont = new Font("Helvetica", Font.ITALIC, 24);
       private JLabel userprompt = new JLabel("View the students");
       private JTextField idNumText = new JTextField(4); 
       private JTextField lastNameText = new JTextField(15);
       private JTextField firstNameText = new JTextField(15);
       private JButton viewRecordButton = new JButton("View Record");
       private JLabel idNumberLabel = new JLabel("ID Number"); 
       private JLabel lastNameLabel = new JLabel("Last name"); 
       private JLabel firstNameLabel = new JLabel("First name");
       private Container con = getContentPane();
       DataInputStream gradStudentInStream;
       DataInputStream undergradStudentInStream;
       public StudentRead()
          super("Read Student Records");
          try
             gradStudentInStream = new DataInputStream(new FileInputStream("GradStudents.dat"));
             undergradStudentInStream = new DataInputStream(new FileInputStream("UndergradStudents.dat"));
          catch(IOException e)
             System.err.println("File not opened");
             System.exit(1);
          setSize(325, 200);
          con.setLayout(new FlowLayout());
          gradStudentList.setFont(bigFont);
          con.add(gradStudentList);
          con.add(userprompt);
          con.add(idNumberLabel);
          con.add(idNumText);
          con.add(lastNameLabel);
          con.add(lastNameText);
          con.add(firstNameLabel);
          con.add(firstNameText);
          con.add(viewRecordButton);
          viewRecordButton.addActionListener(this);
          setVisible(true);
          setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
       public void actionPerformed(ActionEvent e1)
          String lastName, firstName;     
          int IdNum;
          try
             IdNum = gradStudentInStream.readInt();      
             lastName = gradStudentInStream.readUTF();
             firstName = gradStudentInStream.readUTF();
             idNumText.setText(String.valueOf(IdNum));
             lastNameText.setText(lastName);
             firstNameText.setText(firstName);
          catch(EOFException e2)
             closeFile();
             System.exit(0);
          catch(IOException e3)
             System.err.println("Error reading file");
             System.out.println("out");      
             System.exit(1);
       public void closeFile()
          try
             gradStudentInStream.close();
             System.exit(0);
          catch(IOException e)
             System.err.println("Error closing file");
             System.exit(1);
       public static void main(String[] args)
          StudentRead rsr = new StudentRead();
    }

    deepak_1your.com wrote:
    hi,
    If you want to read a file guarding yourself agianst exceptions....
    check this article.... the code presented in this article might suit your needs...
    [http://1your.com/fusion/infusions/articles/readarticle.php?article_id=17|http://1your.com/fusion/infusions/articles/readarticle.php?article_id=17]
    And how does that help with a DataInputStream?

  • How to read several text files at a time

    Dear all
          Read and write one text file is not a problem, but  what confusies me is how to read several text files at one time, in the meanwhile,
    is it possible to display the name of the text file?
    For example, assuming I want to load file" cha 1, cha 2 , cha 3, " at one time and show their names, how to hadle with it
    I have reviewed some files and it is not helpful

    Either with a 'for' loop like in the lib you have attached, or like this attached VI
    that's it
    Message Edited by devchander on 05-30-2006 05:11 AM
    Attachments:
    MULTIPLE READ.vi ‏44 KB

  • How to Read a CAB File from JAVA?

    Hi,
    Anyone knows how to read a CAB File from java. I need to read a property file of txt file that is packaged in CAB file & then based on that, I have to do processing. Is there anyway to do it.
    I had tried using java.util.zip.ZipFile Class, but it does work for JAR, but not for CAB.
    siva.

    Perhaps there's something in the Cabinet SDK that will help:
    http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dncabsdk/html/cabdl.asp

  • How to read the properties file available in Server File structure in webdy

    hi all,
    I have developed one webdynpro application. In this application i need to access mdm server to continue. For getting the connection i need to pass the IP addresses.
    Can i have code  how to read the properties file which is residing in the server file. with out included along with the application. keeping some where in the file structure in the server. I want to read that properties file by  maintain the iP addresses and users in  properties file based on the key i want to read like below.
    servername="abcServer"
    username="john"
    password="test123"
    Please send me the code how to read this properties file from the file structure and how to read this values by key  in webdynpro application
    Regards
    Vijay

    Hi Vijay,
    You can try this piece of code too:
    Properties props = new Properties();
    //try retrieve data from file
    //catch exception in case properties file does not exist
    try {
             props.load(new FileInputStream("c:\property\Test.properties")); //File location
             String serverName = props.getProperty("servername"); //Similarly, you can access the other properties
             if(serverName==null)
               //....do appropriate handling
         }     catch(IOException e)
                   e.printStackTrace();
    Regards,
    Alka.

  • How to integrate Microsoft project to Oracle Project Management?

    Dear All,
    How to integrate Microsoft project to Oracle Project Management?
    I tried to find Oracle Project button in Microsoft Project to send Project plan to oracle projects. But I didn’t not found any button like Oracle project to upload.
    Can anyone please let me know what the prerequisites to integrate and how to import the same data in oracle Project Management Module from Microsoft Project?

    Hi,
    Please see "Oracle Project Management User Guide", Chapter 5.
    Applications Releases 11i and 12
    http://www.oracle.com/technology/documentation/applications.html
    The following documents should be also helpful.
    Note: 277096.1 - **FAQ Integration with Microsoft Projects**
    Note: 236522.1 - Oracle Project Management Release & Installation Notes
    Note: 236585.1 - Oracle Project Management Documentation
    Note: 804746.1 - Is It Possible To Use Microsoft Projects Integration Without Oracle Project Management?
    Regards,
    Hussein

  • How to read from properties file

    Hi,
    I am using JSR 168.
    while creating a new portlet, a folder gets created with the name as "portlet". Under which is resource package and <PortletName>Bundle.java.
    pls tell me how to read from .properties file.
    waiting eagerly for some reply
    Thanks & Regards,
    HP
    Edited by: user9003827 on Apr 13, 2010 3:42 AM

    I think i have mixed it up :)
    I have looked at it again and believe you are using regular JSP portlets.
    Can you tell what you want to achieve by reading .properties file. Are you meaning the preferences of the portlet or what exactly are you trying to do?
    Reading propertie files is easy:
    // Read properties file.
    Properties properties = new Properties();
    try {
        properties.load(new FileInputStream("filename.properties"));
        String myKey = properties.getProperty("yourKey");
    } catch (IOException e) {
    }Edited by: Yannick.O on 13-Apr-2010 05:52

  • How to make a PDF file short ( with less memory)?

    How to make a PDF file short ( with less memory)?

    @nalinss
    There are two ways: "Save as.." usually optimises size, but there is also "Optimize PDF" in the menu with many options what to exclude and to reduce in quality. Be careful here, as pictures can become very bad.
    A note: the size of a PDF vastly depends on from what source it is created. For example, if you draw some vector graphics in Visio and print to Adobe Printer, the resulting PDF is usually quite small in file size. Opening it in Illustrator and saving it again after you, let's say, just moved one line, can make it 10x as big. This is due to big overhead, Illustrator creates and this can not be reduced anymore in Acrobat later on. Sometimes it helps to convert or "save as" such an inflated PDF to a different format like EPS or HTML and print or convert again to PDF.
    So, if you created the PDF yourself and you still have the source, you may adjust settings in the export/print dialog to make it smaller.

  • How to read an xml file from headers

    Hi ,
    I am not getting how to read an xml file sent by client device in header to server.
    Thankx.

    There is a getHeader() in HttpServletRequest interface
    String locationURL=request.getHeader("Location");If URL of your file was set in Location attribute of header.
    Edited by: ngpgeeta on Dec 19, 2008 8:03 AM

  • How to read a text file using Java

    Guys,
    Good day!
    Please help me how to read a text file using Java and create/convert that text file into XML.
    Thanks and God Bless.
    Regards,
    I-Talk

         public void fileRead(){
                 File aFile =new File("myFile.txt");
             BufferedReader input = null;
             try {
               input = new BufferedReader( new FileReader(aFile) );
               String line = null;
               while (( line = input.readLine()) != null){
             catch (FileNotFoundException ex) {
               ex.printStackTrace();
             catch (IOException ex){
               ex.printStackTrace();
         }This code is to read a text file. But there is no such thing that will convert your text file to xml file. You have to have a defined XML format. Then you can read your data from text files and insert them inside your xml text. Or you may like to read xml tags from text files and insert your own data. The file format of .txt and .xml is far too different.
    cheers
    Mohammed Jubaer Arif.

Maybe you are looking for