1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    5
    Vote Rating
    0
    endimion is on a distinguished road

      0  

    Default FPDF Usiing Extjs 3.2.1

    FPDF Usiing Extjs 3.2.1


    Halo Sir,,,
    Iwant toask again.please help meagain.
    how tocreatePDFreportsusingFPDFandextjs??
    andIwantthe PDFopen ina newbrowsertab...

    Thanx before,,

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,916
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    You basically send the info to FPDF (ajax call)
    generate the PDF and send it back to the browser (using FPDF on the server, PHP)
    Return the PDF
    The browser will open the PDF file automatically. (same as if you clicked on a PDF link)

    Regards,
    Scott.

  3. #3
    Sencha User
    Join Date
    Mar 2012
    Posts
    5
    Vote Rating
    0
    endimion is on a distinguished road

      0  

    Default


    Can U give me sample Sir...???

  4. #4
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    8,916
    Vote Rating
    443
    scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future scottmartin has a brilliant future

      0  

    Default


    Example of how to create the PDF, or how to call and return a PDF?

    TCPDF/FPDF have many online examples on how to create the PDF


    Code:
    Ext.Ajax.request({
        method: 'POST',
        url: 'print_report.php',
        params  : {
            report_name:   employee_report_name,
        },
        success: function(xhr) {
            // clear mask and display
            grid_panel.getEl().unmask();
            window.open('pdf/' + employee_report_name + '.pdf');
        },
        failure: function() {
            // clear mask
            grid_panel.getEl().unmask();
            alert('AJAX ERROR: Unable to print report, please contact support');
        }
    });
    
    // print_report.php; you code goes here to create PDF
    
    
    // last line ... close and output PDF document
    $pdf->Output('mypdfreport.pdf', 'I'); // I=inline
    Regards,
    Scott.

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi