Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
?
Solved

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

Posted on 2002-03-05
14
Medium Priority
?
151 Views
Last Modified: 2010-05-02
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
0
Comment
Question by:pcumberbatch
  • 4
  • 4
  • 2
  • +3
14 Comments
 
LVL 8

Expert Comment

by:glass_cookie
ID: 6846467
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 : )

0
 
LVL 4

Author Comment

by:pcumberbatch
ID: 6848101
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
0
 
LVL 8

Expert Comment

by:glass_cookie
ID: 6849944
Hi!

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

That's it!

glass cookie : )
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 4

Author Comment

by:pcumberbatch
ID: 6882790
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
0
 
LVL 44

Expert Comment

by:bruintje
ID: 6891271
Hi pcumberbatch, do you have a lits of formats?
0
 
LVL 44

Expert Comment

by:bruintje
ID: 6891272
a lits???? meant a list
0
 
LVL 4

Author Comment

by:pcumberbatch
ID: 6893831
Hi bruintje

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


0
 
LVL 44

Expert Comment

by:bruintje
ID: 6893856
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?
0
 
LVL 4

Author Comment

by:pcumberbatch
ID: 6893889
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
0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7068121
Please update and finalize this.
Moondancer - EE Moderator
0
 
LVL 44

Expert Comment

by:bruintje
ID: 7068143
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

0
 
LVL 1

Expert Comment

by:Moondancer
ID: 7073144
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
0
 
LVL 49

Expert Comment

by:DanRollins
ID: 7591813
pcumberbatch, an EE Moderator will delete this for you.
Moderator, my recommended disposition is:

    DELETE this question.

DanRollins -- EE database cleanup volunteer
0
 

Accepted Solution

by:
modulo earned 0 total points
ID: 7624221
PAQ'd and points refunded

modulo

Community Support Moderator
Experts Exchange
0

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses
Course of the Month11 days, 13 hours left to enroll

564 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question