473,948 Members | 9,565 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

how to break a com's long method call ( by setting duration)

1 New Member
Csharp. Framework.2

iam converting word document's into pdf, which involves com dll.

1. iam looping all documents
2. open a word document and save it as pdf
3. during the step 2 most of the documents get converted successfully but some documents takes long time to convert or even shows some user messages. if it happens i want to terminate the document and continue with next document, since it is automation process with no user interaction.

my probelm is that i want to know, is there is any way that i can set some duration limit to break the calls (doc.open and doc.save)
Mar 12 '07 #1
1 1034
kenobewan
4,871 Recognized Expert Specialist
One way would be to manage your threads. Here are 2 overviews:
Manual Threading in ASP.NET 2.0
Use Threads and Build Asynchronous Handlers in Your Server-Side Web Code
Mar 13 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
1233
by: Vijay Kumar | last post by:
hi, I have written a trace function in C using the Python/C API. I want to find whether the call occured is a function call or method call and if a method call, its self object. int tracer(PyObject *obj, PyObject *f, int what, PyObject *args){ PyObject *item,*SelfItem; switch(what){ case PyTrace_CALL: {
3
4891
by: Nimai Malle | last post by:
I have not had any luck searching for a simple, simple example that calls a method on an object given a SOAP string. Here's what I'm looking for (in pseudocode): string SOAPCall = "bla bla bla"; // SOAP method invocation XML string SOAPResponse; MyObject x = new MyObject(); // and here's where I don't know what to do /* call the method on x as specified in SOAPCall and get the output into SOAPResponse. */
3
1515
by: Dave | last post by:
I have a piece of hardware connected via serial port. I need to send a variety of commands to the box and route the responses back from the receive thread to the correct method call. So e.g. I have a method call something like: SomeCommand(inParam1, inParam2, outParam1, outParam2) { Command cmd = new Command( inParam1, inParam2); HwCommLine.Send( cmd);
0
820
by: Nadav | last post by:
Hi, I have a simple C# project build of a console application (Tester.exe) and a DLL (TesterDll.dll) referenced by it, I am trying to figure out the way a method of TesterDll is identified in Tester.exe, how does Tester.exe know to resolve the token that resemble a method defined in TesterDll? Let’s take in mind the following Tester.exe code segment: … TesterDll.CTester t = new TesterDll.CTester(); …
3
9111
by: John A Grandy | last post by:
I am always RAS'd into MS CorpNet VPN under my REDMOND account. I am always able to ping "itgproxy.redmond.corp.microsoft.com" I instantiate a System.Net.WebProxy object as follows: using System.Net; string proxyUrl = http://itgproxy.redmond.corp.microsoft.com; WebProxy proxy = new WebProxy(proxyUrl, true); MSNSearchService.Proxy = proxy;
18
3678
by: AlexanderVX | last post by:
How do I write a constructor mehtod call in this case /*-----------*/ template<typename Tclass CObjectPoolImpl { public: void smth(T* pObj) { if (pObj)
4
1132
by: Dachshund Digital | last post by:
Why does Join method call sit there forever? This code works, including the delegate call, but if the join method is ever called, it seems the main thread blocks, and it is hung. HELP! This is driving me nuts! ----------------------------------------------------------------------------------- Imports System Imports System.Threading Imports System.Environment
7
2298
sammyboy78
by: sammyboy78 | last post by:
I was wondering about the format of calling methods using arrays. I know that to call a method when not using arrays it would be formatted in the first class like: public void methodName( parameters ) { statements; }// end methtod and then the method call in the second class (the one created to use the methods of the first class) would be:
7
1916
by: Peter Laan | last post by:
Is there a simple way to encapsulate the functionality to redo a method call a second time in case a specific exception is thrown? We are sending commands to an external system and if the sessionId times out we want to relogin to get a new sessionId and then call the same method a second time. The method calls are actually calls to our own web service who in turn sends the command to the external system. My first solution using .net 1.1...
0
10164
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9986
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11174
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10694
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9896
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
7431
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
6118
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
6337
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
4540
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.