Message 1 of 20
Paper print pdf
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi,
Is it possible to make iLogic paper print my newly created PDF?
I have a code that does following:
- Create temp location and file name
- Save as PDF
- Paper print idw
- Delete temp PDF.
Can I somehow make it print the PDF, instead of the idw?
Part of the code:
'PDF GENERATOR
'-------------------
' Lots of code that's not really important for this issue
oDataMedium.FileName = oFolder & "\" & oFileName & _
"-" & oRevNum & ".pdf"
'Publish document
oPDFAddIn.SaveCopyAs(oDocument, oContext, oOptions, oDataMedium)
'PRINT PDF
'-------------------
'ThisDoc.Launch(oDataMedium.FileName)
Dim oDrawDoc As Document
oDrawDoc = ThisApplication.ActiveDocument
Dim oPrintMgr As PrintManager
oPrintMgr = oDrawDoc.PrintManager
Dim sMyPrinter As String
sMyPrinter = "\\kumerafil1\SHARP MX-4060V .1etg"
oPrintMgr.Printer = sMyPrinter
oPrintMgr.ColorMode = kPrintDefaultColorMode
oPrintMgr.Orientation = kLandscapeOrientation
oPrintMgr.Scalemode = kCustomScale
oPrintMgr.ScaleMode = PrintScaleModeEnum.kPrintBestFitScale
oPrintMgr.PaperSize = kPaperSizeA3 'A3 Size
oPrintMgr.SubmitPrint
'DELETE PDF AFTER 2000 MILLISECONDS
'-------------------
System.Threading.Thread.CurrentThread.Sleep(2000)
System.IO.File.Delete(oFolder & "\" & oFileName & _
"-" & oRevNum & ".pdf" )
Code works perfectly for what it says I tell it to do. I just want to add something like
PrintFile (oDataMedium.FileName)