Question about request form

uri84uri84 Member Posts: 30
Hi,

i'm doing a report where i have two random variables to generate passwords and print on default system printer.

i don't save this variables in any table of the Navision because i use it to run a shell command etc... etc...


but i have a problem, i have to do a request form to allow the user select between three options, but how can say to the request form of the report that in the trigger ON PUSH of this buttons, start to print in my printer?

is possible?

thanks!

Comments

  • sendit2jasonsendit2jason Member Posts: 23
    Your issue is a little vague and strange. However, thinking outside of the box, perhaps you could call the same Report Object again, set the variables, and print?

    eg.

    CLEAR(MyReport);
    MyReport.SetMyVariables(?,?,?); //You need to create a function that stores these as Global Variables
    MyReport.SETTABLEVIEW(YourRec); //Optional
    MyReport.USEREQUESTFORM := FALSE;
    MyReport.RUN;
    CurrReport.QUIT; //Quit this report which call the same report above as the job is done
    Jason Bradley
    Working with NAV since 2001

    “Knowledge speaks, but wisdom listens” - Jimi Hendrix
  • udayrmerudayrmer Member Posts: 171
    Use SystemPrinter TRUE While running, and in control panel check your printer as default printer.
    Uday Mer | MS Dynamics NAV Techno-Functional Consultant
Sign In or Register to comment.