Solved

Creating a Bmp

Posted on 2000-03-09
6
224 Views
Last Modified: 2010-04-04
Hi Guys, Girls and those not quite sure !!!!

I was wandering if anyone could help?, I have created a word document via an OLE Container and I need to fax it out through Turbo Powers AsyncProfessionals Fax Component.

The problem I have is that the VCL cannot convert Word Documents and as I do not want to loose any formatting etc, is it possible to create a Bmp of the Word Document?

Cheers for any help, I appreciate it.

WordDocument (in OLE Container) -> Bmp ??????

Stu
0
Comment
Question by:StuartB_99
6 Comments
 
LVL 9

Expert Comment

by:ITugay
ID: 2600126
It look like very difficult to do inside container, but you can show it on screen then catch it into BMP.

Cheers
0
 
LVL 1

Expert Comment

by:wmckie
ID: 2600163
I'm not familiar with the Fax component but I assume that you are creating the doc then saving it to a file then passing that file to the Fax component.

Can the Fax handle any other file format that Word can also accomodate e.g. RTF?

Walter McKie
0
 
LVL 2

Expert Comment

by:florisb
ID: 2600173
Check in Word under File | Sendto. There should be FAX here. I recorded a macro, got something like SendFax....
Checked in the imported Word tlb, found: procedure SendFax(const Address: WideString; var Subject: OleVariant); safecall; (of _application).

So you can make Word Fax your letter without losing anything. If you don't especially need that FAX component you named, I would consider this option.

Greetings,
Floris.
0
Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

 
LVL 2

Accepted Solution

by:
florisb earned 100 total points
ID: 2600178
indeed, or save doc and have FAX component open and handle it. Files can be saved as:
               wdFormatDocument =              0;
                wdFormatTemplate =              1;
                wdFormatText =                  2;
                wdFormatTextLineBreaks =        3;
                wdFormatDOSText =               4;
                wdFormatDOSTextLineBreaks =     5;
                wdFormatRTF =                   6;
                wdFormatUnicodeText =           7;

with:

//all vars OleVariant
      Name                     := FileName;
      FileFormat               := wdFormatDocument; // Format;
      LockComments             := False;
      Password                 := '';
      AddToRecentFiles         := True;
      WritePassword            := '';
      ReadOnlyRecommended      := False;
      EmbedTrueTypeFonts       := False;
      SaveNativePictureFormat  := False;
      SaveFormsData            := False;
      SaveAsAOCELetter         := False;
      FWord80.ActiveDocument.SaveAs(Name, FileFormat, LockComments, Password, AddToRecentFiles, WritePassword, ReadOnlyRecommended, EmbedTrueTypeFonts, SaveNativePictureFormat, SaveFormsData, SaveAsAOCELetter);


Floris.
0
 
LVL 17

Expert Comment

by:inthe
ID: 2600842
being nosey ..
0
 

Author Comment

by:StuartB_99
ID: 2673574
Sorry for the wait, Ive been away....

Thankyou.

Stu
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

Have you ever had your Delphi form/application just hanging while waiting for data to load? This is the article to read if you want to learn some things about adding threads for data loading in the background. First, I'll setup a general applica…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

708 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now