At 12:27 PM 6/18/2009, R:Daniele wrote:
In R:BASE 7.6 (last upgrade) can the command PRINT reportname
make a filename.doc (for MIcrosoft Word)?
Daniele,
Any report printed with an OPTION RTF will work in your case.
When printing the report with OPTION RTF, you can also specify
the method of "OPTIMIZATION".
. OPTIMIZATION POSITIONAL_ACCURACY
. OPTIMIZATION EASE_OF_EDITING
Resulting RTF document can be either optimized for positional
accuracy (meaning that the placement of the objects will be as
close as possible to a printed report), or for ease of editing
(meaning that everything is treated as simple text and it is
much easier to edit the file at the expense of aesthetics).
Example 01 (OPTIMIZATION POSITIONAL_ACCURACY)
-- Database: RRBYW14
-- Report: Invoice
-- Output RTF File Name: Invoice1068.RTF
IF (CVAL('DATABASE')) <> 'RRBYW14' OR +
(CVAL('DATABASE')) IS NULL THEN
CONNECT RRBYW14 IDENTIFIED BY NONE
ENDIF
-- Verify the existence of RTF Sub-Directory
SET VAR vChkFile = (CHKFILE('RTF'))
IF vChkFile <> 1 THEN
MD RTF
ENDIF
PRINT Invoice WHERE TransID = 1068 +
OPTION RTF +
|FILENAME RTF\Invoice1068.RTF +
|SHOW_CANCEL_DIALOG ON +
|BACKGROUND_FILE NONE +
|BACKGROUND_TYPE CENTER +
|INCLUDE_LINES ON +
|INCLUDE_SHAPES ON +
|INCLUDE_RICHTEXT ON +
|INCLUDE_IMAGES ON +
|IMAGE_FORMAT JPG +
|JPEG_QUALITY 100 +
|IMAGE_DPI -1 +
|PIXELFORMAT 32 +
|GRAPHIC_DATA_IN_BINARY ON +
|OPTIMIZATION POSITIONAL_ACCURACY +
|TITLE Customer Invoice +
|SUBJECT Sales Order +
|AUTHOR R:BASE 7.6 for Windows +
|KEYWORDS Invoice +
|OPEN ON
RETURN
Example 02 (OPTIMIZATION EASE_OF_EDITING)
-- Database: RRBYW14
-- Report: Invoice
-- Output RTF File Name: Invoice1068.RTF
IF (CVAL('DATABASE')) <> 'RRBYW14' OR +
(CVAL('DATABASE')) IS NULL THEN
CONNECT RRBYW14 IDENTIFIED BY NONE
ENDIF
-- Verify the existence of RTF Sub-Directory
SET VAR vChkFile = (CHKFILE('RTF'))
IF vChkFile <> 1 THEN
MD RTF
ENDIF
PRINT Invoice WHERE TransID = 1068 +
OPTION RTF +
|FILENAME RTF\Invoice1068.RTF +
|SHOW_CANCEL_DIALOG ON +
|BACKGROUND_FILE NONE +
|BACKGROUND_TYPE CENTER +
|INCLUDE_LINES ON +
|INCLUDE_SHAPES ON +
|INCLUDE_RICHTEXT ON +
|INCLUDE_IMAGES ON +
|IMAGE_FORMAT JPG +
|JPEG_QUALITY 100 +
|IMAGE_DPI -1 +
|PIXELFORMAT 32 +
|GRAPHIC_DATA_IN_BINARY ON +
|OPTIMIZATION EASE_OF_EDITING +
|TITLE Customer Invoice +
|SUBJECT Sales Order +
|AUTHOR R:BASE 7.6 for Windows +
|KEYWORDS Invoice +
|OPEN ON
RETURN
Have fun!
Very Best R:egards,
Razzak.
--- RBASE-L
================================================
TO POST A MESSAGE TO ALL MEMBERS:
Send a plain text email to [email protected]
(Don't use any of these words as your Subject:
INTRO, SUBSCRIBE, UNSUBSCRIBE, SEARCH,
REMOVE, SUSPEND, RESUME, DIGEST, RESEND, HELP)
================================================
TO SEE MESSAGE POSTING GUIDELINES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: INTRO
================================================
TO UNSUBSCRIBE:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: UNSUBSCRIBE
================================================
TO SEARCH ARCHIVES:
Send a plain text email to [email protected]
In the message SUBJECT, put just one word: SEARCH-n
(where n is the number of days). In the message body,
place any
text to search for.
================================================