Change Report Caption in Runtime?

groovergroover Member Posts: 31
Is it possible to change the caption of a report in runtime?
It seems that when printing a report (to file), the caption is used as report name. Instead of "Sales - Invoice", I would like the report name to be something like "Invoice_12345_customer_10000".
Printing to HTML is not an option because - by default:
- the layout is messed up completely
- the URL is included as a page footer.

Any suggestions?
BR,
Groover

Comments

  • ara3nara3n Member Posts: 9,256
    Hello you can use pdfcreator and you can set the filename you want to save it as in runtime.

    http://www.mibuso.com/forum/viewtopic.php?t=18331
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • groovergroover Member Posts: 31
    ... but for some reason PDFCreator is not working in my machine. Probably a bad configuration.
    I have built an alternative solution in the meantime, using a copy of the standard report 206 and Fineprint PDFFactory as PDFWriter:
    - change the name of the report in the Object table;
    - print the report to PDF as Invoice_2007050800.pdf;
    - change the name of the report.
    BR,
    Groover
  • ara3nara3n Member Posts: 9,256
    Yeah I did that for one our clients a while back. It's not a good solution, but workable.
    Ahmed Rashed Amini
    Independent Consultant/Developer


    blog: https://dynamicsuser.net/nav/b/ara3n
  • KlaasFeenstraKlaasFeenstra Member Posts: 35
    I solved the problem using Multilanguage. I added a language with one name, and changed the language in runtime.
Sign In or Register to comment.