OneNote 2007 Print Driver – 64 bit XPS2OneNote print driver updated


I wrote previously about a solution for printing to OneNote 2007 on 64 bit OSes that I created called XPS2OneNote.

I just released an update to that solution that:

  • Fixes a number of issues some people had on Windows 7 64 bit.
  • Enables the option to print to a single page, or print each page to a separate sub page (frequently requested).
  • More easily enables scaling the print outs to a custom size.

Note: this also works on Vista 64 bit and 32 bit Windows 7 or Vista.

Go to the codeplex site for XPS2OneNote to download it and install it. Please read the instructions for how to use it. You’ll need to restart your machine or manually start XPS2OneNote after installing it.

NOTE: this is not necessary for OneNote 2010 Beta. OneNote 2010 has full 64 bit support for the Send to OneNote 2010 print driver.


Comments (44)

  1. David Cornwell says:

    Thank you very much for the 64bit OneNote 2007 Print Driver update. Just what I was missing and just what I need.

    David

  2. swinney says:

    This is great thank you

  3. raanraan says:

    In your previous post you were planning to describe a hack for syncing custom tags between computers.  Did I miss that?  Would you provide a link?

    Also, is there a hack for adding icons to the pre-defined list?

    Thanks

  4. DavidRasmussen says:

    Raanrann,

    Re: syncing custom tags.

    This post has some relevant details. http://www.eggheadcafe.com/software/aspnet/30126495/tag-syncronization.aspx

    The tag settings are stored in a file called Preferences.dat

    You could use something like Live Mesh or another cross machine file syncing technology to sync the Preferences.dat file to the same path on both machines.

    Hope that helps.

  5. DavidRasmussen says:

    Raanrann,

    Re: syncing custom tags.

    This post has some relevant details. http://www.eggheadcafe.com/software/aspnet/30126495/tag-syncronization.aspx

    The tag settings are stored in a file called Preferences.dat

    You could use something like Live Mesh or another cross machine file syncing technology to sync the Preferences.dat file to the same path on both machines.

    Hope that helps.

  6. VBConst68 says:

    It works as advertised–thank you!

    I hope you guys get this squared away as a final release product.  OneNote has become my "Go to" application and this is v.important functionality.  

  7. DavidRasmussen says:

    VBConst68,

    Glad to hear it. Yes, we definitely have full 64 bit support for the Send to OneNote print driver in the upcoming OneNote 2010 release which is currently in beta. Works great. This solution is really intended for existing customers before we added that suport.

  8. GAW says:

    I installed the 64 bit XPS2OneNote print driver update and all works.  But the XPS file that is loaded into OneNote cannot be moved once it is on the page.  I was assuming it was going to be treated as a picture element that could be moved around.   Am I doing something wrong?

    Also, a blank page one seems to be added as well.

    Thanks for creating this work around and for taking the time to reply.

  9. Sam says:

    Oh, this has saved me! Thanks so much! GAW, I don't know if you figured out a solution to your problem, but I had a similar one and found a way to make it work. After you're into the OneNote page where your pdf has been pasted, select all pages of it and right-click. Deselect "Set picture as background" and (if you're like me and rely on the ability to search your pdfs in OneNote) select "Make text in image searchable." It should then behave just like you're used to pdfs behaving in OneNote.

  10. Des says:

    I'm using OneNote 2007 on a new Windows 7 machine.  I keep getting this error when I use the XPS2OneNote:

    "had an error in file change handler…The type initializer for 'XPSOneNote.OneNoteHelper' threw an exception."

    Not sure what this means, but the option to select the OneNote location does not pop up for me.  So files are stuck in XPS Print to OneNote folder.

    Please advise.

  11. Sarah says:

    I am having a similar problem as Des. I am on a new Windows 7 machine and I cannot get this to work.I have been able to get the files to the XPS print to OneNote folder, but not actually into OneNote. I would really appreciate some help!

  12. Dayve says:

    Hi David,

    Great print utility! I have just one request. I'd like to be able to specify the page (indeed the insertion point on a specific page) to insert the printout. Your method only allows me to specify a section. The problem is, that a multipage pdf document ends up in a new page within the specified section and I have to manually move each of the pdf's pages (after deselecting the 'set as background' for each page) to where I actually needed the printout. This is a lot of work, and wondered if it were possible to be more specific with the initial plavement and, perhaps, to have the option to set the printout as a background.

    Not meaning to sound ungrateful, as it's a great solution.

    Cheers,

    Dayve

  13. Sherry says:

    Just downloaded your program and it's not working.  When I select to print to XPS, the Save box pops up to Network > Mom-PC > Users Share and after navigating to the XPS Print to OneNote folder, I enter a name and click on Save and nothing happens.  I've tried this in both IE8 and Outlook 2007.

  14. Sherry says:

    Never mind.  It started working… Go figure.

  15. Ben says:

    Thanks! Worked great

  16. Josh says:

    Works awesome you just made school a whole lot easier for me, Thanks

  17. bloomer says:

    i am having problems with this.  once i save the file the next box does not come up.  i dont know how to fix it.

  18. Trek says:

    Thank you, David! You are a coding master and I hope you continue your work and attitude!  This was exactly what I have been looking for!  Also, I saw a comment from you mentioned that you were not sure if it would work on the 64-bit version of Windows 7 OS.  I can now assure you that it does.  Thank you again for being as good as you are! :)

  19. Mark says:

    I'm running Office 2007 on a Win7 64bit O/S. I tried installing your XPS2OneNote, and for sending to OneNote I suppose it's fine — assuming that's ALL I ever do.  However, now EVERY TIME I try to print from an Office app (or Adobe or any other app), even to a hardwired printer, it forces me to print to a file!  I tried uninstalling XPS2OneNote, and even rolled back to a System Restore point prior to that installation, but I still am forced to print to a file! I don't want to uninstall/reinstall Office (and don't think that's remedy the situation anyway since it's occuring in non-Office apps). Help! Thank you.

  20. Mark says:

    I'm running Office 2007 on a Win7 64bit O/S. I tried installing your XPS2OneNote, and for sending to OneNote I suppose it's fine — assuming that's ALL I ever do.  However, now EVERY TIME I try to print from an Office app (or Adobe or any other app), even to a hardwired printer, it forces me to print to a file!  I tried uninstalling XPS2OneNote, and even rolled back to a System Restore point prior to that installation, but I still am forced to print to a file! I don't want to uninstall/reinstall Office (and don't think that's remedy the situation anyway since it's occuring in non-Office apps). Help! Thank you.

  21. Crossword says:

    I'm running Office 2007 on a Win7 64bit O/S. I tried installing your XPS2OneNote, and for sending to OneNote I suppose it's fine — assuming that's ALL I ever do.  However, now EVERY TIME I try to print from an Office app (or Adobe or any other app), even to a hardwired printer, it forces me to print to a file!  I tried uninstalling XPS2OneNote, and even rolled back to a System Restore point prior to that installation, but I still am forced to print to a file! I don't want to uninstall/reinstall Office (and don't think that's remedy the situation anyway since it's occuring in non-Office apps). Help! Thank you.

  22. DavidRasmussen says:

    Mark/Crossword. This probably means that you somehow managed to set the XPS Print Driver as the default printer for your machine. If you go to the Printers control panel in Windows you can set your preferred printer as the default printer.

  23. Matt says:

    Thanks! This is a great fix. I was worried that I wouldn't be able to put printouts in my notes since most of my teachers use powerpoints. This is dead useful.

  24. Bill says:

    I just loaded your Onenote Print Driver for Windows 64 Bit OS, it is great. Now I can print to Onenote, thank you.

  25. Debbie says:

    I have OneNote at home and it works perfect.  But at work I have the windows 7 and it won't print either. I have read thru your instructions but keep getting stuck at the instructions that say:  Printing: 3. Choose the destination section next the following dialog will come up (sorry, not very pretty is it…) asking which of your OneNote sections you'd like the print out sent to. Choose one and click "Insert Printout in OneNote".  I can't get this to come up, and I can't insert a page into OneNote so I am totally stuck.  I have saved an .xps file as directed but that is as far as I can get.  What am I missing?

  26. Alisha says:

    Hi,

    I installed your OneNote 2007 Print Driver but I cannot get it to work properly.  Everything works until I save the file as an XPS in the drop folder.  Instead of the next screen appearing, I get an error message that says:

    had an error in file change handler…The type initializer for 'XPS2OneNote.OneNoteHelper' threw and exception.

    What should I do to fix this?

  27. SvenskaLee says:

    Easy to install … thank you so much !

  28. Jon says:

    I too am having the same problem as debbie.  I can seem to get step 3 to pop up after saving the xps file on my desktop.  I tried it four times now and have 4 different XPS files on my desktop how do I get the "Print to OneNote" box in step 3 to pop up.  Am I doing something wrong?

  29. I have this error says:

    See the end of this message for details on invoking

    just-in-time (JIT) debugging instead of this dialog box.

    ************** Exception Text **************

    System.Runtime.InteropServices.COMException (0x8004200B): Exception from HRESULT: 0x8004200B

      at Microsoft.Office.Interop.OneNote.ApplicationClass.CreateNewPage(String bstrSectionID, String& pbstrPageID, NewPageStyle npsNewPageStyle)

      at XPS2OneNote.ONPage.AppendToSection(String sectionID, Application oneApp)

      at XPS2OneNote.OneNoteHelper.InsertXPSPagesInSection(String xpsFilePath, String sectionID, Double scalePercent, ProgressDelegate reportProgress, Boolean printToSinglePage)

      at XPS2OneNote.PrintForm.insertXPSButton_Click(Object sender, EventArgs e)

      at System.Windows.Forms.Control.OnClick(EventArgs e)

      at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)

      at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)

      at System.Windows.Forms.Control.WndProc(Message& m)

      at System.Windows.Forms.ButtonBase.WndProc(Message& m)

      at System.Windows.Forms.Button.WndProc(Message& m)

      at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)

      at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

    ************** Loaded Assemblies **************

    mscorlib

       Assembly Version: 2.0.0.0

       Win32 Version: 2.0.50727.4952 (win7RTMGDR.050727-4900)

       CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v2.0.50727/mscorlib.dll

    —————————————-

    XPS2OneNote

       Assembly Version: 1.1.3617.20372

       Win32 Version: 1.1.3617.20372

       CodeBase: file:///C:/Program%20Files%20(x86)/CodePlex/XPS2OneNote/XPS2OneNote.exe

    —————————————-

    System.Windows.Forms

       Assembly Version: 2.0.0.0

       Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

       CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll

    —————————————-

    System

       Assembly Version: 2.0.0.0

       Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

       CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll

    —————————————-

    System.Drawing

       Assembly Version: 2.0.0.0

       Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

       CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll

    —————————————-

    System.Configuration

       Assembly Version: 2.0.0.0

       Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

       CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Configuration/2.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll

    —————————————-

    System.Xml

       Assembly Version: 2.0.0.0

       Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

       CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml/2.0.0.0__b77a5c561934e089/System.Xml.dll

    —————————————-

    System.Core

       Assembly Version: 3.5.0.0

       Win32 Version: 3.5.30729.4926 built by: NetFXw7

       CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Core/3.5.0.0__b77a5c561934e089/System.Core.dll

    —————————————-

    Microsoft.Office.Interop.OneNote

       Assembly Version: 12.0.0.0

       Win32 Version: 14.0.4763.1000

       CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Microsoft.Office.Interop.OneNote/12.0.0.0__71e9bce111e9429c/Microsoft.Office.Interop.OneNote.dll

    —————————————-

    System.Xml.Linq

       Assembly Version: 3.5.0.0

       Win32 Version: 3.5.30729.4926 built by: NetFXw7

       CodeBase: file:///C:/Windows/assembly/GAC_MSIL/System.Xml.Linq/3.5.0.0__b77a5c561934e089/System.Xml.Linq.dll

    —————————————-

    Accessibility

       Assembly Version: 2.0.0.0

       Win32 Version: 2.0.50727.4927 (NetFXspW7.050727-4900)

       CodeBase: file:///C:/Windows/assembly/GAC_MSIL/Accessibility/2.0.0.0__b03f5f7f11d50a3a/Accessibility.dll

    —————————————-

    ReachFramework

       Assembly Version: 3.0.0.0

       Win32 Version: 3.0.6920.4902 built by: NetFXw7

       CodeBase: file:///C:/Windows/assembly/GAC_MSIL/ReachFramework/3.0.0.0__31bf3856ad364e35/ReachFramework.dll

    —————————————-

    PresentationFramework

       Assembly Version: 3.0.0.0

       Win32 Version: 3.0.6920.5001 built by: Win7RTMGDR

       CodeBase: file:///C:/Windows/assembly/GAC_MSIL/PresentationFramework/3.0.0.0__31bf3856ad364e35/PresentationFramework.dll

    —————————————-

    WindowsBase

       Assembly Version: 3.0.0.0

       Win32 Version: 3.0.6920.5001 built by: Win7RTMGDR

       CodeBase: file:///C:/Windows/assembly/GAC_MSIL/WindowsBase/3.0.0.0__31bf3856ad364e35/WindowsBase.dll

    —————————————-

    PresentationCore

       Assembly Version: 3.0.0.0

       Win32 Version: 3.0.6920.5001 built by: Win7RTMGDR

       CodeBase: file:///C:/Windows/assembly/GAC_64/PresentationCore/3.0.0.0__31bf3856ad364e35/PresentationCore.dll

    —————————————-

    ************** JIT Debugging **************

    To enable just-in-time (JIT) debugging, the .config file for this

    application or computer (machine.config) must have the

    jitDebugging value set in the system.windows.forms section.

    The application must also be compiled with debugging

    enabled.

    For example:

    <configuration>

       <system.windows.forms jitDebugging="true" />

    </configuration>

    When JIT debugging is enabled, any unhandled exception

    will be sent to the JIT debugger registered on the computer

    rather than be handled by this dialog box.

  30. Paella says:

    Works fine for me, great job David! Thanks very much

  31. Amanda says:

    This is pretty awesome!

    Undoubtedly, it is not as great as the 'built-in' send to onenote, but way waaaaaaaaaaaay better than none at all!!

  32. Laura says:

    Thank you, Thank you,Thank you,Thank you, Thank you a million times thank you

  33. mark says:

    This is a great piece of code. ….. Simple and effective!!

    works out of the box first time as expected…. now I can simply get back to work!!

  34. Lara says:

    Thanks,  I love this feature in OneNote.  Am glad someone created a simple solution that works.  It not what I'm used to, but I'm glad to have something.

  35. Seth S says:

    Hi, I just downloaded and am running XPStoOneNote and had a quick question.  When the software inserts the print out into OneNote, it doesn't seem to do so as an object that I can interact with.  I can't click, drag, resize, or cut/paste.  Am I doing something wrong or is this the way that the software works?  Thanks in advance!  I'm glad to have a 64 bit printer for OneNote!

    Seth

  36. PATTI says:

    AMAZING STUFF THIS. ONLY DOWNSIDE IS THE FIX YOU CREATED SHOULD BE EASIER TO FIND.

    MANY THANKS!!

  37. Justin says:

    AHHHHHH……. THIS ISN'T WORKING FOR ME HELP  ME….. i get to save as the xps file but nothing comes up after that… why does nothing come up after that. ive deleted and restarted the program countless time and the only thing it does for me is make a useless folder. ahhhhhhh

    help plz

  38. utestit says:

    same bug as debbie, jon and "I have this error" above.

    (bug in HRESULT:0x8004201E)

    Would be great if a solution could be provided !

    Thanks…

  39. utestit says:

    forgot to mention, I'm running :

    . Win 7

    . 64 bits

    . OneNote & Outlook 2007

    Thanks !

  40. Charlie Z says:

    This runs fine but creates in OneNote a picture of the text from Word. It's not editable, sadly. However, if you select the picture and right click, you have the choice of copying text from within the picture. This can then be pasted and edited. Sort of OCR-like. Unfortunately, some but not all of the formatting is lost, so some editing and rearrangement will be necessary. This does not work with pictures inside the inserted file.

    How about making the OneNote insertion text and not picture? Better, give me a choice of pix and/or editable text. Maybe use RTF?

    System: Win 7, Office 2007, OneNote 2007, Outlook 2007, 64bit quad CPU

    Thanks for this utility, But cut and paste will work quicker and better for text.

  41. Linh says:

    Greatly appreciate this patch that you have coded!  I got a new Surface Pro but didn't upgrade my Office yet so still running 2007 version and ran into this problem.  Good work!!

  42. Glenn says:

    Does this work on Windows 8.1?  I have Onenote 2013 32-bit and I am running Windows 8.1 (64-bit).  I have a brand new HP Revolve G2, so I don't think my equipment is the problem.  Note that I don't have the 64-bit Onenote due to some compatibility issues in my office.  

    I am finding when printing using the Print to OneNote driver (or dragging and dropping a file into Onenote), that some documents print in a poor quality, even though they look excellent in Adobe Acrobat (and I have tried printing with Sumatra, Windows Reader and pdfannotator into Onenote and they are all poor quality on some, but not all, files).  The old xps2onenote was excellent at printing clearly and its scaling ability is great (I know of no other way to scale).  I installed the xps2onenote on my computer and rebooted.  I have the XPS Print to Onenote folder on my desktop and I can see an icon for the program indicating it is running in the background.  But sadly, the program doesn't seem to be working and no dialogue box is popping up to allow me to print the file and scale the printout.  Any suggestions?

  43. LaRae says:

    Hello David, I realize this is quite an old post, but I am having a problem with my OneNote, and am trying to get ANY version of print to onenote to work. Your program/workaround seems like a viable option if I can simply get it to specifically point to:

    "C:Program FilesMicrosoft Office 15rootoffice15ONENOTE.EXE"

    For some reason, no matter what I do, every workaround, driver, anything option, the print function wants to point to "C:Program Files (x86)Microsoft OfficeOffice14ONENOTE.EXE" (Note: Office14, not 15)

    Both of these versions are OneNote 2013. It is very strange, and I have no idea how there are 2 of them on this computer, but apparently, there are, and the incorrect mapping is driving me crazy. The Office14 version should not be active in any way, yet somehow everything is mapped to it.

    Anyhow, I have tried everything to figure out how to point drivers to the right version of OneNote on my system, and have had no success. If you could enlighten me on how to change the map, I would be most appreciative.

    Thank You for your time!

  44. happyuser says:

    thank you for your solution! :) it's great that you shared it!