Access 2010 database with table containing field that contains Word 2010 documentshttp://forums.asp.net/t/1745510.aspx/1?Access+2010+database+with+table+containing+field+that+contains+Word+2010+documentsSat, 03 Dec 2011 23:53:04 -050017455104711196http://forums.asp.net/p/1745510/4711196.aspx/1?Access+2010+database+with+table+containing+field+that+contains+Word+2010+documentsAccess 2010 database with table containing field that contains Word 2010 documents <p>I have an Access 2010 database that contains a table with a field (&quot;notes&quot;) &nbsp;that has a data type = OLE Object.&nbsp; This field contains a single or multipage MS Word document and it opens Word outside of Access.&nbsp; I can make changes to the document and the table saves all the changes in the Access database.&nbsp; The other fields are ID, Lastname, Firstname.&nbsp; In Access I have no problem in opening the table and making changes to the document, but with ASP all I get is &quot;byte.system&quot;.&nbsp; I would appreciate any help in being able to open MS Word and display the document.</p> 2011-12-01T23:30:24-05:004711612http://forums.asp.net/p/1745510/4711612.aspx/1?Re+Access+2010+database+with+table+containing+field+that+contains+Word+2010+documentsRe: Access 2010 database with table containing field that contains Word 2010 documents <p>If you want to do this in ASP.NET, you need to write the document to the Response, which you can do using Response.BinaryWrite(). You also need to provide a way for the user to return the updated document to the web server so that the database can be updated. Here's an article that discusses the basics revolving around storing files in Access with ASP.NET: <a href="http://www.mikesdotnetting.com/Article/123/Storing-Files-and-Images-in-Access-with-ASP.NET"> http://www.mikesdotnetting.com/Article/123/Storing-Files-and-Images-in-Access-with-ASP.NET</a></p> <p></p> 2011-12-02T06:28:40-05:004712952http://forums.asp.net/p/1745510/4712952.aspx/1?Re+Access+2010+database+with+table+containing+field+that+contains+Word+2010+documentsRe: Access 2010 database with table containing field that contains Word 2010 documents <p>Thanks Mike.&nbsp; However, I encountered a problem: <span style="color:red">CodeFile</span><span style="color:blue">=&quot;AccessUpload.aspx.cs&quot; </span><span style="color:red">Inherits</span><span style="color:blue">=&quot;AccessUpload.&nbsp; I do not know where to find the AccessUpload.aspx.cs.&nbsp; Also &quot;Stream&quot; has a problem: The type or namespace name 'Stream' could not be found (are you missing a using <br> directive or an assembly reference?)</span></p> <p><span style="color:blue">Thank you for your help</span></p> 2011-12-02T20:55:00-05:004712974http://forums.asp.net/p/1745510/4712974.aspx/1?Re+Access+2010+database+with+table+containing+field+that+contains+Word+2010+documentsRe: Access 2010 database with table containing field that contains Word 2010 documents <p></p> <blockquote><span class="icon-blockquote"></span> <h4>gattabria</h4> I do not know where to find the AccessUpload.aspx.cs.&nbsp;</blockquote> <p></p> <p>That was the code behind. Create a page with a code behind file.</p> <p></p> <blockquote><span class="icon-blockquote"></span> <h4>gattabria</h4> The type or namespace name 'Stream' could not be found</blockquote> <p></p> <p>Add <strong>using System.IO;</strong> to the top of your code behind.</p> 2011-12-02T21:31:08-05:004713037http://forums.asp.net/p/1745510/4713037.aspx/1?Re+Access+2010+database+with+table+containing+field+that+contains+Word+2010+documentsRe: Access 2010 database with table containing field that contains Word 2010 documents <p>I created a page to put the code behind file but I do not know what code to use?&nbsp; Is it listed?&nbsp; I am new to C#.</p> 2011-12-03T00:00:22-05:004713377http://forums.asp.net/p/1745510/4713377.aspx/1?Re+Access+2010+database+with+table+containing+field+that+contains+Word+2010+documentsRe: Access 2010 database with table containing field that contains Word 2010 documents <p>I wrote an article about how to do it. If you are having trouble nderstanding that article, I suggest you start at the beginning: <a href="http://www.amazon.co.uk/Beginning-ASP-NET-Vb-Wrox-Programmer/dp/0470502215/ref=pd_cp_b_1"> http://www.amazon.co.uk/Beginning-ASP-NET-Vb-Wrox-Programmer/dp/0470502215/ref=pd_cp_b_1</a></p> <p></p> 2011-12-03T07:51:14-05:004713949http://forums.asp.net/p/1745510/4713949.aspx/1?Re+Access+2010+database+with+table+containing+field+that+contains+Word+2010+documentsRe: Access 2010 database with table containing field that contains Word 2010 documents <p>That is a book in the UK.&nbsp; Could you please tell me where to put the code behind file?&nbsp; I would really appreciate it.&nbsp; Thank you.</p> 2011-12-03T20:16:24-05:004713968http://forums.asp.net/p/1745510/4713968.aspx/1?Re+Access+2010+database+with+table+containing+field+that+contains+Word+2010+documentsRe: Access 2010 database with table containing field that contains Word 2010 documents <p>Code behind files are a most basic concept in ASP.NET Web Forms. If you don't want to start with a book, try the introductory tutorials here: <a href="http://www.asp.net/web-forms">http://www.asp.net/web-forms</a></p> <p></p> 2011-12-03T21:09:35-05:004714028http://forums.asp.net/p/1745510/4714028.aspx/1?Re+Access+2010+database+with+table+containing+field+that+contains+Word+2010+documentsRe: Access 2010 database with table containing field that contains Word 2010 documents <p></p> <blockquote><span class="icon-blockquote"></span> <h4>gattabria</h4> <p></p> <p>That is a book in the UK.&nbsp; Could you please tell me where to put the code behind file?&nbsp; I would really appreciate it.&nbsp; Thank you.</p> <p></p> </blockquote> <p></p> <p>Hello</p> <p>In fact you can drag and drop a button onto the aspx pageand you can double click the button and do what Mikesdotnetting's suggestions</p> <p>Best reguards</p> 2011-12-03T23:53:04-05:00