We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Print Attachment to OneNote

Is it possible to print an attachment into OneNote?
I already tried setting the IsPrintout property for an attachment.
But it seems to have no effect.
The attachment is successfully added but I only see the icon (no printout).

Hi Joerg,


Thank you for being patient. Our product team has completed their analysis and they come to the conclusion that they won’t fix this issue. With this feature, it is not possible to avoid Microsoft OneNote installation, because to insert something as a printout because we need a specific printer to be installed (it can be “Send To OneNote 2013” or “Microsoft XPS Document Writer”, etc.). Our Aspose.Note APIs are independent of Microsoft OneNote installation. Since, we can’t rely on this installation.

As a workaround, please follow these steps:

  1. Print specific document to MS OneNote file using appropriate tool or System.Diagnostics.Process with “PrintTo” verb and “Send to OneNote YYYY” printer name.
  2. Open printed MS OneNote document with Aspose.Note.
  3. Get necessary printouts, place them in a new document and save.

For example, this sample code works to print text file content in the OneNote document:

[.NET, C#]
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.Verb = “PrintTo”;
startInfo.Arguments = “”" + “Send To OneNote 2013” + “”";
startInfo.FileName = @“C:\temp\text.txt”;

//try to keep Window hidden - work in background
startInfo.UseShellExecute = true;
startInfo.WindowStyle = ProcessWindowStyle.Hidden;
startInfo.CreateNoWindow = true;

Process.Start(startInfo);

We hope, this helps.