This Microsoft Windows and/or Microsoft Office bug (or Windows "Feature") drove me crazy for a bit of time - when I wanted to print a document or spreadsheet, I would choose Print, then select either "Microsoft Print to PDF" or "Microsoft XPS Document Writer" as my target printer, proceed with printing to a file, where I would be prompted for the filename and file-location (directory), and choose to "Save" the file, and, even though all indications were that printing was functioning correctly, no XPS or PDF file was created! Symptoms: Print to PDF or Print-to-XPS Fails Silently, with no PDF File Created or no XPS File Created, in Microsoft Windows or Microsoft Office But thanks.How to Fix: Microsoft Print to PDF and Microsoft XPS Document Writer Printer Not Producing Output File ![]() I am only looking for help with printing to XPS. So, I figure that a custom solution, similar to that of BullzipPDF, might exist. I can successfully print to XPS via 'Microsoft XPS Document Writer', but the print driver is not honoring the 'BypassSaveAs' and 'OutputFile' RegKeys. I am looking for assistance with porting any macro-printing solution towards the 'Microsoft XPS Document Writer' or other XPS print driver. My post and attached psuedo-code clearly stated this (or so I thought). However, another solution for BullzipPDF was located on the QlikView community, and I have that working. Presumably, this RegKey approach would work with numerous other PDF print drivers. Your sample is reflective of the 'QlikViewPDF' solution, where the RegKey for 'BypassSaveAs' and 'OutputFile' permit un-attended printing to PDF via the QlikViewPDF print driver. ![]() I am already capable of printing to PDF via the BullzipPDF print driver. However, my question pertains strictly to printing as XPS via either the 'Microsoft XPS Document Writer' print driver, or another XPS-based print driver. Thanks for your response and for sharing your sample qvw. I was wondering if anyone has any experience with printing to the standard 'Microsoft XPS Document Writer' print driver? Or, any other XPS print driver? I am guessing that a special approach is needed, such as the BullZipPDF example, which deviates from the typical Regkey method used for 'QlikViewPDF' Yes - I have the Requested-Module-Security as "System Access" and Current-Local-Security as "Allow System Access". dialog pops-up and it won't honor the pre-configured "OutputFile". The code works for me - it writes the Registry settings, and generates the report, but the printer driver Save-As. ![]() The sample for macro print to XPS is attached (psuedo-code "B"). WriteReg for "BypassSaveAs", "OutputFile".etc.) for the 'QlikViewPDF' printing, wherein the name fo the print-driver matches the RegKey and the. So, I am trying to implement a print macro that uses the RegKey examples that mostly populates the community (e.g. I'll admit, I'd never heard of XPS format, but lo' - I posses a print driver named 'Microsoft XPS Document Writer'. Now, I have been asked to port the printing solution to use an XPS format. Thanks to all whose prior contributions (which I exhaustively searched) led to this working on my Windows 7, 64-bit machine. Please see the sample (pseudo-code "A") attached. I am working on a Print solution in which we perform our own 'banding' in macro code, looping over certain values, then issue a PrintReport for each one.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |