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

End User Problem Saving Report to File

edited April 2003 in End User
I am using D5 with RB 6.03.

I have an end user report that, for some reason, will not save to file. It
is specific to this report. All other actions for this report work
correctly.

I traced it into TppTemplate.ShowFileSaveDialog function. It gets to the
statement: "if lSaveDlg.Execute then". This returns false without showing
the TSaveDialog.

Do you have any ideas what may be causing this?

Thanks in advance.

Comments

  • edited April 2003
    Any custom components in this report? Are you performing any actions in the
    Report.Template.OnSaveStart event handler that would cause a problem? Can
    you reproduce this problem using our out-of-the-box end user demos?


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited April 2003
    There aren't any custom components on the report. I am not performing any
    actions in the OnSaveStart event. Unforetunatly this is the only report out
    of hundreds that is causing this problem.

    I removed all the controls and queries off the report and the problem still
    exists. Also I forgot to mention that the Load From File option does nothing
    as well.

    Here is the contents of the TEMPLATE field (if it can help)
    "0x54504630095470705265706F72740870705265706F72740B5061737353657474696E67070
    9707354776F50617373145072696E74657253657475702E42696E4E616D65060744656661756
    C74195072696E74657253657475702E446F63756D656E744E616D6506065265706F727416507
    2696E74657253657475702E506170"

    It is weird that it only occurs on this report.

  • edited April 2003
    The only things I can think of that could affect this is that you should try
    setting Report.SaveAsTemplate = False and check that
    Designer.AllowSaveToFile = True. If you create a new report with your app,
    can you reproduce the problem or it is only with this report? Are you trying
    to save from the runtime designer's Save To File menu option or are you
    doing this in code?


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited April 2003
    Our settings are the same (SaveAsTemplate = False and AllowSaveToFile =
    True). This problem only occurs on this one report. I am using the Save to
    File from the menu. The Load from File does not work either. All other
    reports seem to work.

  • edited April 2003
    If you create a new version of this report from scratch, then can you
    reproduce the problem? At which point when you are constructing the report
    layout configuration does the report not begin working?

    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited April 2003
    I will give that a try.

This discussion has been closed.