dcom

Print/save Excel (.xlsx) sheet to PDF using R

ⅰ亾dé卋堺 提交于 2019-12-06 07:45:27
问题 I want to print an Excel file to a pdf file after manipulating it. For the manipulation I used the .xlsx package which works fine. There is a function printSetup but I cannot find a function to start the printing. Is there a solution for this? library(xlsx) file <- "test.xlsx" wb <- loadWorkbook(file) sheets <- getSheets(wb) # get all sheets sheet <- sheets[[1]] # get first sheet # HERE: MAGIC TO SAVE THIS SHEET TO PDF It may be a solution using DCOM through the RDCOMClient package, though I

How can I supress Delphi DataSnap error message dialogs?

佐手、 提交于 2019-12-05 10:23:20
We run a DataSnap Delphi 2009 application on Windows 2003 Server. DataSnap Client and Server are on the same computer, using DCOM over Borland Socketserver. The client runs a background batch job. Sometimes, we discover that the client can not connect to the server application and displays a message dialog on the server desktop indicating for example "Could not connect to server. Network path could not be found." or "Objectexporter not found." Our Delphi client code never uses a message dialog to show errors or exceptions, instead we use try ... except .. finally ... end and logging to handle

DCOM Failure of Office Automation

柔情痞子 提交于 2019-12-05 09:19:44
I developed a C# program that pulls data from a SQL Server database and then generates Word documents which include the data. I've set the program up to run as part of an SSIS job on a Windows Server 2003 box. The program runs as user SQLSVC which doesn't have administrative privileges. When I log in as SQLSVC and run the program it executes correctly. However, when the program is run automatically as an SSIS job it freezes at the following line of code Microsoft.Office.Interop.Word.Application word = new Microsoft.Office.Interop.Word.Application(); When I kill the process forcibly, the

How exactly do I config DCOM to load my DLL into a separate process?

十年热恋 提交于 2019-12-04 15:05:23
I'm trying to force an existing native C++ ATL in-proc COM server into a separate process. I hope DCOM can do this for me without changing the COM server. I started with a usual registry setup - I have a HKCR\CLSID{classId} entry and an InProcServer32 key there specifying the path to the .dll file. I generated an application id (GUID) and added it here and there. Specifically I added a string value "AppId" under HKCR\CLSID{classId} equal to the application id. I also added a HKCR\AppId{applicationId} key and a string value "DllSurrogate" equal to an empty string. I thought it would be enough

QueryInterface fails with E_ACCESSDENIED

末鹿安然 提交于 2019-12-04 11:45:46
The following method is a DCOM server method. The COM client and server is running in different WinXP machines. The COM client calls RegisterClient method to register callback interface. The problem is QueryInterface method fails with error code E_ACCESSDENIED . What could be the reason for the issue? STDMETHODIMP CGEMExtension::RegisterClient(IUnknown** ppGEMExtensionEvents, int* nClientId, int* nResult) { HRESULT hRes = (*ppGEMExtensionEvents)->QueryInterface(IID_IGEMExtension,(void**)&pUnknown); return hRes; } When you get an E_ACCESSDENIED, it means you have a permissions problem (don't

Print/save Excel (.xlsx) sheet to PDF using R

↘锁芯ラ 提交于 2019-12-04 11:39:53
I want to print an Excel file to a pdf file after manipulating it. For the manipulation I used the .xlsx package which works fine. There is a function printSetup but I cannot find a function to start the printing. Is there a solution for this? library(xlsx) file <- "test.xlsx" wb <- loadWorkbook(file) sheets <- getSheets(wb) # get all sheets sheet <- sheets[[1]] # get first sheet # HERE: MAGIC TO SAVE THIS SHEET TO PDF It may be a solution using DCOM through the RDCOMClient package, though I would prefer a plattform independent solution (e.g. using xlsx ) as I work on MacOS. Any ideas? Below a

DCOM server and client both written in .NET

你离开我真会死。 提交于 2019-12-04 04:16:42
问题 I'm developing a DCOM server in .NET 4 (VS2010, C#). By itself, this is working fine. Now, I also need to develop a .NET client for this DCOM server, but I am unable to add a reference to the TypeLib. Visual Studio will tell me the type library was exported from a .NET assembly and cannot be added as a reference. Answers to this question suggests that I should be able to use TlbImp.exe to generate a wrapper assembly, but it will refuse to do so as well: TlbImp : error TI1029 : Type library

What's wrong with DCOM?

巧了我就是萌 提交于 2019-12-03 12:16:02
问题 There seems to be a lot of enmity against DCOM, and I'm curious to understand why. For a company still writing to the Win32 SKD using C++, is there any real reason not to use DCOM in current or future development? Is some future version of Windows not going to support it? Is it too fragile and fails to work often? Is it too complicated to implement compared to other technologies? What's the deal? 回答1: Well, DCOM is a distributed version of COM and COM is very complex by itself and it's very

What is the closest thing to Windows COM/DCOM in the Linux world?

若如初见. 提交于 2019-12-03 07:32:35
问题 Anything higher-level, and more comprehensive than pipes/sockets? 回答1: Yes, there are lots of things, but there isn't one as "Standard" as COM/DCOM. At least, in Windows, COM / DCOM are used by "Windowsish" stuff, and other RPC mechanisms are used by un-"Windowsish" stuff. Linux doesn't have anything like that, instead things which need higher level RPC protocols typically use whatever their language provides, or a specific library which best suits an app's needs. Examples of that would be

What's wrong with DCOM?

ⅰ亾dé卋堺 提交于 2019-12-03 02:39:43
There seems to be a lot of enmity against DCOM, and I'm curious to understand why. For a company still writing to the Win32 SKD using C++, is there any real reason not to use DCOM in current or future development? Is some future version of Windows not going to support it? Is it too fragile and fails to work often? Is it too complicated to implement compared to other technologies? What's the deal? sharptooth Well, DCOM is a distributed version of COM and COM is very complex by itself and it's very easy to do something wrong unintentionally (see this recent question and the answer to it for