com

Automated rotating and placing image and text on a page in InDesign

一世执手 提交于 2019-12-25 06:47:07
问题 I have been tasked with taking a set of product images and text and placing them in a booklet (with facing pages) and putting the product description next to the image. Most images are landscape orientation whilst the book is portrait, and so they need to be rotated. For the images that have to be rotated, I'm placing the text in a textframe, fitting the frame to the content, then calculating the max image size, to then resize and then placing the image and rotating 90 / 270 degrees depending

Accessing a non-COM visible DLL method from a COM visible DLL registered in GAC

心不动则不痛 提交于 2019-12-25 06:32:01
问题 My website application uses C# COM+ components running under a particular identity to access SQL Server, invoked from classic ASP. There's also a web service that utilises a \bin DLL in the website application that contains a method to insert some data into the SQL Server database (let's call it MyApp.Database.dll ). From the website front end, I want to be able to provide authenticated users with this same functionality. I don't want to duplicate code in MyApp.Database.dll within the COM+

ActiveX component cannot be created for COM component in release mode (VS2010 specific)

蓝咒 提交于 2019-12-25 06:31:30
问题 I have an ATL COM component(.exe) (VC++ ) in VS2008. Through VB6 client, i use CreateObject and get the object. But once the component is updated to VS2010 SP1, the VB6 client no longer is able to create the COM object. If I compile the VS2010 COM component in debug mode and get the .exe, VB6 client is working fine. In release mode, .exe is generated without any errors, and VB6 client fails saying ActiveX component cannot be created. Please help me in resloving this. 回答1: Finding out why COM

PHP COM (OLE) Object connecting to MS Excel

一笑奈何 提交于 2019-12-25 05:51:10
问题 My setup: IIS 7.5, PHP 5.4, Windows 7 I've trying to create a COM Object through PHP but I continue to get access denied. I've also followed a handful of tutorials on how to "grant access" to the ISUR to create the object but to no avail. I read the installation portion relevant to COM interfacing that says: As of PHP 5.3.15 / 5.4.5, this extension requires php_com_dotnet.dll to be enabled inside of php.ini in order to use these functions. Previous versions of PHP enabled these extensions by

How to use TComInterface properly?

故事扮演 提交于 2019-12-25 04:53:32
问题 I would like to use TComInterface to replace raw pointer. My current code is: { TComInterface<IStoreNamespace> pStore; if (SUCCEEDED(CoCreateInstance(CLSID_StoreNamespace, NULL, CLSCTX_INPROC_SERVER, IID_IStoreNamespace, (LPVOID*)&pStore))) { if (SUCCEEDED(pStore->Initialize(Form1->Handle, 1))) { //pStore->CallOtherMethods... } } // Release()'d automatically? } If I understood correctly this overwrites the pStore pointer with new pointer so it doesn't call pStore->Release(); automatically

How to get function name against function address by reading co-classs'es vtable?

故事扮演 提交于 2019-12-25 04:42:33
问题 I need to call the co-class function by reading its address from vtable of COM exposed interface methods. I need some generic way to read addresses. Now I need to call the function, which would have specific address(NOT KNOWN) arguments(parameters) which I have collected from TLB, and name as well. How that address corresponds to that function name to which I am going to call. For this I need to traverse vtable which is holding functional addresses, LASTLY need to correspond function address

Using credentials on ScriptBlock causing COM errors connecting to application

情到浓时终转凉″ 提交于 2019-12-25 04:38:58
问题 Okay, I have a proof of concept script that looks like this for connecting to iTunes: $username = Read-Host "Please enter your userid for the local machine" $password = Read-Host "Please enter a password to be encrypted" -AsSecureString $cred = New-Object System.Management.Automation.PSCredential -ArgumentList @($username,$password) Invoke-Command -ScriptBlock { $iTunes = New-Object -ComObject iTunes.application $itunes | gm } -ComputerName localhost -Credential $cred However it is returning

Outlook via COM via multi-thread in python

吃可爱长大的小学妹 提交于 2019-12-25 03:43:02
问题 I need to have couple threads operate on outlook (very lengthy explanation of why...). For example 1st thread would erase messages in one folder, another thread would do some filtering in elsewhere. I understand I need to tap into outlook via COM and more in particularly via win32client and pythoncom. However I can not seem to marshall threads correctly. The basic setup that I have is this: import win32com.client import pythoncom olApp = win32com.client.Dispatch('Outlook.Application')

Replacing Word's Open File Dialog in a COM Add-in

拈花ヽ惹草 提交于 2019-12-25 03:22:08
问题 I'm writing a Word COM Add-in that replaces the Open & Save dialogs with my own. For the save dialog, I'm handling the documentBeforeSave event from the application events. This works fine. For the open dialog, there is no such event, so I'm currently handling the onClick of the Open... menu item, canceling the default handling. This works ok if the user indeed uses this menu item, but if the user presses CTRL-O in stead they still get the original dialog. Is there a better way to hook into

error message using RBloomberg

半腔热情 提交于 2019-12-25 03:11:51
问题 I am testing RBloomberg to access the Bloomberg API. Upon creating a connection using > conn <- blpConnect() I receive a pop-up error message stating that "The program can't start because XLCall32.dll is missing from your computer." However, XLCall32 is in the proper Office subdirectory. The error is actually generated by the assignment within the function conn <- COMCreate("Bloomberg.Data.1") This is a warning message: if one clicks OK, the API seems to work fine. Has anyone encountered this