• Printer wierdness (XP/2000)

    Author
    Topic
    #433567

    I’ve found some code a colleague wrote a couple of years ago.

    Basically it looks through a recordset, opening the report for a single record at at time and uses an attribute of the record to set part of the report caption.

    For each record, the report is opened in preview mode, its caption is set to be a path and file name (complete with file extension ‘.pdf’) and then it is printed using DoCmd.Printout. The report is then closed and the loop repeats.

    By using Jaws pdf as the default printer, correctly named pdfs are then created in the correct folders without any user intervention. This handy quirk didn’t work with any other pdf printers/writers.

    I though this would be useful for something I’m doing now, however, Access is behaving a little oddly.

    The report is being sent to a printer I don’t have on my system, even though its print settings are set to ‘use default printer’
    The printer appears to be one in a different office (where my colleague who is using the db works).

    Any ideas?

    Viewing 0 reply threads
    Author
    Replies
    • #1020203

      Try setting the report for a specific printer, then set it back to the default printer.
      If that doesn’t help, try changing your default printer in the Printers and Fax Devices control panel, then set it back to the original one.
      Sometimes actions like these help to restore things to normal.

    Viewing 0 reply threads
    Reply To: Printer wierdness (XP/2000)

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

    Your information: