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,635
    Vote Rating
    400
    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,635
    Vote Rating
    400
    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

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar