//----------------------------------------------------------------------------------------------------x /// <summary>Prints the specified number of lines.</summary> private void PrintLines(StaticContainer cont, String sLabel, Double rX, Double rAlignH, Double rY, Double rAlignV, Double rSize, Int32 iCount) { cont.AddCB_MM(rX, rY - rSize, new RepString(fontProp_Label, sLabel)); cont.AddCC_MM(rX, rY, new RepCircleMM(penProp_Symbol, 3)); for (Int32 i = 0; i < iCount; i++) { penProp_Line.color = aColor[i]; RepLine repLine = new RepLineMM(penProp_Line, rSize / 1.414, rSize / 1.414); repLine.RotateTransform(i * 30); cont.AddAlignedMM(rX, rAlignH, rY, rAlignV, repLine); } }
// public void VisualizzaWwwPDF(System.Web.UI.Page AspxPage, string sNomeFile){ // AspxPage.Response.Clear(); // AspxPage.Response.ContentType = "application/octet-stream"; // AspxPage.Response.AppendHeader("Content-Disposition", "attachment; filename=" + sNomeFile + "\""); // rpt.formatter.Create(rpt, AspxPage.Response.OutputStream); // AspxPage.Response.End(); // } public void AddLineaMM(double startX,double startY,double lenghtX,double lenghtY,double sizePen,Color colorLine){ Root.Reports.PenProp pp = new PenProp(rpt,sizePen,System.Drawing.Color.Black); pp.color = colorLine; RepLineMM rp = new RepLineMM(pp,lenghtX,lenghtY); rptPage.AddMM(startX,startY,rp); }