Skip to content
shairontoledo edited this page Sep 13, 2010 · 1 revision

next_page

It goes to the next page and resets the cursor values(recommended).

doc=RGhost::Document.new 
doc.show "Page 1 row 1" 
doc.next_page 
doc.show "Page 2 row 1" 
doc.next_page 
doc.show "Page 3 row 1" 

showpage

It goes to the next page without resetting the cursor values. Often used for single page documents.

doc=RGhost::Document.new 
doc.show "Page 1 row 1" 
doc.showpage # page 2, but internally page 1
doc.show "Page 1 row 1" 
doc.showpage # page 3 
doc.show "Page 1 row 1"