|
By inspaceing the COM interfaces as per defined by the IDL interface.
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|
Trying to find articles on it, but not having any luck.
Looking through MSDN atm, but do you have any other links?
Cheers
Cata
|
|
|
|
|
HRESULT EnumFormatEtc(
DWORD dwDirection, //Specifies a value from the enumeration
// DATADIR
IEnumFORMATETC ** ppenumFormatetc
//Address of output variable that receives the
// IEnumFORMATETC interface pointer
);
the way I see it, this should tranclate to:
<br />
int EnumFormatEtc(<br />
int dwDirection,<br />
out IEnumFORMATETC[] ppenumFormatetc<br />
)
the method is expected to return an int that deffines the state of the equasion, not a structure. How can it run? Every other method I have looked at translates:
XXX ** type
into an out array.
Could someone explain this to me?
Gratz
Cata
|
|
|
|
|
I'm sorry I dont know COM, I suggest you ask this in the COM forum.
leppie::AllocCPArticle("Zee blog"); Seen on my Campus BBS: Linux is free...coz no-one wants to pay for it.
|
|
|
|
|
I'm not entirely sure on this, while I have encountered it before.
I'm just looking for clarification
in: Just put the variable in
out: public void mymethod(out int X);
in/out: use ref?
Cheers
Cata
|
|
|
|
|
|
I've been looking at the decompiled versions of various structures, and they are for the most part, very helpful.
While not in the order in which they should be, they still show me what I need to cast things as.
The problem is i've found that in Formatetc, they have added a "dummy" object that is a short (int16), and I do not know the reason for this. I'm assuming it's some kind of buffer for the other objects in the structure, but as they are all ordered in alphabetical order, I don't know where to put it, or what it's there to affect.
Any clues?
Cheers
Cata
|
|
|
|
|
How to use it in a web page?
.net windows com can run in IE directly,
How to open a word or excel document in my C# windows form,
the document maybe on the server,
and edit it,and save the changes to the document on the server?
I find winwordcontrol,but it can't save the changes,
and can't open a office file on the server(http://servername/file.doc),
who can help me?
Thank you!
|
|
|
|
|
You can open Word/Excel files that are on the server from the WebBrowser control, but you can't save them again without a workaround, mainly because you would have to use an FTP connection to upload them again.
|
|
|
|
|
don't use WebBrowser control,
if there are some other method?
open Word/Excel files that are on the server?
and save to the server?
Thank you again!
|
|
|
|
|
Write your own code to download them through HTTP or FTP (or whatever you like), open them using the Process class (using ProcessStartInfo for opening the document-related application without knowing), and when that process exits (or you can use the FileSystemWatcher to watch for file changes) upload the document using HTTP or FTP (or whatever). See classes in the System.Net namespace for documentation of helpful classes, but you'll have to code this solution yourself.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
http://www.codeproject.com/script/comments/forums.asp?forumid=1649&select=688223&df=100&app=50&fr=465#xx688223xx
go to this link and u will find all what u need.
|
|
|
|
|
|
with this com u can visualize & automate the doc in windows forms and in web browser
by other words u can open , edite and save the document
if i didn't understand plz explain to me.
|
|
|
|
|
hazzem elrefai wrote:
if i didn't understand plz explain to me.
Better yet, why don't you read the previous thread?! His question seems to simply be a question of downloading, editing, then uploading the document. This really has nothing to do with how a Word document is displayed, whether in its associated program (Word, WordPad, etc.) or its automation server is embedded in a different frame - it's all about editing a remote document.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
|
it's all about editing a remote document.
and save it to a remote server.
web service?
I think it's difficult,
do you have a sample?
study...
|
|
|
|
|
I sure could use some help.
I have a web app with frames. I want to be able to notify frame2 when something takes place in frame1. Should be simple, but maybe I'm the simple one. I've got the event structure working because I can fire an event in frame 1 and receive and act upon it in frame 1. But when I fire it in frame 1 and try to handle it in frame 2, it is apparently never received. The event appears to fire fine (I get no errors and see it pass the statement OK in the debugger), but the handler (which also appears to be declared correctly, since I get no compile errors) never seems to receive it.
Can someone point me in the proper direction?
I really appreciate it!
Mike.
|
|
|
|
|
Maybe not the problem in your case, but non-static events are tied to the intance, not the class.
DrunkenSailor sailor = new DrunkenSailor();<br />
sailor.HellRaised += new EventHandler(sailor_HellRaised);<br />
sailor.RaiseHell();
sailor = new DrunkenSailor();<br />
sailor.RaiseHell();
This can be missed pretty easliy, especially if the object is reinstantiated elsewhere in your code.
In any case, you can check to see if your object's event has any subscribers by looking at the object sending the event in the autos or locals window while debugging. It will read "undefined value" if there are no subscribers. If that's the case, you can begin your hunt to find out why that is.
Charlie
if(!curlies){ return; }
|
|
|
|
|
There's one very important concept you're missing: ASP.NET code that is compiled or that uses server-side scripting (which is compiled at runtime) is SERVER-SIDE ONLY. HTTP - be nature - is non-stateful. Someone clicking a button or link in one frame will not automatically do something in another frame unless 1) you invoke a server-side event that must refresh the whole page, which involves some client-side javascript (or - if you dare - VBScript) to make sure the right frames are updated, or 2) uses client-side script like javascript to perform all actions.
This isn't a Windows Forms application where clicking a button could completely rearrange your application UI. Web Applications - built on HTTP - have one fundamental facet: a client requests data, and a server responds with data.
So, you have to invoke something that causes the client to request something in frame1 and force a refresh of frame2 all from the client-side! The server cannot push this data to the client (it's impossible when the clients are behind NATs or Web proxies anyway without a persistent connection, in which data can only be appended). This is the nature of HTTP, like it or not.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
|
Jörgen,
I work with Heath, he is in fact an AI bot that is plugged directly into MSDN and existing Code Project articles. His uptime appears to be running better than most web servers average in a given month.
Jörgen Sigvardsson wrote:
How do you keep up?
He tells M.I.S. jokes.
- Nick Parker My Blog
Last time I checked, all programmers have selective ignorance. I know nothing about 3D graphics. I know a lot about COM. VB gets under people's skin because one can be ignorant of computer architecture and ASM and still get a lot done. - Don Box
|
|
|
|
|
I work over 60 hours a week typically, but I'm trying to cut back a little because of health problems. I work throughout the day and probably only accumulate an extra 30 minutes to post to CP, sometimes a little more. Being salaried, I decide to spend that time helping other community members. Most of the stuff I know off the top of my head, so I don't have to research anything. The rest is just knowing how to look, which most people it seems don't know how to do - or are to lazy to try.
-----BEGIN GEEK CODE BLOCK-----
Version: 3.21
GCS/G/MU d- s: a- C++++ UL@ P++(+++) L+(--) E--- W+++ N++ o+ K? w++++ O- M(+) V? PS-- PE Y++ PGP++ t++@ 5 X+++ R+@ tv+ b(-)>b++ DI++++ D+ G e++>+++ h---* r+++ y+++
-----END GEEK CODE BLOCK-----
|
|
|
|
|
I have been looking for a solution to the problem of having to install dot net for my C# applications. Since I or just a few number of individuals will be using my applications, we would like to run them from CDs. So, No installation of our applications will be needed. I have found an appication Thinstall.... don't know if it is what I'm really needing. What I am wanting is to have the .NET framework on CD and never have to install it on a PC. If this not possible please let me know... all suggestions are welcome...
No, I do not wish to go back to VC/C/C++ ....
|
|
|
|
|
The .NET framework needs to be installed on the target machine before your app will run. There is no way around this.
You can include the framework redistributable on your CDs so that it may be installed prior to installing your application or, since there are only a few machines to be concerned with, you can hit them all at once and be done with it.
Installing the framework is not an arduous task, so it shouldn't be a big inconvenience.
Charlie
if(!curlies){ return; }
|
|
|
|