by using webBrowser.DocumentStream = source; you are passing data to the WebBrowser without telling it where the data came from, so it cannot possibly use that location as its file base. Why don't you try webBrowser.Navigate(@"..\HtmlPages\supportHtml.html");
I would like to modify the below xml where AssetClass name="CDS" and fieldType id= SECURITY. The below code is throwing exception at root.ReplaceChild... line "The node to be removed is not a child of this node.". Please correct it.. Thanks in advance.
I have developed an application in c#, i have also done reporting in it. My application contains folder Reports with .rpt files in it. Currently i m giving the report file path as the full system directory path, i want to give the path directly by using my application boundary,not the complete path. how can i fetch the .rpt file path from the Reports folder, Plz help...
Now I want to show the data in the grid but in summarized form. like only the data that is in table 1 will be displayed first and at the left most a + sign will be displayed when we press that the data of table 2 will be displayed then.
_objAppln = new Microsoft.Office.Interop.Excel.Application(); // To initialize excel file
if (_objAppln != null)
_objWorkBook = _objAppln.Workbooks.Add(Type.Missing); // To add workbook with sheets in excel file
//_objWorkSheet = (Microsoft.Office.Interop.Excel.Worksheet)_objWorkBook.ActiveSheet; // To get the current active sheet in excel file
string _fileName = "temp.xls";
After the code is execuled, the instance of Excel (EXCEL.exe) is seen in taskbar. I have as many number of instances, as many times I click on the button.
The instance exists even when I stop the application.
I am trying to display 2 relational tables ('authors' and 'titleauthor' tables in pubs database of NorthWind) in a single DataGridView. I have selected SQLDataAdaptor from toolbox and made the join query on 2 tables. I also added a DataGridView on the form and binded it to Dataset. I have the following code in my form load:
dataGridView1.DataSource = dataSetNew1;
dataGridView1.DataMember = "authors";
My DataSet is getting populated, but i am not able to display the data in the DataGridView. Please help me out as i am new to Visual C#.