|
I have recoded the whole thing using Office 2000 and tried to run the code in a machine which has Office 2000. And still I am getting the same issue when it kits WrdApp.Visible() method.
FYI
using Word = Word;
using Excel = Excel;
public class DocumentPrinter
{
public DocumentPrinter()
{
//
// TODO: Add constructor logic here
//
}
Word.Application wrdApp;
Word._Document wrdDoc;
//Sends merge to email. client must enter address
public void Printword()
{
Word.MailMerge wrdMailMerge;
Word.Selection wrdSelection;
Word.Range wrdRange;
// Create an instance of Word and make it visible.
wrdApp = new Word.Application();
wrdApp.Visible();
//When the control comes to the line wrdApp.Visible();, it throws the abpve error.
Help please
Thanks in advance
Savitha
|
|
|
|
|
|
andre12345 wrote: Does DBusSharp have any use on Windows Plateforms?
You mean besides the ones documented on the page you provided a link to?
|
|
|
|
|
Well the second level link http://www.freedesktop.org/wiki/Software/dbus[^]
from that page reference the "D-Bus" message bus system. The "DBusSharp" reference the c# implentation.
The implementation has a "UNIX" background, but is it better that Microsoft remoting for IPC?
|
|
|
|
|
andre12345 wrote: Well the second level link http://www.freedesktop.org/wiki/Software/dbus[^]
from that page reference the "D-Bus" message bus system. The "DBusSharp" reference the c# implentation.
The implementation has a "UNIX" background, but is it better that Microsoft remoting for IPC?
I have no idea how that relates to your original question. If you wish to get support from people using internet forums you might consider posting complete cohesive information and questions.
|
|
|
|
|
After reading this article:
http://reddevnews.com/blogs/print.aspx?blog=3654
I'm wondering why MS is slowing down on the .NET functionality.
The article states:
"If they [Microsoft] were trying to kill ODBC, they would have added this functionality to their .NET provider."
Huh.
I thought ODBC was a thing of the past and only used on legacy systems now. Should I start reverting back to ODBC drivers instead of the built in .NET stuff?
Any thought?
|
|
|
|
|
Jim in Arizona wrote: I'm wondering why MS is slowing down on the .NET functionality.
How do you get that from the article?
Jim in Arizona wrote: I thought ODBC was a thing of the past and only used on legacy systems now.
Where do you get that info?
ODBC is still a perfectly valid method of data access,
and probably still the best performing cross-DBMS access
interface.
I've never seen anything from Microsoft stating ODBC is deprecated,
dead, or dying.
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
WTF Mark? Things not lively enough for you in the new technology groups so you're coming back to some of the old fishing grounds?
BTW, nice bait you used here.
|
|
|
|
|
My opinion of ODBC not being used as much anymore (rather than depricated) is because of articles I've been reading over the last few years saying that other, newer methods are preferred due to speed (for one) and ODBC should ONLY be used for those systems that require it, such as older legacy systems.
I stopped using ODBC about four years ago in favor of ADO/ADO.NET. Looking around the net, the consensus appears to be that ODBC is old and slow compared to the others.
http://www.experts-exchange.com/Databases/Q_20985045.html
That being the case, why would they (MS) begin working on it again instead of spending that time on ADO.NET? Also, why would anyone, assuming ADO.NET is faster/better, want to design a NEW system with ODBC?
So, if ODBC is better and should be used instead of ADO.NET, then this is the first I've heard of it.
|
|
|
|
|
Cool.
I just don't see the comparison being all that valid anyway:
One can't use ADO.NET in native code.
Of course, with years of .NET marketing implying .NET is the end-all be-all of programming
frameworks and native code is dead...
And ADO.NET faster than ODBC? hmmm For all DBMSs and drivers? I'm skeptical, but I
really don't care - all the DB stuff is a bottleneck anyway.
It's the progress in the dev tools for .NET, with pretty much no progress in native tools,
that makes ADO.NET, and .NET in general, more appealing to me.
BTW, I converted all my DB code to ADO.NET from ODBC a while ago, so I'm not
an ODBC fanatic....I'm just saying it's not dead
Mark Salsbery
Microsoft MVP - Visual C++
|
|
|
|
|
You're assuming that the technologies are mutually exclusive, whilst I'm not even sure that they are really competing technologies.
ODBC puts it priority in talking to as much databases as it can, whilst ADO puts it's coins on speed. ADO.NET is the speedy version that has been integrated in our favorite framework.
Nah, ODBC ain't dead. The BDE is dead, and I think that we should be gratefull for that
I are troll
|
|
|
|
|
hi all ,
i am currently preparing for test 070-536
i went through the MCTS self paced Training kit,
and then ActualTests 10-15-2008 which i don't think it's the
latest version available .
i'm not sure whether that's enough to pass the test or not
i need advice of you people
|
|
|
|
|
Quite a few of my colleagues use http://www.testking.com/[^] for all of their certifications.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
I have the same material. It´s enough to pass.
As my friend said:
"Study the Actual Tests. Just use the book if you are curious to discover why the answer is right."
|
|
|
|
|
i use the cmd "regsvr32 aaa.dll",
but it say "haveing load the aaa.dll, but cannot find the DllRegisterServer,cannot register this file".
can you tell me how to register the dll(use dos cmd).
|
|
|
|
|
Welcome to CodeProject
Please see my reply to the question directly below yours.
|
|
|
|
|
where is your reply?
|
|
|
|
|
now it is success to register it.
but i can't find one of the controls in VB or VC.
help!
|
|
|
|
|
Recently, I've tried to use the activex control in webservice.,but encountered some problems. I've already tested the activex control in a website, and it turned out to be right.
In the webservice, I add the .dll file of the activex control in the reference, then I can use the activex control in the webservice, but when i debug it, it generates an error,"System.Threading.ThreadStateException: ActiveX control '745395c8-d0e1-4227-8586-624ca9a10a8d' cannot be instantiated because the current thread is not in a single-threaded apartment". This problem really gives me a headache. Can anyone help me with this problem? Anything will be appreciated.
|
|
|
|
|
Welcome to CodeProject
I don't know anything about you but based on your post you seem to be unaware of a couple of key aspects of software development.
The most important is that you will have to know and understand things that you work with. If you don't take the time to learn these things this is what happens, as in this case you can't solve your problem.
In order to study a subject it is important to know that in most cases a simple Google search will start you down the correct path to enlightenment.
Anyway a simple google search using MSDN followed with some keywords from your post turned up this article as about the 5th result. This article looks like a very good starting point for you.
What are these "Threading Models" and why do I care? [^]
|
|
|
|
|
Thank u so much. Your advice really means a lot to me.
|
|
|
|
|
Hi,
I need to use RNGCryptoServiceProvider in PHP.
I have tried:
Code:
$rng = new DOTNET("mscorlib", "System.Security.Cryptography.RNGCryptoServiceProvider");
$arr = array(0);
$v = new VARIANT($arr,VT_ARRAY);
$rng->GetBytes($v);
unset($rng);
The component loads fine.
But I got this error: Fatal error: Uncaught exception 'com_exception' with message 'Error [0x80070057] The parameter is incorrect.
Any ideas?
Edit/Delete Message
|
|
|
|
|
Hi folks!
many thanks for all your contributions. Indeed, VS2008 C# Express supports .NET 2.0 - the grayed option I referred to was actually VS2008 C++, not C#.
I managed to raise the app for a pilot run so I'm OK for this one.
Cheers
Olivier
|
|
|
|
|
i'm trying to create .net framework using c#.net.
but i don't know top to bottom in .net. any one give idea about
framework. And also give flow for creating .net framework.
i don't know it's possible or not..
if possible give me ur ideas..
Thankyou,,,
R RajaGuru
|
|
|
|
|
What are you wittering on about? Creating the .NET framework in C# - This is a bit of a pointless exercise as you need the .NET framework to run C#.
"WPF has many lovers. It's a veritable porn star!" - Josh Smith As Braveheart once said, "You can take our freedom but you'll never take our Hobnobs!" - Martin Hughes.
My blog | My articles | MoXAML PowerToys | Onyx
|
|
|
|