I am using a browser object to view PDFs in my c# code: { wbBrowsePDF.Navigating += new WebBrowserNavigatingEventHandler(wbBrowsePDF_Navigating); wbBrowsePDF.Visible = true; wbBrowsePDF.Navigate(strFileName); } private void wbBrowsePDF_Navigating(object sender, WebBrowserNavigatingEventArgs e) { System.Windows.Forms.HtmlDocument document = this.wbBrowsePDF.Document; } it works just fine and then I use: { wbBrowsePDF.Stop(); wbBrowsePDF.Navigate("about:blank"); wbBrowsePDF.Dispose(); } to close the document. Problem is that the acrobat reader (AcroRd32.exe stays open and must be killed using Task Manager. Could anyone please suggest any solution? Thanks.
crzyank
Posts
-
viewing pdf using browser object in c# -
How to retrive values into DataGridView From a XMLFile using c#.net2.0You may want to try this: private void cmdGetTrades_Click(object sender, EventArgs e) { dsXML.Clear(); // should already be defined else define it here // allowing user to select file else you can directly hard // code the file name openFileDialog1.Filter = "XML Files|*.xml"; openFileDialog1.Title = "Select SWAPs trades' XML file"; if (openFileDialog1.ShowDialog() == DialogResult.OK) { dsXML.ReadXml(openFileDialog1.FileName); grdTrades.AutoGenerateColumns = true; grdTrades.DataSource = dsXML; grdTrades.DataMember = "trade"; grdTrades.Sort(grdTrades.Columns["TradeID"], ListSortDirection.Ascending); } } I am using this so it certainly works! Hope that helps you. crzYank
-
DataViewGrid and datesand it worked........... crzYank
-
DataViewGrid and datesThat should work. I'll try that. Thanks! crzYank
-
DataViewGrid and datesHi, I have DataGridView in my application connecting to Oracle DB. Oracle table has a date as '03/12/2007' and same is returned to the front end via DataSet. However when this dataset is bound to the grid, the date displayed is '03/11/2007'!!! Similarly all the dates that have two (2) digit days (from 10 to 31) are reduced by a digit! e.g. instead of '03/30/2007' it shows '03/29/2007'. If I do not use any formatting for the .DefaultCellStyle property then the date displayed is '03/11/2007 11:00 PM'. Dates with single digit days i.e. '03/08/2007' stays the same though - with or without formatting. Please note that my SQL statement truncates the date to short date format - TRUNC(pay_date) - already. Any help is really appreciated. Thanks. crzYank
-
DataGridView and ComboBoxesHello! I have a DataGridView object (not DataGrid) that has three DropDown ComboBoxes (cboOne, cboTwo and cboThree) in columns one,two and three. I need to update contents of cboTwo dynamically depending on the selection in cboOne on the same grid. Then based on selection from cboTwo, cboThree should change it's contents. Please consider that every row could have a different selection for cboOne that would impact available choices for cboTwo that in turn would impact contents of cboThree. I am just wondering if someone can help me out - if at all this is possible. Thank you. CrazyYankee