Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Templates and File not found error

edited January 2004 in General
We have recently upgraded to version 7.03 of ReportBuilder. In version 6.x
we were able to leave the template FileName property blank without any
issues and set it later in code during runtime. In version 7.03 we receive
a file not found error. Why is this happening and is there a way around
this?

Comments

  • edited January 2004
    Hi Thomas,

    Are you calling Report.Template.LoadFromFile before a template file is
    defined? If so, be sure this is only being called once a template file has
    been defined. Also, you may need to check that the path names for the files
    you are trying to load are correct.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
  • edited January 2004
    The errorn is occurring during the create of the form in which the TppReport
    component is located. When the form is being created we do not know the
    report name so the property is blank.. This behavior worked in version 6.x
    as I stated earlier but does not work in version 7.
  • edited January 2004
    Hi Thomas,

    Be sure you do not have Report.SaveAsTemplate set to True. This could also
    cause the error.

    --
    Best Regards,

    Nico Cizik
    Digital Metaphors
    http://www.digital-metaphors.com
This discussion has been closed.