1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Vtiger CRM assistance and support

Discussion in 'PHP' started by cashing_in, Sep 21, 2011.

  1. #1
    I am trying to number the Quote/Invoice and Sales Order pdf page like 1/1, 2/1, 3/1 ....But can't.I am trying to do this with

    $pdf->Cell(0, 10, 'Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 1, false, 'R', 0, '', 0, false, 'T', 'M'); in the page
    vtiger/vtlib/Vtiger/pdf/inventory/contentviewer.php but it couldn't work.

    I have tried also this in
    vtiger/vtlib/vtiger/pdf/vtiewers/pagerviewer.php
    by these changes

    $displayFormat=$this->Cell(0, 10, 'Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages(), 1, false, 'R', 0, '', 0, false, 'T', 'M');
    if($this->model) {
    $displayFormat = $this->model->get('format', $displayFormat);
    }
    and in

    vtiger/include/inventoryPDFcontroller.php
    function buildPagerModel() {
    $footerModel = new Vtiger_PDF_Model();
    $footerModel->set('format',$displayFormat);
    return $footerModel;
    }


    Please help me, where I am going wrong in the codes.
     
    cashing_in, Sep 21, 2011 IP
  2. cashing_in

    cashing_in Peon

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I also tried this way too.
    I wrote code in vtigercrm\vtlib\Vtiger\PDF\inventory\FooterViewer.php



    $description='Page '.$this->getAliasNumPage().'/'.$this->getAliasNbPages();
    $pdf->MultiCell($footerFrame->w, $targetFooterHeight-$descriptionHeight, $description,0, 'L', 0, 1,
    $pdf->GetX(), $pdf->GetY());
    but still doesn't work
    Please Help me
     
    cashing_in, Sep 22, 2011 IP
  3. sarahk

    sarahk iTamer Staff

    Messages:
    28,999
    Likes Received:
    4,577
    Best Answers:
    124
    Trophy Points:
    665
    #3
    Have you tried the vtiger support forums?
     
    sarahk, Sep 25, 2011 IP
  4. cashing_in

    cashing_in Peon

    Messages:
    51
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yes but they are unable to provide any satisfactory solutions.
     
    cashing_in, Sep 29, 2011 IP