ExportPage.cs 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Text;
  4. using System.IO;
  5. namespace FastReport.Export
  6. {
  7. class ExportIEMPage
  8. {
  9. #region Private fields
  10. private float value;
  11. private bool landscape;
  12. private float width;
  13. private float height;
  14. private int rawPaperSize;
  15. private float leftMargin;
  16. private float topMargin;
  17. private float bottomMargin;
  18. private float rightMargin;
  19. private MemoryStream watermarkPictureStream;
  20. #endregion
  21. #region Public properties
  22. public MemoryStream WatermarkPictureStream
  23. {
  24. get { return watermarkPictureStream; }
  25. set { watermarkPictureStream = value; }
  26. }
  27. public float Value
  28. {
  29. get { return value; }
  30. set { this.value = value; }
  31. }
  32. public bool Landscape
  33. {
  34. get { return landscape; }
  35. set { landscape = value; }
  36. }
  37. public float Width
  38. {
  39. get { return width; }
  40. set { width = value; }
  41. }
  42. public float Height
  43. {
  44. get { return height; }
  45. set { height = value; }
  46. }
  47. public int RawPaperSize
  48. {
  49. get { return rawPaperSize; }
  50. set
  51. {
  52. if (value == 0)
  53. rawPaperSize = 9;
  54. else
  55. rawPaperSize = value;
  56. }
  57. }
  58. public float LeftMargin
  59. {
  60. get { return leftMargin; }
  61. set { leftMargin = value; }
  62. }
  63. public float RightMargin
  64. {
  65. get { return rightMargin; }
  66. set { rightMargin = value; }
  67. }
  68. public float TopMargin
  69. {
  70. get { return topMargin; }
  71. set { topMargin = value; }
  72. }
  73. public float BottomMargin
  74. {
  75. get { return bottomMargin; }
  76. set { bottomMargin = value; }
  77. }
  78. #endregion
  79. }
  80. }