APRIL 1997
The Denewtech Developers "QueryToWord" 1.0 :

This is a very useful component for delphi to writing reports using
Microsoft Word to create the output. The gool for this component is reduce
the code size overhead adding by quick Reports and reduce the nesesity 
to write larger code for beutiful Reports.

Word Vs Reports Writers.

	Wicrosoft Word is designed with end user in mind by the contrary
Reports Writers is designed for developers or heavy end user Knowledge.
This Version of QueryTOWord (1.0) have very limitation but you can create
very beatiful and formated documents. Mean While the end user can change the
format if nesesary whiout change the program code or report Code.

Cost OF This Version

  Query to Word if Free TO use, But registered user have the benefit of
 suport via email or letter. This suport include FAQ SHEET, UPGRADES, 
 This Benefit Cost only $5.00 of each Machine where installed (United Stated Dollars).

 Corporate Version1 * Cost $50.00
{ Unlimited installation }

 Corporate Version2 * Cost $100.00
 Coporate Version 3 * Cost : Any System Analist,System Administrator,Programmer 
   or any related job position for one of any member of Denewtech Developers.
   (Full Time, Part Time or contract is well Done)
{ 3 Mayor Upgrades included
 Unlimited installation for all versions ( WHEn COME OUT TO THE MARKET )
 free minor upgrades by request for the version in the marked in this moment
 Suport for each Version }

 { corporate Version 3 include Unlimited installation license of any
   software available from Denewtech Developers } 

To Register

   Send Money Order to:

   Dennis Ortiz
   Urb. Los Robles Flamboyan 114
   Moca PR 00676	

 or contact Denewtech Developers sending Email to dennisortiz@hotmail.com

Overview of then Next Version:

	The Next Version (1.1) include the following option in adition to the
righ now features.

1. Option to include OleObject
2. Option to include graphics
3. Correction to any bug found in previous versions
4. Free for all Registered User of version 1.0
   (Note : The Program id free but the user pay the destination shipping 
           If the user use E-Mail Account to recieve  the component
	   is totally free )
5. Maybe include ActiveX Version for use in VB, VC++, or new Delphi 97
6. Enchangment for use with Borland C++ Builder 


Features of this version :

Properties

1. ColsInSimpleReport : when printsimpletablereport method is use
                        the detail part is a table provinient from the
			query, this property limited number or cols
			showing from query. ( see tQuery )
2. DocumentFileName   : The name of the Output File in Word
3. DocumentTitle      : self explanation
4. FontForReport      : self explanation
5. Fontfortitle       : self explanation
6. KeyInDetailTableforSimpleFilter and 
   KeyInMasterTableforSimpleFilter :

   You can query the DATA using sql syntax Where in select statement
 but in master Datail report is more easy join
 one key in master table to detail using the followin method.

explanation

   key in Master  operation  Key in detail
    registroid       =        id

  the operation properties is ommited and this version
  assume Equal operation (=)

  example of this explantion

  KeyInDetailTableforSimpleFilter := id
  KeyInMasterTableforSimpleFilter := Registroid

 The next version include a follwinf propertie:

 OperationForJoinKeys :  (one of thease :  =,>,<,<>)

7. name : Name of the Component
8: QueryforDatailTable : the name of the tquery component which contail 
			detailed information
9: QueryForMasterTable : the name of the tquery component wich contail
                        the master data tha gover the report.

***********   8 and 9 is requiered for masterDatail Reports, One of them requiere for
              simpletablereport.

***********  Remember set true the filtered property in detail query
             when use 8 and 9 properties from this component.

*********** for better performance set unidirectional property of
            queries true. The method used to generate reports in word by 
            this component no need go back records.

10. Tag : not implemented for use in this component

Methods :

1. Create   :  create the component
2. Destroy  :  destroy the component
3. printsimpletablereport(cual:two);
  cual variable identify  which query contail the data for the report
  posible variable contests are : (MASTER or DETAIL)
  see properties 8 and 9.
4. writetoword(text : string;newline : boolean);
5. ConvertTotext(tdirection,lines nesewary to up or down to
   convert data in a table in word, Cols = # of columns to create 
   to acomodate this data)

  example : ConvertTotext(UP,1,1)
            up,
            one line to up
	    one Column for echa line			


  this method is useful when in master detail reports use Events

Example:
***
procedure TForm1.BitBtn1Click(Sender: TObject);
begin
 msword1.printmasterdetailreport;
end;

procedure TForm1.MSWord1WhenDetailNeedtoPrint(Sender: TObject);
begin
  msword1.writetoword(query2.fieldbyname('id').asstring,true);
  msword1.converttotable(up,1,1);
end;

procedure TForm1.MSWord1WhenMasterNeedtoPrint(Sender: TObject);
begin
  msword1.writetoword(#13+query1.fieldbyname('nombre').asstring,true);
end;

***

 tdirection = (UP or DOWN);

Excuses :

Sorry for my poor English, I Born in New York USA
but live in Puerto Rico All My Life. Support in Spanish
is a good option but other member of Denewtech Developers
Show better abilities this Businnes Idiom.
