Set PrintOn Programatically c#

JasonColeyNZJasonColeyNZ New Zealand
edited 7:00AM in FastReport .NET
Does anyone know how to use the PrintOn and set this programmatically in c# script?

Cheers
Jason

Comments

  • JasonColeyNZJasonColeyNZ New Zealand
    edited 7:00AM
    it looks like it might be something like this, but this doesn't work...

    PageHeader1.PrintOn.Equals(new PrintOn[] {PrintOn.FirstPage, PrintOn.LastPage, PrintOn.OddPages, PrintOn.EvenPages, PrintOn.RepeatedBand, PrintOn.SinglePage});
  • JasonColeyNZJasonColeyNZ New Zealand
    edited 7:00AM
    I got it, after downloading the Class Refernence, noted its an Enum, so the | operator sorted it..

    xx.PrintOn = PrintOn.OddPages | PrintOn.EvenPages;

    Still would be nice if we had an op going though the forum and helping out users?

    Jason

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.