Dynamics User Group
Dynamics User Group
  • Site
  • User
  • Site
  • Search
  • User
Dynamics 365 Business Central/NAV User Group
Dynamics 365 Business Central/NAV User Group
Dynamics NAV - Commercial Demos Tips: How to print page# n of m pages.
  • Forums
  • Blogs
  • Resources
  • Wikis
  • Events
  • Leaderboards
  • Members
  • Mentions
  • Tags
  • More
  • Cancel
  • New
Dynamics 365 Business Central/NAV User Group requires membership for participation - click to join (it's free)
  • Share
  • More
  • Cancel
Click here to join DUG to be able to comment or download files from this gallery.
Most recent files
  • Simplanova Report Converter

    • 2018-2-5
  • GDT Where Used PLUS

    • 2017-1-13
  • Universal Excel Import Export

    • 2015-12-30
  • PDF

    Pilot Project for BI4Dynamics - standardized business intelligence solution for Microsoft Dynamics NAV

    • 2015-10-4
  • PDF

    Microsoft Dynamics NAV - Today and Tomorrow

    • 2015-10-4
>
Recommended
Related Tags
  • Administration
  • ASP.NET
  • best practice
  • Collections
  • Contact
  • CSV-file
  • Customer
  • Deployment
  • Development Tools
  • Documentation
  • Dynamics NAV
  • FOB-file
  • Integration
  • License
  • MSMQ
  • NAV
  • Performance
  • POS
  • repository
  • Sales Quotation
  • TFS
  • Toolkit
  • Version Control
  • Version List
  • Workflow

Tips: How to print page# n of m pages.

This sample shows you how to create a Navision report that prints page# n of m pages.

Sample is originally uploaded to the old site by David Singleton.

Erik P. Ernst
Erik P. Ernst
  • 2006-5-29
  • 869 Downloads
  • 9,213 Views
  • Share
  • More
  • Cancel
Anonymous
  • Robert Gitonga
    Robert Gitonga over 7 years ago

    Thanks David and Timo

    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • David Singleton
    Offline David Singleton over 14 years ago
    Oh dear, no edit here, so sorry for the spelling... Read .. "Knocked up quickly"
    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • David Singleton
    Offline David Singleton over 14 years ago
    Actually Timo, this was just something I knowed up quyickly for a post that a user made on MBSOnline. IOts about 5 minutes work, just to show him where to get started. Erik just used it as a test for creating uploads on Community Server. If you want, feel welcome to down load this and upload your improved version here. Just make sure to give me credit for the original ;) .
    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
  • Timo Lässer
    Timo Lässer over 14 years ago
    There is a better way availible: e. g. in Report 205 in Trigger CopyLoop - OnAfterGetRecord() IF Number > 1 THEN CopyText := Text003; CurrReport.PAGENO := 1; // > TL4.01:01 >>> IF NOT BlockCountTotalPages THEN BEGIN SalesHeader2 := "Sales Header"; SalesHeader2.SETRECFILTER; repMySelf.SETTABLEVIEW(SalesHeader2); repMySelf.BlockCountingTotalPages; IF repMySelf.SAVEASHTML(DELCHR(ENVIRON('TEMP'),'>','\') + '\' + repMySelf.OBJECTID + '.html') THEN BEGIN TotalNoOfPages := repMySelf.GetTotalNoOfPages; CLEAR(repMySelf); ERASE(DELCHR(ENVIRON('TEMP'),'>','\') + '\' + repMySelf.OBJECTID + '.html'); END; END; // < TL4.01:01 <<< Therefore you need two new functions in that report: GetTotalNoOfPages() : Integer EXIT(CurrReport.PAGENO); BlockCountingTotalPages() BlockCountTotalPages := TRUE;
    • Cancel
    • Up 0 Down
    • Reply
    • More
    • Cancel
Related
  • Microsoft Dynamics 365 User Groups

  • Dynamics 365 Business Central
  • Dynamics 365 Customer Engagement
  • Dynamics 365 for Finance and Operations
  • Power Platform
  • Microsoft Dynamics User Groups

  • Dynamics AX
  • Dynamics CRM
  • Dynamics GP
  • Dynamics NAV
  • About
  • Contact us
  • Frequently asked questions
  • Terms of use
  • Privacy policy
Copyright 1995-2021 Dynamics User Group, all rights reserved.