Re: HMG_HPDF - Export to PDF made easy... (New Version)
Posted: Wed Oct 10, 2012 6:46 am
Now it is time to create utility, than can convert code of print to hmg_hpdf version by one click
or have some idea
or have some idea
Exclusive forum for HMG, a Free / Open Source xBase WIN32/64 Bits / GUI Development System
http://mail.hmgforum.com/
I mean something like this :rathinagiri wrote:...
I can't fully understand your proposition. Can you please explain using a small sample/template program as to how do you want?
Code: Select all
aLinesToPrint := { 'This is sample Line 1" ,; // An array contains lines to print
'This is sample Line 2",;
'This is sample Line 3" }
SET HPDFPAGE LINESPACING TO 10
START HPDFPAGE
HPDFPRINT SetRowTo 10 // <= New command; Move write-cursor to row 10 ( Like SetPos() )
HPDFPRINT SetColTo 10 // <= New command; Move write-cursor to col 10
FOR nLineNo := 1 TO LEN( aLinesToPrint )
HPDFPRINT PRINT_TEXT aLinesToPrint[ nLineNo ] <...> // <= New command
// <...> : other PRINT options, is same as @ ... PRINT command
NEXT nLineNo
END HPDFPAGE
/*
In this case this command not required; because SET HPDFPAGE LINESPACING TO works internally after each HPDFPRINT PRINT_TEXT
HPDFPRINT MoveRowTo 10 // <= New command; Move write-cursor 10 mm down from current row;
// also accept values less than 0 ( negative) for moving up
This command also meaniless for now
HPDFPRINT MoveColTo 10 // <= New command; Move write-cursor 10 mm right from current col
// also accept values less than 0 ( negative) for moving left
*/
Code: Select all
aLinesToPrint := { 'This is sample Line 1" ,; // An array contains lines to print
'This is sample Line 2",;
'This is sample Line 3" }
START HPDFPAGE
nLineRow := 10
FOR nLineNo := 1 TO LEN( aLinesToPrint )
@ nLineRow, 20 HPDFPRINT aLinesToPrint[ nLineNo ]
nLineRow += 10
NEXT nLineNo
END HPDFPAGE
I've mentioned normal printing printing text in rectangular area, not creating .pdf with commandrathinagiri wrote:IMHO, it is. Since all the printing is done using @ row, col we can fix the line spacing as we require. Isn't it?Is it possible to set liespacing in normal printing?
Please consider this:
Code: Select all
.... nLineSpacing := 5 // line spacing is 5 mm nFirstRow := 10 // first row starts at 10 mm nLastRow := 280 // last row is set at 280 mm nCurrentRow := nFirstRow lReportContinue := .t. do while lReportContinue @ nCurrentRow, 10 HPDFPRINT cData nCurrentRow := nCurrentRow + nLineSpacing cData := CurrentRecord() if LastRecord() lReportContinue := .f. endif if nCurrentRow > nLastRow END HPDFPAGE START HPDFPAGE nCurrentRow := nFirstRow endif enddo .....Hi Esgici,Does line-spacing determined by <nRow> value of @ ... command ?
If we have 'print' without @ ... command; between such commands :
HPDF_PRINT BEGIN TEXT
.
HPDF_PRINT PRINT ...
.
HPDF_PRINT END TEXT
I can't fully understand your proposition. Can you please explain using a small sample/template program as to how do you want?
Code: Select all
ShellExecute(0, "Printto", CHR( 34 ) + cPdfFileToPrint + CHR( 34 ), CHR( 34 ) + cPrinterName + CHR( 34 ), 0, 0)
Some applications support the 'printto' action. PrintTo can be used to specify the name of the printer used for the print action. Printer is determined by 3 parameter: printer name, drive name and port.
Add following in c:\hmg\hmg.hbcclaudiotedesco wrote:Hola Gente
No saben porque cuando compilo me da el siguiente error?
Hay que compilarlo en alguna carpeta determinada?
Gracias
Claudio [/color]
A small offer as an extension to your "small" documentation : HMG-HPDF doc.rathinagiri wrote: ... a small documentation for HMG_HPDF using HMG_HPDF.![]()