O
ool
Hello,
How can I get physical margins of printer??
When I do it in this way :
public void pd_PrintPage(object sender, PrintPageEventArgs ev)
{
...
iLeftMargin = ev.MarginBounds.X ; // is always 100 = 1inch
iPageWidth = ev.MarginBounds.Width // is always 2 inches smaler than
ev.PageBounds.Width
}
I would like get the same values which I get using GetDeviceCaps(hdc,
PHYSICALOFFSETY); in Visual C++
Thomas
How can I get physical margins of printer??
When I do it in this way :
public void pd_PrintPage(object sender, PrintPageEventArgs ev)
{
...
iLeftMargin = ev.MarginBounds.X ; // is always 100 = 1inch
iPageWidth = ev.MarginBounds.Width // is always 2 inches smaler than
ev.PageBounds.Width
}
I would like get the same values which I get using GetDeviceCaps(hdc,
PHYSICALOFFSETY); in Visual C++
Thomas