Link to home
Start Free TrialLog in
Avatar of pcumberbatch
pcumberbatch

asked on

Exporting to word, html, txt etc... formats

How can VB be used to create a module which exports to several formats including word, excel, html.  I am trying to build a module which would allow information to be exported without there being the need for the application e.g. Word to be present on the machine on which the export is being done.

Thanks PC
Avatar of glass_cookie
glass_cookie

Hi!

Not sure if this would help:

Here's a file for you over the net:

Download...
http://www.planetsourcecode.com/vb/scripts/ShowZip.asp?lngWId=1&lngCodeId=3799&strZipAccessCode=ODE%5F3799PLOA
Description: Have you ever wanted to merge data from a database to Word when say one person has multiple records asscociated with them. Word doesn't allow this. For example, It allows one person record but what if you want to show multiple orders in the document for that person. Access allows you to do this with a subreport but not word. This code will allow you to create a new word document, add text to it, format the text, insert data from  


As for the MS Word thingy, actually you could use the richtextbox control to export the file/data to a rtf file whih can also be read by word : )

That's it!

glass cookie : )

Avatar of pcumberbatch

ASKER

Thanks,

However, I can't download anything.

I want to provide a list of formats and allow the user to save/export information displayed on screen to the format selected.  I would like to be able to export text from a textbox or information presented in a data report.

PC
Hi!

I was able to download it.  Sorry - not much idea on how to solve that.

That's it!

glass cookie : )
Saving to txt is no problem.  But I would like to be able to output to other formats so that the person receiving the file just has to open it without having to convert the file.

I believe that some dlls may be involved, many programs  have import / export filters which can be installed to allow information to be coverted to other formats.

If I find any thing I will post it here.  All suggestions welcomed.

Thanks,

PC
Hi pcumberbatch, do you have a lits of formats?
a lits???? meant a list
Hi bruintje

Here are the formats I need at present - Word, HTML, text.


those are three formats you can create with Word....in your original question you mentioned Excel for that format you need Excel

if you only need the formats listed above,  then a bit of code on doing this from Word will do

do you need excel also?
Yes Excel is also need.  Remember I need this module to be able to run on a machine which does not have word or excel if necessary.

Thanks

PC
Please update and finalize this.
Moondancer - EE Moderator
ok i have no idea of achieving this without Word on the PC

so i don't know, maybe a third party component would solve it if that's an option

:O)Bruintje

What would you like done with this question?  Since it appears inconclusive in terms of a solution perhaps a refund/PAQ or deletion is in order, so that you may try again... or?

Thanks,
Moondancer - EE Moderator
pcumberbatch, an EE Moderator will delete this for you.
Moderator, my recommended disposition is:

    DELETE this question.

DanRollins -- EE database cleanup volunteer
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial