how can i print only the currently selected line including its hierarchy ?
so not all lines of the grid dgvOrder but only a certain one !
my code
GridPrintStyle style = new GridPrintStyle {
PrintHierarchy = true
};
this.dgvOrder.PrintStyle = style;
RadPrintDocument document = new RadPrintDocument {
HeaderHeight = 50,
HeaderFont = new Font("Arial", 16),
Logo = Image.FromFile(@"Logo.png"),
LeftHeader = "[Logo]",
MiddleHeader = "",
RightHeader = $"{Param.PrintProtocol.Order}\r\n{Param.PrintProtocol.Client}",
ReverseHeaderOnEvenPages = true,
FooterHeight = 55,
FooterFont = new Font("Arial", 12),
LeftFooter = $"Island: {Param.PrintProtocol.OperationIslandNo}\r\nKS: {Param.PrintProtocol.OperationCostCenter}\r\nOperation: {Param.PrintProtocol.Operation}",
MiddleFooter = $"\r\n \r\n[Page #] / [Total Pages]",
RightFooter = $"\r\n \r\nProtocol: {Param.PrintProtocol.OperationProtocolType}",
ReverseFooterOnEvenPages = true,
AssociatedObject = dgvOrder
};
RadPrintPreviewDialog dialog = new RadPrintPreviewDialog(document);
dialog.ShowDialog();
thanks !!
so not all lines of the grid dgvOrder but only a certain one !
my code
GridPrintStyle style = new GridPrintStyle {
PrintHierarchy = true
};
this.dgvOrder.PrintStyle = style;
RadPrintDocument document = new RadPrintDocument {
HeaderHeight = 50,
HeaderFont = new Font("Arial", 16),
Logo = Image.FromFile(@"Logo.png"),
LeftHeader = "[Logo]",
MiddleHeader = "",
RightHeader = $"{Param.PrintProtocol.Order}\r\n{Param.PrintProtocol.Client}",
ReverseHeaderOnEvenPages = true,
FooterHeight = 55,
FooterFont = new Font("Arial", 12),
LeftFooter = $"Island: {Param.PrintProtocol.OperationIslandNo}\r\nKS: {Param.PrintProtocol.OperationCostCenter}\r\nOperation: {Param.PrintProtocol.Operation}",
MiddleFooter = $"\r\n \r\n[Page #] / [Total Pages]",
RightFooter = $"\r\n \r\nProtocol: {Param.PrintProtocol.OperationProtocolType}",
ReverseFooterOnEvenPages = true,
AssociatedObject = dgvOrder
};
RadPrintPreviewDialog dialog = new RadPrintPreviewDialog(document);
dialog.ShowDialog();
thanks !!