Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

PrintDocument for printing png?

$
0
0

Hi,

I have decided to use png and PriontDocument opposed to my earlier issues with using PDF and adobe.

I have a png file I wish to print to a printer. I havethe printer name and the file name.

Dimm_PrintDocumentAsNewPrintDocument


       

DimprintControlAsNewStandardPrintController


        m_PrintDocument.PrintController = printControl

        m_PrintDocument.DocumentName = vLocalFile

        m_PrintDocument.PrinterSettings.PrinterName = SPrinter

m_PrintDocument.Print()

Should this work...? it doesn't.  I also need to think about resizing the pngs so how would I include that bit. vLocalFile is "\\server\file.png"

SPrinter is something like "604" - which is a shared printer name.

All the examples I have seen have bits in for loading of forms and buttons..I am not using any forms so no buttons, text boxes , etc   - If I need to set variables I will do programmatically.

Regards


Viewing all articles
Browse latest Browse all 4410

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>