General COM object considerations
This question was posted in response to the following article: http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec14713 -7fef.html
Note that ColdFusion does not support calling COM objects in CF 64-bit editions. For more, see http://helpx.adobe.com/coldfusion/kb/coldfusion-limitations-running-coldfusion-64.html.
Similar Messages
-
Create hyperlink in a General Text Object
Hi,
using transaction SE61 I want to create a hyperlink to an external site in General Text Object BBP_PRIV_STMNT_EXTERNAL. The objective is to hav this link showing instead of the confidentiality agreement in the self-registration page.
Anyone kwows how to do that?
Thanks.I'm in the same boat as you, inasmuchas I taught myself LC. I've tried to replicate your issue. I'm trying to understand where the issue actually lies.
First, I created a new document to test. I dragged the text field onto the document and stretched it to accomodate what I was going to type and entered: http://www.google.com/something
This works as intended.
Next I tried a link similar to yours in our own intranet: http://intranet/WebPages/support.aspx
That also worked.
Now, for what you're actually working with: a SharePoint document.
I tried to paste a link to a document that I created on our Sharepoint site. The link failed! I noticed that the end of the link was truncated (something like 7 characters). So, I tried a shorter link. That worked!
What else is happening when they click the link? Are they simply being asked to "check out" the document? Are you getting an error message like "an error has occured while opening the page"?
Message was edited by: jasotastic81 (apparently "lnik" is not a word) -
Hi!
I'm trying to create some server software that will allow any number of applets to connect to the server and communicate with each other. Presumably, only applets of the same type would talk together, though applets could send general string messages. I've created a general serialized object, Packet, which all applets would send to the server, and which the server would then pass on to the destination applet(s).
The problem is that Packet has a field "data" of type Object. When data is something the server knows about, such as a String or a Vector, it does ok. But if the code for the applets creates a new class, say AppletPacket (which is serializable), and sets somePacket.data to an object of type AppletPacket, the server throws errors when it is reading the somePacket from its objectinputstream, saying it can't typecast something of type AppletPacket. But I'm not typecasting anywhere! The server doesn't have to know anything about what data represents, it just needs to send it on, and presumably the destination applets will know what to do with it.
Can anyone suggest a work around, or tell me what I have to do so that applets can send a general Object that may represent a class the server doesn't know about and not have the server throw an error?
Thanx
Jim D.Just to clairify: The server doesn't have to do anything with the content of "data" apart from holding on to it, and pass it to another applet?
If that's the case substitute the Object in the "data" field for an array of bytes obtained by having the applet run the "Object" through ObjectOutputStream.
What's happening is that the server is deserializing the Packet when it arrives in the JVM of the server, when it comes across the "data" field it looks to see what class the instance really is, and fails as you dscribe if it doesn't have the class definition. -
Generally what objects we have to place in query designer ?
Hi all,
Iam new to sap bi reporting.
We have free characteristics pane,colums and rows pane.
Generally what objects we declare as free characteristics ,rows and columns pane.
Please give me some example for this concept .
Regards,
Swami.Hi
I explain you one scnerio here which i have done in one of my implementation project
there is one MM report for material consumption in this user want data in two diffrent way at bex level
Fields which i used for his report is : Material number, plant , storage location,mrp(Key fig),quantity(Key fig ), date field, movement type.
1 Requirement from user : They want data st BEx level on date wise and material wise so i put date material number storagelocation and plant in to row and put quantity and its related price value in column so out put of the report shows consumption each material in seprate seprate line
date -
material-number--movement type--
qty
1 -
1234--101--
12
1--12102--
12
1 -
134--101--
12
1 -
123--104--
12
result----
48
2 Requirement from user : They want summarize data so i put material number ,movement type into free charactics and out put of this report is
Material number
Movement type
date----
qty
1 -
48
and if user wants that result on material wise then he just double click on material number and report is drill down as per material number and quantity comes with material number
So we use free char... if we want data in sumarize format and drill down format
hope its useful to u
points !!!!!
Ankit -
How can I use a COM object that does not have a type library?
Hello,
I've created a com server in python for which I do not have a type library. I am able to call functions for this application in Python, TCL, I'm sure VB, etc. without the type library.
Must I have a type library registered to use this COM object with Labview? I was hoping I could simply supply the name to the refnum (or the GUID) then call functions by passings strings to the invoke node. This does not seem to be possible - am I missing something?
In the event that I cannot use a com server without a type library. Any recommendataions on how to create one? I'm wondering if I can use the same GUID and create a shell in LabWindows which generates the IDL/TBD file I need for Labview to see my
com server.
Any help is greatly appreciated.
73,
TimothyTimothy Toroni wrote:
> Thanks for the info, however their example is labview server and
> python client. I'm going the other way. It's good to know about
> LabPython though...
>
> As of now, it seems to be there is no way to use a COM object without
> a type library from inside LabView.
Yes that is true. LabVIEW needs that to configure the Property and
Methode Nodes correctly. Otherwise it would need to have a special
Property and Method Node with a configuration dialog similar to the Call
Library Node, but a LOT more complicated. Not sure many people could
make use of that, and it would be a very tiring experience trying to get
things setup in that way, by going through the edit, test, and crash
cycle over and over again.
Rolf Kalberm
atter
Rolf Kalbermatter
CIT Engineering Netherlands
a division of Test & Measurement Solutions -
How can I call a COM object from a PL/SQL CODE
Hi everyone,
Does anyone know how to call a COM object from a stored procedure in oracle.
a sample of code
please help,
HilaireAre you familiar with external procedures? Basically, you can expose functions exported by a shared library (i.e. a DLL on Windows) to the Oracle database. My assumption is that you'd probably need to write a wrapper DLL around the COM object, since I believe you can only pass fundamental data types back and forth (i.e. no object references). You'd expose the method(s) of that wrapper DLL to the database via external procedures.
Justin
Distributed Database Consulting, Inc.
www.ddbcinc.com/askDDBC -
How can I call COM object in a servlet?
Hi,
Does oracle provide a bridge to call COM objects in a servlet? Is there any sample for doing this?
Thanks,
ArchieArchi,
Take a look at the following link:
http://technet.oracle.com/products/ids/daily/jul12.html
You can use J-Integra, one of JDeveloper's Extensions, in your Servlet to call any MS COM objects. -
How to call a COM object from an Oracle Form?
Hi All,
Pls advice. How to call a COM object from an Oracle Form?
Thanks.try asking the "Form" forum
-
Creating a COM object with CF9 32-bit on Windows Server 2008 R2 64-bit machine
I'm using a 32-bit version of CF9 and it's installed on a Windows Server 2008 R2 machine (64-bit). The problem I'm running into is that it won't allow me to create a COM object - it gives me the error, "no ntvinv in java.library.path null" when I try to run,
<cftry>
<cfobject type="COM" action="CONNECT" name="Engine" class="JRO.JetEngine">
<cfcatch type="Any">
<cfobject type="COM" action="CREATE" name="Engine" class="JRO.JetEngine">
</cfcatch>
</cftry>
Then when I run it a 2nd time, I get "An exception occurred when instantiating a COM object. The cause of this exception was that: java.lang.RuntimeException: Can not use native code: Initialisation failed."
Can you help me?Replying for your patchset installation pre-req error:
Use below command:
./runInstaller -ignoreSysPrereqs
Review MOS note 763143.1 for more info. -
Error while reading indesign(.indd) file through COM object in c#
I want to read InDesign(.indd) file in c#. I have installed adobe InDesignCS6.
I have added COM reference of 'Adobe InDesign CS6 Type Library' in my c# application.
Code snippet is as follows.
[STAThread]
static void Main(string[] args)
InDesign.Application app = (InDesign.Application)COMCreateObject("InDesign.Application");
Document doc = app.ActiveDocument;
Page page = doc.Pages[1];
TextFrame frame = page.TextFrames[1];
Console.WriteLine(frame.Contents.ToString());
public static object COMCreateObject(string sProgID)
// We get the type using just the ProgID
Type oType = Type.GetTypeFromProgID(sProgID);
if (oType != null)
return Activator.CreateInstance(oType);
return null;
But the first line itself throwing an following error while type casting output of COMCreateObject method into InDesign.Application type.
Error :
Unable to cast COM object of type 'System.__ComObject' to interface type 'InDesign.Application'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{ABD4CBB2-0CFE-11D1-801D-0060B03C02E4}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE)).
Kindly help me. Its urgent.try this,
InDesign.Application app = (InDesign.Application)COMCreateObject("InDesign.Application.CS6"); -
Error Msg "Invalid Com Object Exception is output"
Hi,
The following error message was output when I tried to perform an
optimization on the Finance Application.
"An unhandled exception has occurred in your application....COM object
that has been separated from its underlying RCW cannot be used".
However, when my colleague perform the same optimization using her PC, it was ok. Please advise if there are any specific settings that are I need to set at the client or desktop level in order to avoid the error.
Cheers
Hon LeongHi,
My notebook is on Windows XP and Office 2007. As per your suggestion, I have run the client diagnostic program and found the following error:
[Internet Explorer Option setting]
Proxy server
No proxy setting
Use HTTP 1.1
Required: True
Currently: True
Status: OK
Enable Integrated Windows Authentication
Required: False
Currently: True
Status: Error
Would you be able to advise how I can disable the Integrated Windows Authentication so that I can see the problem is due to the above error.
Cheers
Hon Leong -
Exception in thread main java.lang.NoClassDefFoundError: com/object/msg/SmsService
caused by: java.lang.NotFoundException: com.object.msg.SmsService
at java.net........................
at java.security.......
I'm trying to send SMS using this code and it gives above Exception during Runtime.
import java.io.File;
import com.objectxp.msg.*;
public class SendSMS
public static void main(String[] args)
SmsService service = null;
try {
// Configuration
File config = new File("jsms.conf");
// create service object.
service = new GsmSmsService();
service.init(config);
// create a new Message.
Message msg = new Message();
msg.setRecipient("7894561");
msg.setMessage("jSMS is cool!");
// Connect to the device
service.connect();
// send the Message
service.sendMessage(msg);
System.out.println("Message sent successfully, ID is ");
} catch (Exception ex) {
System.err.println("Message could not be sent: "+ex.getMessage());
ex.printStackTrace();
} finally {
if (service != null) {
try {
service.disconnect();
} catch( Exception unknown ) {}
service.destroy();
}run this one in command prompt and then convert the applet using converter tool
JC_HOME = C:\java_card_kit-2_2_2\bin\
set CLASSES=%JCHOME%\lib\apduio.jar;%JC_HOME%\lib\apdutool.jar;%JC_HOME%\lib\jcwde.jar;%JC_HOME%\lib\converter.jar;%JC_HOME%\lib\scriptgen.jar;%JC_HOME%\lib\offcardverifier.jar;%JC_HOME%\lib\api.jar;%JC_HOME%\lib\installer.jar;%JC_HOME%\lib\capdump.jar;
D:\NareshPalle\jcardRE\Smart\src>java -classpath %_CLASSES% com.sun.javacard.con
verter.Converter -out EXP JCA CAP -exportpath .\exp -applet 0x0a:0x00:0x00:0x00:0x0e:0x01:0x02:
0x03:0x04:0x05:0x06 PackageName appletName 0x01:0x02:0x03:0x04:0x05:0x0
6:0x07:0x08 1.0
or
go to following directory and run the converter tool in command prompt
step 1: cd C:\java_card_kit-2_2_2\bin\
then run this command under the above directory
step 2:converter -classdir E:\Pathof Your applet class file -out EXP JCA CAP -exportpath E:\path of exp files folder -applet AID PackageName AppletName PackAID major.minor no
For more doubts mail me....
*[removed by moderator]*
Thanks and Regards
NareshPalle
Edited by: EJP on 31/03/2012 20:09: removed your email address. Unless you like spam and unless you think these forums are provided for your personal benefit only, posting an email address here serves no useful purpose whatsoever. -
Hi all,
I have the following code:
Dim oProdOrders As SAPbobsCOM.Documents
oProdOrders = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders)
after the second line I get a system exception: {"Unable to cast COM object of type 'System.__ComObject' to interface type 'SAPbobsCOM.Documents'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{A6DA575B-E105-4585-9F4B-50CC4044EEDD}' failed due to the following error: No such interface supported (Exception from HRESULT: 0x80004002 (E_NOINTERFACE))."}
If I change document to eg oQuotations it proceeds normally.
Any Idea?
Thanks in advance,
Vangelistry it as
Dim oProdOrders As SAPbobsCOM.ProductionOrders
oProdOrders = oCompany.GetBusinessObject(SAPbobsCOM.BoObjectTypes.oProductionOrders) -
I am having a heck of a time finding a good example of a word
COM object. I just upgraded from word 2000 to word 2007, in hopes
that would suddenly work for me (which honestly I didn't
expect...). In word 2000, this line worked fine, but not in 2007:
thisDoc.SaveAs("c:\MyDoc.doc");
Here is what I am trying to accomplish: I need to use values
submitted by forms and input it into a word document. The word doc
needs to have different paragraphs in different formats. I thought
I could build the paragraphs somehow, with formatting with
something like para1 = docrange.newparagraph(); then insert the
text and formatting into para1 and then insert para1 into the
document. It does not seem to be working at all. If someone can
link me to a good example I can figure it out from there, but I
don't seem to be able to find it. Here is my code so far:
<cfquery name="getAttorney" datasource="agreement">
Select * from Attorney where ID = #Form.attorney#
</cfquery>
<cfoutput query="getAttorney">
<cfset attornyInfo =
"#Name#
#email#
#Phone#">
</cfoutput>
<CFTRY>
<!--- If it exists, connect to it --->
<CFOBJECT
ACTION="CONNECT"
CLASS="Word.Application"
NAME="objWordApp"
TYPE="COM">
<CFCATCH>
<!--- The object doesn't exist, so create it --->
<CFOBJECT
ACTION="CREATE"
CLASS="Word.Application"
NAME="objWordApp"
TYPE="COM">
</CFCATCH>
</CFTRY>
<CFSCRIPT>
/* This will open Word if running locally */
objWordApp.Visible = true;
/* This returns the 'Documents' collection the Word Object
thisDoc = objWordApp.Documents.add();
/* Save the document to a location */
thisDoc.SaveAs("c:\MyDoc.doc");
docRange = thisDoc.Range(0);
docRange.Style=-2;
docRange.InsertAfter("Header1");
docRange.InsertParagraphAfter();
docRange.Style=-3;
docRange.InsertAfter("I am the paragraph you requested");
docRange.InsertBreak();
docRange.InsertAfter("check me out... I'm on the second
page!");
para1 = thisdoc.paragraphs.count();
data = docrange.listparagraphs();
data1 = docrange;
/* Save the changes */
thisDoc.Save();
/* Close the document */
thisDoc.Close();
/* Quit Word */
objWordApp.Quit();
</CFSCRIPT>
<cfdump var="#para1#">
<cfdump var="#data#">
<cfdump var="#data1#">
The dumps do dump information on the related objects, giving
me methods, puts and gets, but I need more explantion than what is
actually provided. Para1 used to dump "1" even though I had more
paragraphs than that in the build. Since I upgraded to 2007, I have
not gotten it not to error out, I will try to save it as a docx,
but a doc is really more appropiate for my purposes.
Thank you for your time.The last time I had to deal with a requirement like this,
which was
about 2000-2001, we eventually scrapped the word COM thing.
Even then
it was such a fragile and perilous solution, fraught with
problems and
headaches.
What we ended up doing, that was much easier, was to create a
.rtf, rich
text format, file. We could do all the required formating in
this
format, and 90% of the uses would have this file open in MS
Word and not
even know they did not get a .doc file.
How we did it was create a .rtf template with dummy text that
had all
the desired formating. Then we could read in the .rtf file,
which is
just a marked-up text file, not a binary, and string replace
the dummy
text with the dynamic text. Save it again and viola a rich
text
formated file with the required content.
These days, I would push for doing this in PDFs and use
ColdFusion's
<cfdocument...> and|or <cfpdf...> functionality.
But if it has to be
Word, I suppose it has to be Word. -
Method not found error when creating COM object
i am trying to initiate a COM object with CF and Imagemagick
on windows 2003. when i initiate the object i get the error "The
selected method convert was not found." if i do a dump of the
method in the COM object but i cant call it. what am i missing?
the code i am using is attached.
the VBscipt sample that comes with imagemagick works fine,
its just that CF cant all it. any ideas?
thanks
NFHi,
Have you had a reponse or find the solution?
I have a similar problem, no error message but that kill the
session.
Thanks
Didier
Maybe you are looking for
-
Cannot install Windows 7 via Bootcamp?
Hey Guys. I have a mid 2009 Mac Book Pro. I use OSX Lion, and ran into issues with program compatability with older mac Programs. I then decided to install Windows 7 through Boot Camp so that I can run my older apps, and ran into a problem in the 1/4
-
How do I find out which BADi is triggered in PS?
Hello, I am new to SAP and this forum and probably have a really simple question. In transaction cj20n, PS, when I create a project and save it, how do I know which BADi is triggered when I save? Just wanted to say this forum is a great resource for
-
How to create Standby database in Oracle 9i
Is anybody guide, How to create a standby database in Oracle 9i(9.2.0.1) ? Where we get the proper documentation about this article ?
-
Can someone explain data charges to me?
Upgraded to a smartphone Samsung Nexus. First Data plan and all. So, what is costing me alot of data when I am at work,home asleep,connected to wifi at home(Xfinity). I am barely on the thing and in three weeks 75% of 1GB is already used. I am not a
-
How do I add artwork to an alubm I bought on CD but it isn't available on iTunes?
If anyone can help I need it.