|
Hello,
On my web server I have Word 2003, and I would like to dynamically generate a Word doc and save it to the server, and return a link to the client so he/she can download it.
However, my cient only has Word 2000, but VSTO requires Word 2003. Once I generate the Word 2003 doc, can I save it as a Word 2000 version, so that older versions of Word on my clients can read it?
Thanks in advance for any feedback, advice and/or help you can give.
Cheers,
Kris.
|
|
|
|
|
Hello,
I'm fairly new to .NET, so please bear with me.
I'm having a little problem with a couple of nested forms and how user input is extracted from them. Currently I have two classes (say, ClassA and ClassB) and two forms (ClassAForm and ClassBForm, for example). ClassA, which has a private instance of ClassB, is a control and is set to display a ClassAForm when clicked. ClassAForm has a button that displays a ClassBForm when clicked. Since ClassBForm was instantiated inside ClassAForm, which in turn was instantiated inside ClassA, ClassA has no access to ClassBForm's data... How would I go about solving this?
|
|
|
|
|
Will chaining a getter work for you?
class ClassA
{
ClassAForm caf;
void SomeMethod()
{
Console.WriteLIne(caf.ValueFromB);
}
}
class ClassAForm
{
ClassBForm cbf;
int ValueFromB
{
get { return cbf.Value; }
}
}
Or you could have a property in ClassAForm that returns ClassBForm itself, but it kindof breaks the encapsulation aspect.
Regards
Senthil
_____________________________
My Blog | My Articles | WinMacro
|
|
|
|
|
I have an ATL Server Web Service (SOAP & HTTP), using session-state managament per client Session Variables which are COM Objects (VB6 ActiveX dll multi-thread ) casted to Variant(IDispatch) in order to set the Variable. With multiple clients I'm having several thread issues (which I don't have (obviously) using the same management with ASP .NET WebService) and really don't know how thread-safe operations (if that's the case) are made on an ATL Server WebService. So if u have some tips or examples about this type of ATL Server Web Service implementation/use (couldn't find any) let me know.
Thanks
|
|
|
|
|
Hello CodeProject!
when i write larger classes, for example when i add new event handlers (from winforms), properties, and functions over a period of time, its very hard and time consuming to keep the code clean and group all the member variables, constructors, methods, properties together in clear regions. Further, even if i try to keep the grouping i am missing some kind of sorting inside the regions which would be even more time consuming to apply, so i just let it unsorted...
Do you know a hidden feature, or maybe an AddOn or extra tool which would sort your code, for example, put all member variables to the top, then continue with all constructors, and so on, and afterwards, it could sort by access, and/or alphabetically?
Regards,
Thomas
|
|
|
|
|
Hi;
I need to develop a COM Add-Ins for Outlook 2003 with VS .NET 2003.
My current configuration is the target configuration with VS .NET 2003 and Outlook 2003. It works very well !!
Problem is : I need to send my target configuration and transfer the development soluton on a new pc. This new PC is equipped with VS.Net 2003 and Outlook 2002 (and not Outlook 2003).
the .MSI of my add-ins works perfectly. the add-ins also works perfectly on the Outlook 2002.
BUT : I could not generate on that PC. The Microsoft Outlook 11.0 object library (V9.2) is not found.
My question is :
How to set the configuration of this new PC to be able to develop COM Add-ins for Outlook 2003 ?(Is a copy of the library is enough ?)
Many thanks for your help
Frédéric
Frédéric
|
|
|
|
|
I'm a newby to mobile development and was needing a hand figuring out how to load images into a pictureBox control at runtime, I had originally solved the problem using an imageList but decided the constraint of having a uniform size for each image in the list was not even close to ideal.
Thanks a bundle in advance for your help.
B
|
|
|
|
|
Hi everyone,
So I thought to myself today that I should try to develop my first Smartphone app, just for fun. I have had an Orange SPV C500 for about 6 months now, and I really missed a stopwatch application (I wanted something simple and easy to use, without all the graphic stuff all other stopwatch apps seems to have).
I have downloaded and installed Smartphone 2003 SDK, so now I'm able to target Smartphone 2003 based devices in my Visual Studio 2003. I have created my simple stopwatch application, and quickly ran into the first issue.
Once I start the stopwatch, I save the DateTime.Now into a StartTime variable, and then I update the display every 100 milliseconds. To update the display, I calculate TimeSpan ts=DateTime.Now.Subtract(this.StartTime) and then use String.Format to output the value.
The issue: The Milliseconds property of TimeSpan is always zero!
Does this mean that the .NET Compact Framework doesn't support milliseconds when working with DateTime/TimeSpan? Or am I doing something wrong? When I use the same code in a Windows Forms application, it works fine (including the milliseconds). But the behavior is the same (no milliseconds) in smartphone emulator as well as in the real device (SPV C500). Even the DateTime.Ticks seems to always advance by 1 second.
Anyone got any ideas?
Rado
PS: Are there any good communities/forums dedicated to smartphone development? I mean, there is of course the CodeProject for generic C#/C++ development, or www.asp.net for ASP.NET, but I couldn't find anything like that for smartphones.
Radoslav Bielik
www.neomyz.com/poll [^] - Get your own web poll
www.neomyz.com/rss [^] - RSS Web Reader - latest news for your site
www.neomyz.com/games [^] - Add a small game to your website
|
|
|
|
|
It's supported, at least in the documentation it says it is. I would guess that the hardware doesn't support milliseconds when returning the time.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Dave Kreskowiak wrote: It's supported, at least in the documentation it says it is. I would guess that the hardware doesn't support milliseconds when returning the time.
Thank you for your response, I was afraid noone would reply!
Do you think it isn't supported on the Smartphone 2003 platform as a whole? Or only the specific device (Orange SPV C500)?
I started testing on the emulator, which is a part of Smartphone 2003 SDK, and when I noticed I don't get milliseconds, I've tried it on the real device with the same results.
Thanks,
Rado
Radoslav Bielik
www.neomyz.com/poll [^] - Get your own web poll
www.neomyz.com/rss [^] - RSS Web Reader - latest news for your site
www.neomyz.com/games [^] - Add a small game to your website
|
|
|
|
|
I have no idea, but if I had to guess, I think it would be the SmartPhone platform that lacks the support for it.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hallo,
I'm working on some sort of server/client communication right now. To keep the server (a Windows service) as responsive as possible, I'm looking for a way of connectionless communication. There are four problems/requirements:
1.) All data has to arrive contemporary at the client, because it's used for a (almost) realtime graphical presentation (delay < 100ms).
2.) The data transferred from the server to the client consists of very small chunks (10 bytes + a one byte identifier) each, which obviously is the main problem. Unfortunately there is no (practical) way to group that data into larger packets.
3.) The amount of data can get very high at peak times (up to 5000 packets = 55000 Bytes a second).
4.) A reliable communication is not needed. It's ok if not all data arrives at the client as long as the paket loss doesn't get too high (again 1 packet/100ms minimum).
I've tried several solutions (please don't laugh) and measured the maximum speed, here are the results:
- Windows Message Queues (~20 KByte/s)
- Asynchronous Remoting calls (< 5 KByte/s)
- UdpClient class (~30 KByte/s)
- Self-made managed lower-level socket layer (~120 KByte/s)
As you can see the sockets solution fits my need speed-wise. Unfortunately it eats up 100% CPU power just for the communication which obviously isn't what I'm looking for.
I understand that the small packet size is my problem (sending packets of > 1000 bytes increases the speed enormously, but I can't do that => fixed third party interface). Is there any recommended solution for transporting a lot of packets but each with very small amounts of data? I can't find anything about that topic, so any help would be highly appreciated.
Thanks!
-- modified at 16:32 Monday 28th November, 2005
|
|
|
|
|
Are both the source and destination process on the same machine? If not why not put something in between on the far (source) machine that takes data as fast as I can get it and create larger packets to send across to your receiving process? Treat it kind of like a jitter buffer. have the intermediate process just store up enough data to make a larger packet and not send anything until it is full then send and start buffering another package.
George Carlin wrote:
"Don't sweat the petty things, and don't pet the sweaty things."
Jörgen Sigvardsson wrote:
If the physicists find a universal theory describing the laws of universe, I'm sure the a**hole constant will be an integral part of that theory.
My Blog[^]
|
|
|
|
|
Oops... seems like the e-mail notification does not work (I didn't receive a message after you replied).
Thanks for your answer. I more or less already did what you said. Unfortunately there were strict limitations that didn't let me build larger packets (the client almost needs new information instantly), but with three pieces put together to one packet performance is very good now (and also the CPU load dropped). Thanks again for your help!
|
|
|
|
|
If the client needs very rapid updates then any count based packet merging could result in problems if the source pauses in mid chunk. Doing the packet merge every n millisecs where n is the allowable time between updates (with fudge factor) would be a better approach.
|
|
|
|
|
In fact, I'm using a combination of both at the moment. That means the server tries to merge at least three pieces of data, but if there are no pieces anymore (depends on the hardware connected to the server) he sends out the packet after a certain amount of time anyway (50 ms).
Thanks for your suggestion.
|
|
|
|
|
Hi all,
I know that it's not the same in .NET, but in VB 6, you could build DLLs, put them somewhere in your path, and your application looking for that DLL would be able to find it.
As we're preparing to migrate to .NET, I'm trying to work out these little nuances and I'm about to rip my hair out over this one.
I want to simply be able to load a class file (DLL) from a network location, with .NET, just like I can if the DLL was in the same directory as the EXE. I've been up to my eyeballs in app.config, and I can get the EXE to look in its sub-directories and find the DLL with no problem, however, specifying a codebase on the network has not been so fruitful.
I'm using VC# Express 2005. In the information I found, I saw that I needed to generate a key (which I did) then run al.exe against it to link the key to the dll (??), but alas, I can't find al.exe anywhere on my box. Same for the Fusion Log Viewer app... I'm guessing maybe they don't come with the Express editions.
In any case, if someone can point me to a walk through, a how-to, or some information that explains this in a little better detail of the steps necessary to accomplish the seemingly simple task of loading dlls from a network location, I would greatly appreciate it.
Thanks in advance,
Mike
|
|
|
|
|
Try to use Assembly.LoadFile Method
System.Reflection.Assembly.LoadFile("path-to-your dll");
The LoadFile method can load assemblies from diferent locations.
DevIntelligence.com - My blog for .Net Developers
|
|
|
|
|
... need to get names of files that have been changed, added etc in a dir and subdirs.
Is it possible to do through filesystemwatcher-service?
/h
-- modified at 4:55 Monday 28th November, 2005
|
|
|
|
|
|
how to edit FAT table?
Is there any method to edit filename in FAT table directly?
Can anybody help me
|
|
|
|
|
No, there isn't. You have to load the sectors directly off the disk, edit them, then write them back. There is nothing in the .NET BCL that supports this.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I have downloaded version 2.0 in order to get the system.io.ports namespace but it still doesnt recognize it.
I have the vs.net 2003.
can someone help me?
|
|
|
|
|
gadgallea wrote: I have downloaded version 2.0 in order to get the system.io.ports namespace but it still doesnt recognize it.
I have the vs.net 2003.
You can't use .NET 2.0 with vs.net 2003. Downlaod the express edtion of the vs2005 and you can use .net 2.0
'A programmer is just a tool which converts caffeine into code'
|
|
|
|
|
Visual Studio 2003 cannot use .net 2.0. You will only be able to use the new classes from within VS 2005
|
|
|
|
|