# Printer Plug in Not working

**URL:** <https://forum.servoy.com/t/printer-plug-in-not-working/3910>\
**Category:** Classic Servoy\
**Created:** [March 21, 2005, 12:29am UTC](https://forum.servoy.com/t/printer-plug-in-not-working/3910 "2005-03-21T00:29:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![idoctor](https://avatars.discourse-cdn.com/v4/letter/i/a88e4f/32.png) [@idoctor](https://forum.servoy.com/u/idoctor)\
**Post date:** [March 21, 2005, 12:29am UTC](https://forum.servoy.com/t/printer-plug-in-not-working/3910/1 "2005-03-21T00:29:06Z")

</div>

This code works in 2.2beta3 but gives an error in 2.2rc3.

var tempFile = application.createTempFile(‘myPDF’,‘.pdf’);  
//print the current record (no printerSelectDialog) to the temporaryfile  
var success = controller.print(true,false,plugins.pdf\_output.getPDFPrinter(tempFile));

I have also let the designer of the plug in know.

John McCann
