Trouble retrieving OLE object from Access RRS feed

  • Question

  • Hi guys,

    I started using visual j# and i am having trouble on retrieve a pdf object from access to display on my program.
    I am copying the file to a temp pdf but when i try to write it i got a exception with a message saying the item could not be found on the collection.
    The select is fine since it retrieves the file (i saw it on get_Count())

            rs = connObj.Execute(strSQL, r , 0);
            adoStream.Open(System.Reflection.Missing.Value , ADODB.ConnectModeEnum.adModeUnknown,
            ADODB.StreamOpenOptionsEnum.adOpenStreamUnspecified , "" , "");
            adoStream.Write(rs.get_Fields().get_Item(new Integer(0)).get_Value());
            adoStream.SaveToFile(strPDFSrc , ADODB.SaveOptionsEnum.adSaveCreateOverWrite);

    Rafael Euclides
    Saturday, September 8, 2007 3:08 PM


All replies

  • I think i posted on the worng place. Sorry about that.

    Can anyone say where to post this topic?

    Rafael Euclides
    Saturday, September 8, 2007 4:03 PM
  • Moved to .NET data access and storage, seems more appropriate.


    Good luck,



    Tuesday, September 18, 2007 6:19 PM