Paste: proposition for rebol modules
Author: | jankoM / middayc |
Mode: | rebol |
Date: | Wed, 9 Dec 2009 22:13:18 |
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
]
Author: | Janko M. |
Mode: | rebol |
Date: | Wed, 9 Dec 2009 22:43:40 |
Plain Text |
a: context [ name: "janko" ] aa: func [ ] bind [ print name ] a aa
make-report: func [ data ] bind [
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
] haru-pdf
New Annotation