⚠ In case you've missed it, we have migrated to our new website, with a brand new forum. For more details about the migration you can read our blog post for website migration. This is an archived forum. ⚠

  •     

profile picture

how to integrate GROCERYCRUD with tcpdf to generate qrcode



azsuman
  • profile picture
  • Member

Posted 15 January 2013 - 18:20 PM

Hi,

I want to use TCPDF to create QRCODE in PDF file which data is based on the selected field of the database table. Pls help me to get rid off this problem?

Regards,
Suman

victor
  • profile picture
  • Member

Posted 15 January 2013 - 18:55 PM

Hello Suman and welcome to the forum. You can use the 'add_action' and integrate it with your code.

azsuman
  • profile picture
  • Member

Posted 17 January 2013 - 13:50 PM

Dear Victor, First of I like to thank you for your such congenial reply, and I am newbie on PHP and CodeIgniter Could you pls give me some clue to start the work.

Thx, Suman

azsuman
  • profile picture
  • Member

Posted 18 January 2013 - 06:45 AM

Is anybody here can help me to get rid of this problem?

victor
  • profile picture
  • Member

Posted 18 January 2013 - 06:58 AM

explain it in more details. show a table structure.

azsuman
  • profile picture
  • Member

Posted 19 January 2013 - 18:30 PM

Victor Thank you for your such nice cooperation.

I want to generate QR Codes in a PDF file which data will be based on selected field of GROCERYCRUD table. And, to generate the QR code in PDF file, I like to use TCPDF. But If you have any other preference pls let me know.

I have used the following codes;


function index()
{
$this->_example_output((object)array('output' => '' , 'js_files' => array() , 'css_files' => array()));

}


function products_management()
{
$crud = new grocery_CRUD();

$crud->set_table('items');
$crud->set_subject('items');
$crud->callback_column('buyPrice',array($this,'valueToEuro'));

$output = $crud->render();

$this->_example_output($output);
}

function valueToEuro($value, $row)
{
return $value.' €';
}


And, Victor I'm very much new on PHP and CodeIgniter framework.

Now, i got bog-down how to integrate TCPDF with CodeIgniter framework and use the GROCERYCRUD table's selected data to generate the QR CODE?

Pls help me brother.

And, My CRUD table's image is given as attachment, If u need any further information, pls just write me.

Thank You,
Suman.

victor
  • profile picture
  • Member

Posted 19 January 2013 - 18:41 PM

Do you know how to make it without GC?

azsuman
  • profile picture
  • Member

Posted 19 January 2013 - 18:49 PM

Sorry for my English. However, Answer is No.

victor
  • profile picture
  • Member

Posted 19 January 2013 - 18:59 PM

What data do you want to convert in QR code?
All fields from one row? Or some fields?

azsuman
  • profile picture
  • Member

Posted 19 January 2013 - 19:32 PM

only some selective fields such as
MetrodeskVoucher
CategoryName
InvoiceNumber
ItemName
ItemVendor
VendorPhone
VendorEmail
PurchaseDate

goFrendiAsgard
  • profile picture
  • Member

Posted 20 January 2013 - 15:26 PM

Never try it by myself, but I think you can integrate http://phpqrcode.sourceforge.net/ as CodeIgniter library (put them in application/libraries) and follow the guide

victor
  • profile picture
  • Member

Posted 20 January 2013 - 15:29 PM

You can save QR code as image file and then create a pdf file from the image.

azsuman
  • profile picture
  • Member

Posted 21 January 2013 - 18:39 PM

Thx all of u guys.

fsdfsdfg
  • profile picture
  • Member

Posted 09 April 2013 - 04:35 AM

Share a good barcode generator site with you all. I only used their C# QR Code barcode generator library. It's good to use. It provides detailed tutorial of C# barcode image settings. Many other barcode generators can also be found there.


xmlld
  • profile picture
  • Member

Posted 18 June 2013 - 09:49 AM

hi there, quick searching on Google brings me here.and Im working on QR code generating,does grocery provide any source codes written in .Net? If yes ,Plz give me some detail guide,thx in adv.as a beginner in image programming ,I just can't figure out which open source code is best suiting me, like barcode generating sdk and its QR code creating component found by Google .Any suggestion is appreciated.


victor
  • profile picture
  • Member

Posted 20 June 2013 - 00:06 AM

I think you got the wrong address...