2025-04-15 12:10:19 +02:00

67 lines
2.2 KiB
C#

using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections;
using ceTe.DynamicPDF;
using ceTe.DynamicPDF.Text;
using PDFGenerator.Presentation.Section.Tables;
using PDFGenerator.BusinessLayer.DataSection;
using PDFGenerator.BusinessLayer;
using ceTe.DynamicPDF.PageElements;
namespace PDFGenerator.Presentation.Section
{
public class S158 : ISezione
{
public S158()
{
//
// TODO: Add constructor logic here
//
}
#region ISezione Members
public void writeSezione(DataThread dataThread)
{
DocumentPDF document = dataThread.DocumentPDF;
DataSetS158 set = (DataSetS158)dataThread.Data.DatiSezione;
DatiTabella datitab = new DatiTabella();
datitab.table = set.Tables["Investimenti"];
//if (document.checkMargin(datitab.GetRowDim() * datitab.getNumRow() + 130))
//document.addPage();
document.setSezTitolo(dataThread.SezioneReport.Titolo);
document.setChapterHeader(dataThread.SezioneReport.TestoIntroduttivo, 0, 520, 8);
Tabella tab = new Tabella();
datitab.setY(document.getLastPos());
float x = document.getMargineLeft();
float y = document.getLastPos() + 10;
datitab.setHeader();
datitab.setCell(200, ceTe.DynamicPDF.TextAlign.Left, Globals.OpenTypeFontVerdana, false, 9);
datitab.setCell(104, ceTe.DynamicPDF.TextAlign.Right, Globals.OpenTypeFontVerdana, false, 9);
datitab.setCell(104, ceTe.DynamicPDF.TextAlign.Right, Globals.OpenTypeFontVerdana, false, 9);
datitab.setCell(104, ceTe.DynamicPDF.TextAlign.Right, Globals.OpenTypeFontVerdana, false, 9);
datitab.setX(x);
datitab.setY(y);
document.InsertTable(tab.getTabella(datitab));
//document.setLastPos(datitab.GetRowDim() * 6);
document.setLastPos(900);
}
#endregion
}
}