Printer margins

Printer margins

Post by Thierry Wat » Wed, 18 Feb 1998 04:00:00



Hi,

I would like to know a way to find the margins of a printer using APIs
or something
else.

Thanks
    Thierry

/---------------------------------------------------------------\
| Waty Thierry                                                  |

| Web : http://www.geocities.com/ResearchTriangle/6311/         |
| Web : http://www.come.to/printpreview.com   |
|                                                               |
| Author of PrintPreview OLE Control for VB 3.0, VB 4.0, VB 5.0 |
|                                                               |
|                            \\\\|////                          |
|                            ( O   O )                          |
|                       ---oOOo--U--oOOo---                     |
| Have you ever danced with the devil by the pale moonlight!!!  |
\---------------------------------------------------------------/

 
 
 

Printer margins

Post by Holger Boskuge » Wed, 18 Feb 1998 04:00:00


Thierry Waty schrieb:

Quote:> Hi,

> I would like to know a way to find the margins of a printer using APIs
> or something
> else.

> Thanks
>     Thierry

Hi Thierry,

I think you can use the GetDeviceCaps (DLL) function, but I'm waiting
for a answer why I don't get the actual values. I the moment I get the
values from the main settings.

  vcard.vcf
< 1K Download

 
 
 

Printer margins

Post by Kane Sherloc » Thu, 19 Feb 1998 04:00:00


If you look here
http://support.microsoft.com/support/kb/articles/Q146/0/22.asp

It's an example of how to Set up Richtext box for WYSIWYG printing, In it
somewhere is what you want.


>Hi,

>I would like to know a way to find the margins of a printer using APIs
>or something
>else.

>Thanks
>    Thierry

>/---------------------------------------------------------------\
>| Waty Thierry                                                  |

>| Web : http://www.geocities.com/ResearchTriangle/6311/         |
>| Web : http://www.come.to/printpreview.com   |
>|                                                               |
>| Author of PrintPreview OLE Control for VB 3.0, VB 4.0, VB 5.0 |
>|                                                               |
>|                            \\\\|////                          |
>|                            ( O   O )                          |
>|                       ---oOOo--U--oOOo---                     |
>| Have you ever danced with the devil by the pale moonlight!!!  |
>\---------------------------------------------------------------/

 
 
 

1. Problems for setting printer margins

Hello
I have developped a VB application that sends a datareport to the printer.
My problem is that I want my report to be printed 6 millimeters from the top
physical border. But the printer capabilities sets the top margin not to be
less than 17 millimeters.
I tried VB functions like topmargin in datareport object, or currentY method
on Printer object, but nothing changes.
I saw examples with "escape" API, but I don't know the exact sequence for
setting the top margin.
Did anybody manage to overcome this physical limit ? Do you have any clue ?
Thanks in advance for your help.

JM

2. Monitors WHICH ONE TO BUY. Advice?

3. Printer margins

4. 3D Studio MAX Help Wanted

5. Printer margins set to minimum

6. Sirius & IntegratedVideo: NO WAY!

7. PM6 Margins and DeskWriter printers

8. font creation software

9. how to change Printer's margins?

10. How to get/set margins of a printer?

11. How can I reduce the margin -- set [lrtb]margin does not work

12. Large margin when margin set to zero

13. URGENT!!! I would like to know the left and the top margin of printer