c# - Migradoc footer note skip first page -


all went until client said wants first page of pdf cover. means first page should have no margins, , next ones should. base class inherited export files had in it's constructor this:

public exportpdf() {     this.document = new document();     this.document.defaultpagesetup.orientation = orientation.portrait;      this.document.info.author = globalbl.administratorfullname;     this.document.footnotelocation = footnotelocation.bottomofpage;     this.document.footnotenumberstyle = footnotenumberstyle.arabic;     this.document.footnotestartingnumber = 1;      this.document.defaultpagesetup.pageformat = pageformat.a4;     this.document.defaultpagesetup.topmargin = "1cm";     this.document.defaultpagesetup.bottommargin = "2cm";     this.document.defaultpagesetup.leftmargin = "1cm";     this.document.defaultpagesetup.rightmargin = "1cm";     this.document.defaultpagesetup.headerdistance = "0cm";     this.document.defaultpagesetup.footerdistance = "0cm";     this.document.usecmykcolor = false;      definestyles();      this.section = this.document.addsection(); } 

i have noticed if comment footnote part, nothing changes, still foot note numbering. in format, pages margins. if take them out, cover looks perfect, rest of pages don't. there guess @ every exported item indent or something, don't know yet, maybe have idea on too...but 1 rid of page numberings, , more important, how can skip first page(the cover) being numbered? hope help. thanks

footnotes footnotes. presume not use footnotes in document.

header , footer different story. typically use footer add page numbers. presume that's do.

what in case: use 1 section cover page, , create new section rest of document (method addsection() of document class).

you should not change defaultpagesetup anyway. each section has it's own pagesetup, can set different margins cover page , rest of document.


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -