Windows 10: How to send custom-size EMF print jobs from WPF without using DEVMODE?

Discus and support How to send custom-size EMF print jobs from WPF without using DEVMODE? in Windows 10 Software and Apps to solve the problem; I’m working on a WPF desktop application that needs to print using a non-standard paper size to a USB-connected printer.I've confirmed that the... Discussion in 'Windows 10 Software and Apps' started by Tom Stevenson1, Mar 26, 2025.

  1. How to send custom-size EMF print jobs from WPF without using DEVMODE?


    I’m working on a WPF desktop application that needs to print using a non-standard paper size to a USB-connected printer.I've confirmed that the printer/driver supports the paper size by testing with a third-party application. That software appears to send an EMF-based spool file directly to the printer with the custom size embedded in the EMF metadata e.g., EMR_HEADER and EMR_SETWORLDTRANSFORM entries.They do not call SetPrinter or manipulate DEVMODE — all settings seem embedded within the EMF.What I'm looking to do:Render a WPF Canvas or DrawingVisual into an EMF file with the correct pag

    :)
     
    Tom Stevenson1, Mar 26, 2025
    #1
  2. Tom-Con Win User

    Windows print problem. Every Time! Printer prints job, but on PC it still says "Printing" and no additional job will print.

    This happens EVERY time.

    It happens on two different printers on two different networks (at home and at work)....so it is a WINDOWS problem, not a PRINTER problem.

    Send a job to the printer.

    It completes and prints JUST FINE. All is well.

    THEN==>>

    In the printer window for that printer, it continues to say "Printing" (forever!) even tho the job has successfully completed. If i highlight the job and "Delete" it, it says "Deleting"....forever. No other print job sent will print, as they are all blocked
    behind the job that has already successfully printed, and that cannot be manually deleted, either.

    So, EVERY TIME the queue must be manually cleared out. The only way i can print another job is a 3-step process

    • Go to Services, Stop print queue.
    • Go to PRINTERS folder, delete all files.
    • Go back to Services, and START print queue.

    After those three steps, I can print again...exactly one print job...then it happens the same again for that job. Obviously this is a complete hassle.

    I would like specific and definitive instructions not on how to now get WINDOWS to work "normally"...so that when a print job successfully prints and is done, the queue for that printer shows as empty, and so more print jobs can be sent.

    If this were a very intermittent occasional problem it might be tolerable. But it happens EVERY TIME with EVERY PRINTER.

    Help!
     
    Tom-Con, Mar 26, 2025
    #2
  3. Microsoft Print to PDF - custom paper sizes possible?

    Hi,

    We suggest that you try to set the paper size of the exact document first. You can create a custom page size before you proceed with
    Microsoft Print to PDF, it should auto-detect the paper size of the document.

    To set the paper size in Microsoft Office:

    • Click on the Page Layout/Page Design tab.
    • Click on Size, and then in the options available, click on
      More Paper Sizes...
    • Click on the drop-down arrow and scroll down to the last option which is
      Custom size
      . You will be able to customize your preferred paper size.
    • Once done, click on OK, and then proceed with Microsoft Print to PDF.

    Let us know how it goes.
     
    Patricia Yu, Mar 26, 2025
    #3
  4. ellary Win User

    How to send custom-size EMF print jobs from WPF without using DEVMODE?

    Print jobs stuck in print quese

    My wife recently changed from Chrome to Firefox on her laptop. Afterward the system would hang whenever she tried to print something. I looked and it seems that jobs get stuck in the print queue after printing. There was a test page and another job. I was able to cancel the other job but the test page won't cancel. Restarting the print spool service resulted in the test page printing but remaining in the queue in printing status.

    What should me next steps be?
     
    ellary, Mar 26, 2025
    #4
Thema:

How to send custom-size EMF print jobs from WPF without using DEVMODE?

Loading...
  1. How to send custom-size EMF print jobs from WPF without using DEVMODE? - Similar Threads - send custom size

  2. How to send custom-size EMF print jobs from WPF without using DEVMODE?

    in Windows 10 Gaming
    How to send custom-size EMF print jobs from WPF without using DEVMODE?: I’m working on a WPF desktop application that needs to print using a non-standard paper size to a USB-connected printer.I've confirmed that the printer/driver supports the paper size by testing with a third-party application. That software appears to send an EMF-based spool...
  3. How to send custom-size EMF print jobs from WPF without using DEVMODE?

    in Windows 10 Drivers and Hardware
    How to send custom-size EMF print jobs from WPF without using DEVMODE?: I’m working on a WPF desktop application that needs to print using a non-standard paper size to a USB-connected printer.I've confirmed that the printer/driver supports the paper size by testing with a third-party application. That software appears to send an EMF-based spool...
  4. How do I create a custom print size?

    in Windows 10 Gaming
    How do I create a custom print size?: I am trying to create a custom size option of half size, 8.5x5.5 or 140x279mm. I have watched and read several articles about this problem and have not been able to figure it out. I have a HP Envy x360 Laptop and a Canon G5020. I need to print this size for invitations. All...
  5. How do I create a custom print size?

    in Windows 10 Software and Apps
    How do I create a custom print size?: I am trying to create a custom size option of half size, 8.5x5.5 or 140x279mm. I have watched and read several articles about this problem and have not been able to figure it out. I have a HP Envy x360 Laptop and a Canon G5020. I need to print this size for invitations. All...
  6. Sending a single print job to multiple IP printers

    in Windows 10 Gaming
    Sending a single print job to multiple IP printers: Hi,I need some advice. This is related to a restaurant that uses citizens IP thermal printers. The point of sale system exits the job to a citzen printer that is installed in windows. The point of sale system can only send the print job to one IP printer, i want it to go to...
  7. Sending a single print job to multiple IP printers

    in Windows 10 Software and Apps
    Sending a single print job to multiple IP printers: Hi,I need some advice. This is related to a restaurant that uses citizens IP thermal printers. The point of sale system exits the job to a citzen printer that is installed in windows. The point of sale system can only send the print job to one IP printer, i want it to go to...
  8. Print job disappears from queue without printing after recent W10 updates

    in Windows 10 Drivers and Hardware
    Print job disappears from queue without printing after recent W10 updates: I am unable to print from an HP desktop to a wifi connected Office Jet Pro 8740 since installing the March updates. I can see the document word, excel, pdf, image or self test file in the queue briefly then the queue says printing and disappears without printing. I am able...
  9. Printing Custom Photo Size

    in Windows 10 Software and Apps
    Printing Custom Photo Size: How can you print photos of a custom size? I'm using a Canon Pro-100 printer and when i go to print a photo the only options available are full page, 8x10, 5x7, 4x6, 3.5x5 and 2x3. There is no option that i can find either within windows or the printer properties to add a...
  10. Print pictures custom size

    in Windows 10 Ask Insider
    Print pictures custom size: TL;DR, printing 2 pictures on 1 A4 works, but 2 pictures on 1 A3 does not. Company rents a PC, the cost of printing A3 color and A4 color is the same. Therefore to save cost, we used to print two images in A3 and cut it in half. I don't remember having this problem...