ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Determine printer parameter ?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klausdoege

Germany
389 Posts

Posted - Sep 13 2018 :  18:06:43  Show Profile  Reply
Hi,
how can I determine the printer parameters for my own printdialog?
Or how can I extend the printdialog form of imageen.

Klaus
www.klausdoege.de

xequte

39141 Posts

Posted - Sep 13 2018 :  22:09:46  Show Profile  Reply
You can access Print Preview params via:

https://www.imageen.com/help/TImageEnIO.PrintPreviewParams.html


You can also customize the dialog in the OnShowDialog event:

https://www.imageen.com/help/TIEView.OnShowDialog.html

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Sep 14 2018 :  13:56:21  Show Profile  Reply
Hi Nigel,
I tested with the imageen printdemo. But the display of the print size is wrong. After printing, the edge is not 1cm but 1.5cm.
If I change the printer parameters, the display does not change in the dialog, the print size always stays the same?
12.54 x 9.059 is not the right size, in A4, the width in portrait format should be about 20cm.
Could you improve something here?
Or how can I customize it myself?



Klaus
www.klausdoege.de
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Sep 15 2018 :  07:47:19  Show Profile  Reply
Ok, I think the following values are ignored.
GetDeviceCaps (printer.handle, PHYSICALOFFSETX)
and
GetDeviceCaps (printer.handle, PHYSICALOFFSETY)
With Margin left = 0 and Margin right = 0, an edge remains in print.
This should be considered in the Margin field.
Margin left = 0 is not 0, because it remains the offsettx.

Klaus
www.klausdoege.de
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Sep 15 2018 :  13:24:06  Show Profile  Reply
I've now set the margins left and right to 0 Set the printer to frameless printing in setup.
Nevertheless, the demo in the preview shows an edge left and right. When printing, only a margin is printed on the left, but no margin should be printed. This works with another print program, here no print margin.
Can you check that?

Print result:


Klaus
www.klausdoege.de
Go to Top of Page

klausdoege

Germany
389 Posts

Posted - Sep 16 2018 :  03:00:07  Show Profile  Reply
sorry all is ok,
i have overlooked that the picture has a white border.
Forget my entry.
I'm starting to grow old :-)

Klaus
www.klausdoege.de
Go to Top of Page

xequte

39141 Posts

Posted - Sep 16 2018 :  04:10:28  Show Profile  Reply
No worries, thanks for advising us of this.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: