Jump to content

Prajoss

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by Prajoss

  1. I only wanted to say, that your Comment at the end of the _PrintAbort function does not fit
  2. Thx for the welcome I've tested it and it works fine! (every return is returned like it should be returned ) Thanks you helped me a lot Edit: should be or?
  3. Hi Martin, I'm using your UDF for printing. But I have now the following problem: I'm printing an image on a page. The size of the image is variable and depending on the size I'm setting the Page Orientation to landscape oder portrait. But I'd like to know the Page size and the X/Y-Offset of the printer. The problem is, that I can't ask for this information if the _PrintStartPrint($DLL) is not set! Because, if I set _PrintStartPrint($DLL) then I can't change the Page Orientation. Is it possible to use _PrintStartPrint($DLL) and get the information, and then abort this printing job? Because, if I simply write _PrintEndPrint($DLL) then it sends an empty print job (thats ok since it is its function). Can I abort this empty printjob in the script or "load" the printer, so I can get my information? Here is my Code for this part: ;~ _PrintStartPrint($hp) $PageHeight = _PrintGetPageHeight($hp) $PageWidth = _PrintGetPageWidth($hp) $PageXoffset = _PrintGetXOffset($hp) $PageYoffset = _PrintGetYOffset($hp) ;~ _PrintEndPrint($hp) _PrintStartPrint($hp) $PrintImageWid = $ImageWid / ($dpi/2.54) * 100 If $PrintImageWid > 1900 Then If $PrintImageWid > 2770 Then $PrintImageWid = 2770 $PrintImageHt = $ImageHt / ($dpi/2.54) * 100 If $PrintImageHt > 1700 Then $PrintImageHt = 1700 $logo_x = 2500 _PrintPageOrientation($hp,0) Else $PrintImageHt = $ImageHt / ($dpi/2.54) * 100 If $PrintImageHt > 2770 Then $PrintImageHt = 2770 $logo_x = 1650 _PrintPageOrientation($hp,1) EndIf _PrintImage($hp, $CaptureFile, 100, 300, $PrintImageWid, $PrintImageHt) _PrintEndPrint($hp) _printDllClose($hp) I'm sorry for my bad english Thanks Prajoss
×
×
  • Create New...