Paste: proposition for rebol modules
Author: | jankoM / middayc |
Mode: | rebol |
Date: | Wed, 9 Dec 2009 22:12:05 |
Plain Text |
make-report: func [ data ] [
with-modules [ haru-pdf ] [
p: new-page
f: font "arial" 12
goto p 100 100
print p f data/title newline
row p f [ "item" "qty" "price" ]
save p %file.pdf
]
]
make-report: func [ data ] [
p: haru-pdf/new-page
f: haru-pdf/font "arial" 12
haru-pdf/goto p 100 100
haru-pdf/print p f data/title haru-pdf/newline
haru-pdf/row p f [ "item" "qty" "price" ]
haru-pdf/save p %file.pdf
]
]
make-report: func [ data ] [
p: haru-pdf-new-page
f: haru-pdf-font "arial" 12
haru-pdf-goto p 100 100
haru-pdf-print p f data/title haru-pdf-newline
haru-pdf-row p f [ "item" "qty" "price" ]
haru-pdf-save p %file.pdf
]
]
make-report: func-mod [ data ] [ haru-pdf ] [
p: new-page
f: font "arial" 12
goto p 100 100
print p f data/title newline
row p f [ "item" "qty" "price" ]
save p %file.pdf
]
New Annotation