• My dilema (2003 sp3)

    Author
    Topic
    #449981

    I have used Stephen Labens ReportToPDF function successfully many times, but only to create single files. This time I needed to loop through a list of report names (10). The strange thing is I always get the first file and then a message saying “Output To is not available now” and it hangs in the ReportToPDF function. If I step through the code once and then run it I get all 10, or if I step through once, stop the run and then trigger it again from the command button it prints all 10. But If I run from the button immediately after it fails again giving me only one report.

    Does this ring any bells?

    Viewing 1 reply thread
    Author
    Replies
    • #1104613

      I copied everything into a new database and ran the code successfully three times. I have not been able to do that in the recent past. I guess something had gotten corrupted.

      • #1104629

        Glad you got it to work. Post back if the problem returns.

    • #1104614

      I use that also, but I’ve never tried to print reports back-to-back before like that. I don’t know how the function assigns names for the intermediate .SNP file, but it almost sounds like it is using the same filename each time, and it hasn’t finished with the first report before the 2nd one starts.

    Viewing 1 reply thread
    Reply To: My dilema (2003 sp3)

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information: