473,503 Members | 4,234 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problem with 3rd party RTF to HTML converter

I'm having some trouble with an RTF converter called Logictran R2Net
when two users access my site simultaneously. My application simply
runs an SQL query (based on parameters typed by user) that returns a
string of RTF data from the database, somethign like: SELECT text_data
FROM table WHERE text_id = @param. The text_data that is returned is
RTF, so I need to convert it to HTML for displaying in the browser.
This functionality is provided by R2Net. The code to convert the string
is as follows:

dim objR2net=Server.CreateObject("r2netaxdll.r2netobj" )
dim intRes as integer = objR2net.init("c:\program
files\logictran\r2net.exe")
intRes = objR2net.ConvertStrRTF(text_data)
finaltext = objr2net.GetString(0)

The first two lines create and initialize the activex dll
(r2netaxdll.dll). The third line passes the text_data RTF string to the
converter and initiates the conversion (I believe the actual conversion
is done by another DLL which is registered on the server called
R2netdll.dll). The ConvertStrRTF method returns an integer indicating
the number of HTML strings it has created. The fourth line grabs the
converted string and loads it into the finaltext variable.

The Problem: if two users are accessing my site at the same exact time,
and use this page to convert two different RTF strings, the displayed
HTML is sometimes swapped. For instance, if User A runs a query for
text_id=101 and User B runs a query for text_id=202, the application
may display User B's results in User A's browser. I believe this is
happeneing because each user is sharing the same instance of the
converter program, and if one user executes the GetString method right
after another executes the ConvertStrRTF method, he will pull the other
user's data. Is this a problem with my code or is it a limitation of
the third-party object? Is there anything I can do (somehow queue up
the conversions) so that only one user can access the converter at the
same time? Thanks for your help.

PS I'm very new to .net and programming in general. sorry if I haven't
expalined the situtation well enough.

Nov 19 '05 #1
0 1537

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
2998
by: ttn | last post by:
Hi, I am using a separately downloaded Eclipse 3M5 on a Debian woody (stable) system. To make Eclipse start at all I had to use the libgtk2 libraries from some backported gnome 2.2 to get a gtk...
1
2288
by: Mark Richards | last post by:
Assume I have downloaded a couple of related html web pages with (locally transformed) links between them. Now I want to put all these html source files into ONE *.pdf or *.chm file. All the links...
5
2904
by: jorfei | last post by:
I have written a component with a property IPAdrress of type System.Net.IPAddress. To ease the configuration of the component at design time, I have written a type converter for the type...
2
3361
by: | last post by:
Hi there In my app I host the webbrowser. If I return my own implementation in GetDropTarget my methods are never called ( if i return the original dropTarget or NOTIMPLEMENTED everything works...
0
1582
by: Lucas, Todd | last post by:
Hello everyone! I'm having a problem with a WebControl that I'm designing for a Menu. I've been at it for about 3 weeks now, and can't seem to get around this problem. So I'm hoping that someone...
2
4427
by: ajikoe | last post by:
Hi, I tried to follow the example in swig homepage. I found error which I don't understand. I use bcc32, I already include directory where my python.h exist in bcc32.cfg. /* File : example.c...
8
3026
by: coosa | last post by:
Dear all, I have the following code: #include <iostream> #include <string> #include <sstream> using namespace std;
15
2070
by: lucky | last post by:
Hi Guys You are probably my last chance to avoid getting crazy To help you understand my problem I have put images online showing the issue I have: http://www.australix.net/images/pb I...
4
2632
by: flo2007 | last post by:
Hi, I am looking for a good library that converts web pages to PDF. I am evaluating the following components: ExpertPDF Html To PDF Converter Winnovative Converter Any experiences with these?...
0
7067
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...
0
7264
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7316
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...
0
7449
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...
0
5562
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,...
0
4666
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...
0
1495
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
728
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
371
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.