Can I edit the header and footer of a ShowRibbonPrintPreview?

1

I am sending to print a GridView with the method .ShowRibbonPrintPreview , I can make the information of the header and footer of page be assigned by means of code, Example.

string nomEmpresa = "Este es el nombre de la empresa";

Then I do not know how to assign this variable to what would be the title of ShowRibbonPrintPreview .

Thank you.

    
asked by avargasma 05.04.2016 в 23:13
source

1 answer

0
        GridViewComprobantes2.OptionsPrint.RtfReportHeader = "NOmbre empresa";
        GridViewComprobantes2.OptionsPrint.RtfPageHeader = LblTitulo.Text;
        GridViewComprobantes2.OptionsPrint.AutoWidth = true;

        GridViewComprobantes2.ShowRibbonPrintPreview();
    
answered by 04.05.2016 в 16:49