Solved

How to embed MS Access table in .net form

Posted on 2011-02-10
8
325 Views
Last Modified: 2012-05-11
I want to embed Access table on a .net form instead of a table/datagrid showing the same data. How can this be done?
0
Comment
Question by:rishaan
  • 4
  • 4
8 Comments
 
LVL 83

Expert Comment

by:CodeCruiser
Comment Utility
Not sure what you mean.
0
 

Author Comment

by:rishaan
Comment Utility
Access table is very powerful with all the filter capability. I want to show that table on a .net form.
0
 
LVL 83

Accepted Solution

by:
CodeCruiser earned 500 total points
Comment Utility
Three options,

1) Dont use winforms. Use Access only.

2) Use winforms and show Access on your form
http://www.codeproject.com/KB/miscctrl/AppControl.aspx

3) Use winforms and try to provide maximum functionality using controls like grid etc.
0
 
LVL 83

Expert Comment

by:CodeCruiser
Comment Utility
0
What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 

Author Comment

by:rishaan
Comment Utility
In winforms I have different charts based on table..and now I wanted to show the data too with filter capability without writing code for datagrid  to have that complex filtering..
Will this http://www.codeproject.com/KB/miscctrl/AppControl.aspx
work for embedding Access..That is what I am looking..If actually someone embedded Access
0
 
LVL 83

Expert Comment

by:CodeCruiser
Comment Utility
Yes. Give it a try.
0
 

Author Comment

by:rishaan
Comment Utility
       axWebBrowser1.Navigate(sFileName, ref refmissing, ref refmissing, ref refmissing, ref refmissing); Not matching any overload.....
        If I use
axWebBrowser1.Navigate(sFileName);
But it opens in a seaprate window...
0
 

Author Comment

by:rishaan
Comment Utility
Added following code---Opens mdb in seaparate  window..
object oDocument;
 
private void button1_Click(object sender, EventArgs e)
 {
 string sFileName;
 openFileDialog1.FileName = "";
 openFileDialog1.ShowDialog();
 sFileName = openFileDialog1.FileName;
 
 if (sFileName.Length!=0)
 {
 oDocument = null;
 webBrowser1.Navigate(sFileName);
 }
 }
 
 private void Form1_Load(object sender, EventArgs e)
 {
 openFileDialog1.Filter = "Office Documents " + " " + "(*.doc, *.xls, *.ppt,*.mdb )|*.doc;*.xls;*.ppt;*.mdb";
 openFileDialog1.FilterIndex = 1;
 
 }
 
 private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
 {
 oDocument = webBrowser1.Document;
 
 }
0

Featured Post

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
The ECB site provides FX rates for major currencies since its inception in 1999 in the form of an XML feed. The files have the following format (reducted for brevity) (CODE) There are three files available HERE (http://www.ecb.europa.eu/stats/exch…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now