public void SendPdfReport()
{
    List<MercatorSqlParam> lp = new List<MercatorSqlParam>
    {
        new MercatorSqlParam("@DATE_1", new DateTime(DateTime.Today.Year, DateTime.Today.Month, 1)),
        new MercatorSqlParam("@DATE_2", DateTime.Today)
    };

    MercatorUi.Reporting.OutputDescriptorExport outputDescriptorExport = new MercatorUi.Reporting.OutputDescriptorExport(MercatorUi.Reporting.ExportReportEnum.PDF, null, MercatorUi.Reporting.ExportOpenAfterEnum.No) { ExportToBytes = true };

    Api.LastError = "";
    MercatorUi.Reporting.ReportingStatic.RunReportFromDocum("H2ZP118RW1", new List<MercatorUi.Reporting.OutputDescriptor> { outputDescriptorExport }, lp);
    if (outputDescriptorExport.FileContent == null)
    {
        MercatorUi.Globals.MercatorTasksToMain.Log("PDF genereren: " + (!string.IsNullOrEmpty(Api.LastError) ? Api.LastError : "onbekende fout"), isError: true);
    }
    else
    {
        IneoSmtp.Smtp mail = MercatorUi.Globals.MercatorTasksToMain.GetNewStmp();
        mail.Subject = "Klantenlijst";
        mail.Message = "Bijgevoegd is de klantenlijst.";
        mail.BytesAttachments = new Dictionary<string, byte[]> { { "Klantenlijst.pdf", outputDescriptorExport.FileContent } };
        if (!mail.SendMail())
            MercatorUi.Globals.MercatorTasksToMain.Log("Fout bij verzenden e-mail: " + mail.Error, isError: true);
        else
            MercatorUi.Globals.MercatorTasksToMain.Log("E-mail correct verzonden naar " + mail.Recipient);
    }
}