Server Side Office Automation?

Jun 22, 2011

We need to perform office automation (opening docx,doc,wrd,wpd files and saving them as .htm files) through Windows service or Web service but Microsoft does not support Microsoft Office automation in server side code.[URL]..We have understood that, "Word automation Services" feature of SharePoint server can be used to achieve this. But we are not in a position to acquire SharePoint server license.

Is there any other way to perform office automation through Windows Service or Web Service?

View 1 Replies


ADVERTISEMENT

Office Automation :: Server Side .Net Using Interop With PowerPoint?

Nov 18, 2010

Here's the user environment: Microsoft 2003 Web Server Microsoft Visual Studio.Net 2005 (VB.Net) Microsoft Office PowerPoint 2003 We are attempting to use Interop in a web service to update PowerPoint presentations. It worked great on my laptop, but when we migrated to the server, we encountered issues.Basically, it started taking 10 or more minutes to open up the presentation, which means we usually time out.

[Code]...

View 2 Replies

Office Automation :: Creating Client Side Excel Objects

Nov 5, 2008

I have a website. In it, I have a button which will export some data from a SQL database to Excel. I want to open an excel workbook on the client and paste the data there. This all works fine locally, but when i publish it, I get this error:ActiveX component can't create object.[code]Have searched the net, and it seems the problem is permission related. Can anyone explain to me how to configure my server so that I can use clientside Excel?

View 2 Replies

Office Automation :: PPT Automation = Multi-threading And RPC Server Unavailable

Apr 16, 2010

I have successfully automated a PowerPoint Metrics presentation with VB.Net. However, since there were many complicated calculations, it took quite some time to make the 120+ slide presentation - so I recently tried to revamp the application to be multi-threaded.

[Code]...

View 1 Replies

Office Automation :: Error Creating Word Documents On Server

Jan 24, 2011

I am not an expert programmer and am just getting familiar with .NET office automation. I have two questions:

1. For me to create word documents from my code on a server, does word have to be installed on the server? My test server does not have word installed. Is there a way to have the code open word on the user's machine in this case?

2. I am trying out some code for creating word documents. It works fine on my machine. However, when I try to run it on server it gives me an error.. "Cannot create ActiveX component." Is this a permissions issue or related to the fact that the server does not have word installed?

View 1 Replies

Office Automation :: Excel Automation - Cannot Use Office PIAs

Feb 14, 2009

It appears that when one creates an instance of Excel, using CreateObject, (Late binding), the suggested Excel closing function (with GC.collect etc) does not work. I have tried several suggestions, and the only one that works is process.kill method. Do you see any problem in using this? BTW: the reason we are using late binding is that we cannot use Office PIAs....not sure which version of Office would be installed on the client site. We work with O2003, but the client might still be at 2000 or 2002.

View 7 Replies

Timers On Server-side - From A Client-side Piece, Call Off To A Server-side Piece

Apr 22, 2011

I'm trying to, from a client-side piece, call off to a server-side piece. I need to do this synchronously. On my server-side code, though, I'm calling off to another piece of code, which I want to have a maximum of, say, 10 seconds to return a value. If I don't have a response within 10 seconds, I want to force my own server piece to set my result equal to 0, and return to the client.

Here's what I have on my server-side code so far:

Public Function GetWebResult(ByVal inputParameter As Object) As WebReturnObject Implements IWebInterface.GetWebResult
Dim result As New WebReturnObject
Dim webItem As WebItem = Nothing

[CODE]...

I realize this code is not functional. The problem is that I'm unsure how I would go about getting back into GetWebResult to set the appropriate return values before it is sent back to the client.

View 1 Replies

Office Automation :: Automatic Deployment Of Excel Automation Addin?

Jan 25, 2011

I have written an automation addin in Excel with C# (addin.dll). To use the addin, I need to 1. register it using "regasm /codebase c:...addin.dll"2. select in ExcelOptionsAddInsExcel AddinsAutomation the respective addin from the list

I would like to automatize 1) and 2), so that the user just needs to run an exe-file in order to use the addin. 1) should be no problem, but how can one automatize 2)?

View 12 Replies

Office Automation :: Excel 2003 Automation With VB 2005 Express?

Apr 20, 2010

Ok basically what I need to do is the following:Read FirstExcelDoc (attached)For every row in that: Retrieve data from sql server db based on info in the Orange columns of FirstExcelDoc Let's say I retrieved data elements A, B, C, D, and E from sql server. Then I need to enter those same data elements A, B, and C in another excel spreadsheet (which has formulas etc) After inputing A, B, and C in that spreadsheet, read a couple of calculated fields and compare those results to data elements D and E retrieved originally from SQL Server DB. Finally, output the results in the Blue columns of the FirstExcelDoc spreadsheet for that row.Loop through and do the same thing for row 2 of the FirstExcelDoc and keep on until you see "END TEST" in the FirstExcelDoc.

I'm looking for a method of doing this efficiently. I have read several articles over the past few days as well as those from Mike R. but just need some direction to get started on this.To start of I'm looking for whether to read the entire FirstExcelDoc spreadsheet or just read the info for first policy number(2nd row) and process it and write out the blue column info for that row and then loop through and come back and read the second policy number (3rd row) etc... Please attach a code snippet for either way of reading the data.

View 19 Replies

Office Automation :: Orphan Excel Process Started Via Automation

Jun 17, 2009

I'm using excel via interop in application.Sometimes users kill application that created excel instance and that results in excel instance sitting in memory without any chance of disposing it.First I tried to tackle this using ROT(running object table) looks like not all instances of excel are registered there.Than I tried to somehow mark excel process after it is started via interop.[code]This works as long as excel is visible but in my case excel window is invisible.All I need is to somehow mark process that started via automation with the parent PID, so that later I can kill it if parent does not exist.

View 19 Replies

Office Automation :: Word2007 Automation Without Word12 Object Library

Jan 21, 2012

I've got VS2008 and Office2010, but I don't have Office2007. Therefore, I have the Word14 Object Library but not the Word12 Object Library. Will the code that I create for Office2010 automation also work where clients only have Office2007 or will they have to upgrade their office suites?

View 1 Replies

Office Automation :: Excel Automation - Call Rejected

Dec 17, 2010

I have been pulling my hair out trying to fix this.

[Code]....

View 1 Replies

Office Automation :: Excel Automation Causing: Rpc_e_serverfault

Jun 1, 2010

We have a vb program which is run on our server by scheduled task every day. The program opens about 30 excel files, refreshes the data connections, pivot tables and then saves the document in another location.

This may run fine for a couple days but sooner or later the process starts crashing, usually with this error: RPC_E_SERVERFAULT.

My question is, Is it expected that continually opening/closing/refreshing workbooks will inevitably cause the Excel object to crash at some point.

View 3 Replies

Office Automation :: MultiThreading In MS Office 2007 (Excel, Outlook, Etc)?

Mar 28, 2011

i was wondering if someone could give me the final explanation on what i might be doing wrong here.I spent a lot of time reading around the net and the forum about how to add Threading capabilities to a VB project.

Nos, i've got .NET 4 installed, and i've added the system.tsr and mscorlib.dll files as reference in, say, Excel 2007 (see screenshot).However, when i try to make a thread with anything as basic as "Dim Thread1 As System.Threading.Thread", i get a user-defined type not found error.Indeed, when i use the object browser to see what's in the System file, theres nothing remotely linked to any Threading, and in the mscorlib file, nothing under "Threading" either, just a few Thread related functions, but nothing defining a data type

View 2 Replies

Office Automation :: Uninstall Office Shared Addin Programatically?

Feb 15, 2011

I've developed shared addin for Microsoft Word. I distribute this addin with my application and using Inno setup for installation. The Inno setup installs my application and then runs "myAddin.msi" file in order to install addin.

how to uninstall this addin programatically?

Right now, in order to uninstall addin, the user has to to it manually through control panel.

View 2 Replies

Change The Execution Sequence (Client Side Click, Server Side Click) To (Server Side Click - Client Side Click)?

Jun 22, 2011

I am struckup with a problem from last two days. I am creating a web application using VB.NET, Ajax & RAD Controls. When user clicks on a button I want to open a RAD Window and show the list of ledgers available to the user, so that he can select one from the list. And to open that window I have to call a java script function from client side, which is already achieved using the below code.

[Code]...

View 8 Replies

Office Automation :: Display Office Documents To Form?

Jul 25, 2010

how do i use the webbrowser to display the word or excel docs. just like the pdf viewer... i tried the webrowser1.navigate but it didnot work, if it does its opening a new window, im using office 2010..

View 4 Replies

Office Automation :: How To Display Office Documents To Form

Nov 27, 2011

How do I use the webbrowser to display the word or excel docs. just like the pdf viewer. I tried the webrowser1.navigate but it didnot work, if it does its opening a new window, I am using office 2010.

View 1 Replies

Office Automation :: Office Add-in For Word 2010 64bit?

Dec 21, 2010

I've made Add-in for Word 2007 in VS2005.It worked well with Word 2007 and now it works well with Word 2010 32 bit.However it doesn't work with Word 2010 64 bit. The installation is successful, but the ribbon button doesn't show up.

Do you have any experience with add-ins for Office 64 bit?

View 5 Replies

Office Automation :: Error With Excel Dll On Server Without Excel?

Jun 15, 2011

We have a VB 2005 program that reads data from a database and builds an Excel output file to be emailed. This works fine from my computer but when we put it on the server it fails on the Excel functionality.

The error is: Unhandled Exception: System.Runtim.InteropServices.COMException

Although Excel is not installed on the server we did also build a Setup program to install our program. It copies the Microsoft.Office.Interop.Excell.dll to the server folder with the exe.I thought the setup program should register the Excel DLL and the program should work even if the server does not have Office or Excel installed.

View 3 Replies

Office Automation :: .net Automation Excel App Not Closing

Sep 25, 2009

I'm having an issue where my excel.exe process doesn't close until I close my .net application. I'd like to avoid using Process.Kill() if at all possible.

Code:

Private Sub WriteRowsToXls(ByVal rows As DataRowCollection, ByVal xlsPath As String, ByVal showStatus As Boolean, Optional ByVal AddTotals As Boolean = True)
Dim xlsApp As New Microsoft.Office.Interop.Excel.Application

[CODE]............

This method references a couple of other methods I use for repeated formatting tasks, I'll include those methods below. (I added the FinalReleaseComObject into the other methods after reading Mike's thread but the issue persists)

Code:
Private Sub SetRangeValidation(ByVal rng As Range)
With rng.Validation
.Delete()

[CODE]..............

Method SetRangeAllBorders does about the same as these other methods but my post is too long to add it. The only other things not shown in these code snippets are a few string variable that are defined in the class, studentWS, studentsWSPW, paymentsWS and paymentsWSPW My App creates an instance of the class, loads some data, runs the method above, and then sets the class to nothing. I'm using .NET 3.5 automating Excel 10

View 2 Replies

Office Automation :: Automation Addin Requirements

Aug 13, 2011

I wrote a simple Automation Addin using VB.NET and .NET 4 and want to distribute it's dll to a

computer with xp sp2 and Office 2007 (Excel 2007) without I install .net on that computer, is it

possible?

View 2 Replies

Office Automation :: Automation Of Word2010 With VB2008?

Oct 20, 2011

This might seem a ridiculous question but I just want to make 100% sure before I start committing any funds to software purchases. Can I use VB2008to develop automation routines to control Office2010 applications or must I absolutely use VB2010 to do so?I ask this because I installed an Office 2010 pro on my station which already has VB2008 and I do not have any Word14 reference in the COM section of the list of references...

View 1 Replies

C# - Send An Object From Client-side Javascript To Server-side Code Via ASP.NET?

May 23, 2011

Can I send an object from client-side javascript to server-side code via ASP.NET ?

View 5 Replies

Fire Client Side Code From Server Side At Runtime

Apr 13, 2010

I know this defeats the purpose of client side vs. server side (refer to title of this thread). What I would love to do is build my own custom progress indicator on the client showing how far a server side code has progressed. I figure if I could only get a JavaScript to fire and render a value of some control at pre-defined intervals while the server is working I could make it happen - but alas I'm beginning to believe that this is impossible. Below is some code that performs three 2 sec loops. At the end of each I want to change the visible value of a control on the browser. [Code]

View 8 Replies

Javascript - Format Data (client-side) For (server-side)

Jul 13, 2011

Using the following script:

$("#some_button").click(function() {

var changed = [];

[CODE]...

I need to send back the id, the old value from _1 and the new value from _0 back to the server. What is the best way to format this data so I can easily extract the data from the server side so I can easily email someone for example to let them know which textboxes have changed, what the old values were, and what the new values are

At the serverside level, I am using .NET-3.5 (VB). I know how to send the data bacl. and how to email the data, I just wanted to know how to best format the data at clientside before sending it back. I could have upto 50 sets of id, old, and new values to send back. Sorry for not making that clear earlier.

Example:

How can I modify the script above to generate this?

[
{
"id": "name_0",
"new": "text",

[CODE]...

View 3 Replies

Office Automation :: Automating Office Under A Different Username From .net

Sep 8, 2011

I have used VB.NET and Microsoft Offices Interop to create an application that will run on a server and will print files for different users.My problem is that I need to find a way to impersonate different users so that when MS Word opens and prints, the resulting print job is recorded under that user. I found this link that lets you run .net code as a different user - unfortunately it doesn't work with this code. The username recorded is still the user that is logged on the server.Code Removed by moderator. Any ideas how I can make the Office app I'm automating run under a different user to the .net program that is calling it?

View 2 Replies

Office Automation :: Shared Add-in For Microsoft Office

Oct 21, 2011

I would like to create Shared add-in that works with Word, Excel, Outlook and Power Point. I've found nice article that provides step by step instruction for creating shared add-in for Word: [URL] I've followed instructions and it worked. However, I am looking for a way to create one add-in that works with Word, Excel, Outlook and Power Point, not only Word. I didn't find any reference on the WEB.

View 7 Replies

Asp.net - Server Side Doesnt See Changes On Client Side?

Jan 25, 2012

I add an option to a select with jQuery. When I save with an asp button, I don't see the changes on the server side in the click event.

And the HTML is all correct after I add the option.

Is it a coding problem or I don't understand something?

$(selectCourant)
.append($("<option></option>")
.attr("value",$(dropdown).val())
.text($(dropdown + " option:selected").text()));

View 1 Replies

Javascript - Register A Client-side Event Listener On A Server-side Event?

Dec 28, 2011

Ultimately, what I want to accomplish is an AJAX-based messaging system. I already have a database table for messages, and an ASPX to add new messages (and declare old messages no longer relevant).

The current messaging system simply polls the server every 15 seconds, and re-pulls the current message set.

What I am looking to do is: On $(document).ready(), register an ajax callback function that listens for a server-side event (e.g., MessagesUpdated) On table insert/update, fire MessagesUpdated server-side.

This way, whenever the table is updated (or new records added), any clients listening know that new data is available and can re-poll the server then.

Ideally, I'd also like to make the new data available as an event argument (to minimize re-polling the db).

I can find references to something like this in other languages, but I cannot find any actual code examples to get me started.

Assuming this is possible to do via .Net, can anyone help get me started on this?

I'm using the 2.0 Framework. Also while I added a VB.Net tag, I can read C# reasonably well, so please feel free to post in either language.

View 4 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved