ms-office

How to display record data in a table in MS Access Form

余生颓废 提交于 2019-12-01 09:24:00
问题 I am working in Offiice Access on a form. I notice that there are not a lot of controls available to use but I have a requirement to display data in a table like structure(not listbox or combobox). How can I accomplish this please? 回答1: Actually, one of the truly great features in Access is what we call a continues form. A continues form is simply a form in which you can place any kind of control you want, the magic trick part is those controls will repeat over and over for you for each row

Using Office Web Apps, Can you open a document via webdav?

左心房为你撑大大i 提交于 2019-12-01 08:57:14
问题 We're in the process of converting a legacy desktop application into a web enabled equivalent. However one feature is causing difficulty, editing MS Word documents. Current proposed solution is publishing the DOC and DOCX files via WebDAV and using a custom ActiveX component to launch WinWord and pointing it at a file via a URL. This works but it's limited in scope and the worlds moved on since it was conceived. Is is possible to use the new Office Web Apps to do this completely in-browser?

How to programatically tell if a word document is corrupt?

南笙酒味 提交于 2019-12-01 08:31:58
I've got a little C# application that interops with word converting a bunch of word .doc files into textfiles and for the most part this works fine. However, if the document is currupt then word cannot open the file and a dialog box pops up, which means that I cannot fully automate this conversion process - someone has to watch for the dialogs. Is there a way to test if a word .doc is currupt, without opening it? Perhaps through word interop or maybe through a 3rd party tool. One idea I've had is to spawn a thread that does the conversion and kill it if the process is open for longer than n

Is there a way to retrieve the meta for a deleted Item (File/Folder) for Office365 OneDrive through REST API?

百般思念 提交于 2019-12-01 08:14:06
I'm looking for a way to retrieve the meta for a deleted item(file/folder). I'm able to get change logs indicating that a certain action has been performed on an Item, and I've been able to retrieve the Item itself as well if it hasn't been deleted. The problem arises when this item gets deleted. In that case, I only know the ID of the Item and when I query the Item itself, I get a 404 (saying object has been deleted). Recently, I read the following posts http://office.microsoft.com/en-001/windows-sharepoint-services-help/view-restore-or-delete-items-in-the-recycle-bin-of-a-sharepoint-site

The Microsoft Office Access database engine could not find an object

流过昼夜 提交于 2019-12-01 08:10:05
I'm trying to copy data from excel to sql server but facing the following error. The Microsoft Office Access database engine could not find the object 'sheet1$'. Make sure the object exists and that you spell its name and the path name correctly. My code is: protected void importdatafromexcel(string filepath) { string sqltable = "PFDummyExcel"; string exceldataquery = "select EmployeeId,EmployeeName,Amount from [Sheet1$]"; string excelconnectionstring = @"Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" + filepath + ";Extended Properties=Excel 12.0;Persist Security Info=False"; string

How to programatically tell if a word document is corrupt?

孤街浪徒 提交于 2019-12-01 07:19:47
问题 I've got a little C# application that interops with word converting a bunch of word .doc files into textfiles and for the most part this works fine. However, if the document is currupt then word cannot open the file and a dialog box pops up, which means that I cannot fully automate this conversion process - someone has to watch for the dialogs. Is there a way to test if a word .doc is currupt, without opening it? Perhaps through word interop or maybe through a 3rd party tool. One idea I've

VBA Excel check if a particular table exist using table name

对着背影说爱祢 提交于 2019-12-01 06:37:08
I have several tables in an excel sheet. Each having unique table Name. I want to know if a table which has a name "Table123" exist or not in the current sheet. Could some one help me on this? Thanks Jeevan TableExists = False On Error GoTo Skip If ActiveSheet.ListObjects("Table123").Name = "Table123" Then TableExists = True Skip: On Error GoTo 0 This code will work and avoid loops and errors Here is an alternative function: Function TableExistsOnSheet(ws As Worksheet, sTableName As String) As Boolean TableExistsOnSheet = ws.Evaluate("ISREF(" & sTableName & ")") End Function Luboš Suk You can

SaveAs2 For Word 2010 not working with Client PC having Word 2007

一曲冷凌霜 提交于 2019-12-01 06:07:11
I have developed a WinForm Application with VB.Net (VS2010) having Office 2010 Professional Installed, and it is 64-bit Windows 7 Platform. The program opens a .doc and .rtf format document, and attempts to save it in htm format. I am using following commands: Dim sFilePath as String = "C:\ABC\file.doc" Dim oApp As New Microsoft.Office.Interop.Word.Application Dim oDoc As New Microsoft.Office.Interop.Word.Document Dim sTempFileName As String = System.IO.Path.GetTempFileName() oDoc = oApp.Documents.Open(sFilePath) oApp.Visible = False oDoc = oApp.ActiveDocument oDoc.SaveAs2(sTempFileName,

How to access columns in a table that have different cell widths from MS Word

若如初见. 提交于 2019-12-01 05:24:46
I am trying to get the cells from 1st column in a table. Getting exception in the " Foreach(Cells c in rng.Tables[1].Columns[1].Cells) " because the table contains columns that have mixed cell widths. for eg: in first row, there are 4 cells and in second row, there are only 2 cells (2 cells merged together) Error Message: " Cannot access individual columns in this collection because the table has mixed cell widths. " Document oDoc = open word document foreach (Paragraph p in oDoc.Paragraphs) { Range rng = p.Range; /* */ foreach (Cell c in rng.Tables[1].Columns[1].Cells) { //.... } } Instead of

Is there functionality that is NOT exposed in the OpenXML SDK v2?

一笑奈何 提交于 2019-12-01 05:14:13
I want to know if there is anything that you cannot do with SDK that was exposed in the COM interface? The OpenXML SDK is a convenience layer for the OpenXML file format. Using this SDK you can do everything that is possible to do with the file format, e.g. insert, modify and remove content, metadata and formatting. In contrast to COM automation of Office you can't do anything that is related to application logic. To give you some examples: Using the OpenXML SDK, you can't know the page number of a certain element in a text document because that would require pagination, you can't recalculate