search for: item_cost

Displaying 1 result from an estimated 1 matches for "item_cost".

2006 Mar 10
5
PDF::Writer Simpletable Iteration
...he generated PDF. Any ideas? My code follows: def pdf @item = Item.find(:all) _p = PDF::Writer.new _p.select_font ''Times-Roman'' PDF::SimpleTable.new do |tab| tab.title = "Item List" tab.column_order.push(*%w{item_code item_name item_desc item_cost}) tab.columns["item_code"] = PDF::SimpleTable::Column.new("item_code") { |col| col.heading = "Code" } tab.columns["item_name"] = PDF::SimpleTable::Column.new("item_name") { |col| col.heading = "Item" } tab.columns[&quo...