473,387 Members | 1,501 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

RTF files manipulation without using builtin controls

17
In our project we have rich text format (RTF) report template files with bookmark fields.

what we required is to read that file in background replace templates bookmark fields with DB field values (may be in iteration) and save this report file as .rtf but without using any rich* controls....

basically we are looking for a library or api already doing the same thing ... (since we follow the rule ... NEVER RE-INVENT THE WHEEL)

Any help would be appreciated... either by code example or by guided links on net

thanks in advance
Aug 13 '07 #1
10 2869
Killer42
8,435 Expert 8TB
You could use automation to drive MS Word.
Aug 13 '07 #2
misaw
17
You could use automation to drive MS Word.
sorry to indicate that we also do not want to use MS word automation. since it is heavy to work with web application.
Aug 13 '07 #3
Killer42
8,435 Expert 8TB
I've had a quick glance via Google, and it looks as though there may be quite a few relevant links to software out there. I just searched on "VB RTF CONTROL API" and found tons of links, including...

http://www.vbaccelerator.com/codelib...t/richedit.htm
http://www.velocityreviews.com/forum...-text-box.html
http://www.xtremevbtalk.com/showthre...oto=nextnewest
Aug 13 '07 #4
misaw
17
I've had a quick glance via Google, and it looks as though there may be quite a few relevant links to software out there. I just searched on "VB RTF CONTROL API" and found tons of links, including...

http://www.vbaccelerator.com/codelib...t/richedit.htm
http://www.velocityreviews.com/forum...-text-box.html
http://www.xtremevbtalk.com/showthre...oto=nextnewest
i appreciate your help

what if all the things would be done in background ... without using any UI control
correct me if i m wrong, i think all these using/required a UI control.
Aug 15 '07 #5
Killer42
8,435 Expert 8TB
i appreciate your help
You're being generous. :) I realise this hasn't been a lot of help.

what if all the things would be done in background ... without using any UI control
correct me if i m wrong, i think all these using/required a UI control.
I didn't read any of them in detail, but I thought some of them were just dealing with API calls. Besides, couldn't you just set the UI invisible? Or is this not feasible?
Aug 15 '07 #6
misaw
17
You're being generous. :) I realise this hasn't been a lot of help.

I didn't read any of them in detail, but I thought some of them were just dealing with API calls. Besides, couldn't you just set the UI invisible? Or is this not feasible?
Still looking a good API in VB6 for RTF
Aug 16 '07 #7
Killer42
8,435 Expert 8TB
Still looking a good API in VB6 for RTF
Are you sure you need one? If you just want to replace some space-holders with values, why not just do that in the raw text? Just like editing an HTML document in Notepad.
Aug 16 '07 #8
Killer42
8,435 Expert 8TB
Not sure whether this is one of the links I already sent. AscToRTF, while it does a lot of stuff that probably won't interest you, is available under a "source code licence" so you can pick it apart and do stuff with the source. This might be worth keeping in mind, as at least a possibility if you get really desperate.

I just read through this thread on another forum (don't let the Admins here find out!). It was a programmer who wanted to create an equivalent of the RichTextBox control from scratch. They were more or less talked out of it, but I think there's some pretty relevant information there. You might want to have a quick read. Also, they linked to a couple of points of interest...
Aug 16 '07 #9
misaw
17
Not sure whether this is one of the links I already sent. AscToRTF, while it does a lot of stuff that probably won't interest you, is available under a "source code licence" so you can pick it apart and do stuff with the source. This might be worth keeping in mind, as at least a possibility if you get really desperate.

I just read through this thread on another forum (don't let the Admins here find out!). It was a programmer who wanted to create an equivalent of the RichTextBox control from scratch. They were more or less talked out of it, but I think there's some pretty relevant information there. You might want to have a quick read. Also, they linked to a couple of points of interest...
Thanks i find them helpful
how strange helpful Killer2 :)
Aug 16 '07 #10
Killer42
8,435 Expert 8TB
Thanks i find them helpful
how strange helpful Killer2 :)
Well, killing's just a job, you know. Everyone needs a hobby.

By the way, let us know how this all turns out, huh?
Aug 16 '07 #11

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

Similar topics

3
by: Anonymous | last post by:
I need to create an application that will do fairly simple text manipulation on 20,000 files in text format (html files). The files exist both on my Windows machine and on a FreeBSD server. I...
1
by: Alexander Hoffmann | last post by:
Hello, I have a project with a number of python modules, which means there are several *.py files all in the same folder /usr/local/myproject/*.py . I ran the program to test it and of course as...
12
by: deko | last post by:
Is there a quick and dirty way to delete all files in a given directory? perhaps something like this: Set objFile = CreateObject("Scripting.FileSystemObject") objFile.DeleteFile "all files in...
16
by: Lacka | last post by:
Hi, How can I transfer files via FTP under asp.net? Don't found any info... thanks, Lacka
6
by: mjpmsa | last post by:
Hello, I've been using the O'Reilly book _Programming ASP.Net_ to learn ASP.Net, but it frustrates me because all of the examples seem to use the built in form controls. I write good, standards...
3
by: Sarav | last post by:
Hi All, I need to upload an XML file via an client side ActiveX control. I searched the web but everywhere got the samples of using file control alone. How can I upload a file into my web server...
16
by: iwdu15 | last post by:
how can i open a file i saved and place the info into different text boxes?
0
by: metaperl | last post by:
A Comparison of Python Class Objects and Init Files for Program Configuration ============================================================================= Terrence Brannon bauhaus@metaperl.com...
3
by: nguser3552 | last post by:
Hello Everyone, I have a problem I can't surmount, anything is gravy at this point. I need to be able to read any type of file .ext (mov,mpeg,mp3,etc) in binary format. I can do this in C, but ...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
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
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,...

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.