How to print a PLT file directly @ half size

Discuss and ask questions about CAD .NET library.

Moderators: SDS, support, admin

Post Reply
ezanagar
Posts: 10
Joined: 24 Sep 2008, 17:42

How to print a PLT file directly @ half size

Post by ezanagar » 30 Sep 2008, 18:49

I am able to use CADImport to open a PLT file, view and print it, this is no problem.

What my client also wants is to send the PLT file directly to the printer and print it. This is no problem either as most printers can directly print a PLT file. However, the client wants to also send a file directly to the printer at 50% size.

How can I print a PLT directly to the printer at 50% size by only selecting the printer name?

Thank you

Ertan Zanagar

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: How to print a PLT file directly @ half size

Post by support » 01 Oct 2008, 15:17

Dear Ertan Zanagar,

CAD Import .NET prints files using inner .NET means. It does not send PLT files directly to a printer. Could you please specify what exactly way you need to use for sending a half of a drawing to a printer: using .NET means or directly to a printer?

Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

ezanagar
Posts: 10
Joined: 24 Sep 2008, 17:42

Re: How to print a PLT file directly @ half size

Post by ezanagar » 21 Oct 2008, 20:18

Here is my problem.

cadImage.Stretch = false;
cadImage.BorderSize = 0;
cadImage.IsWithoutMargins = true;
cadImage.Draw(e.Graphics, printableArea);

Let's say I have an image that is 30x42 inches and I want to print this half size.

The printableArea is important. I do not want to change the printableArea at all. I may select a paper size of 8x11 and still want to print half the size of the image. What I need is to print this image on 8x11 @ half of its original size. The way it works above right now is the image gets scaled to printableArea.

I do not want it to scale at all. I thought if I set "Stretch=false" that would do it but no luck.

So my questions are:
1-) How do I scale the original image by half/quarter etc.
2-) How do I make it so that when I do a .Draw, the image does not stretch to the printableArea.

THanks

Ertan Zanagar

support
Posts: 3272
Joined: 30 Mar 2005, 11:36
Contact:

Re: How to print a PLT file directly @ half size

Post by support » 23 Oct 2008, 14:39

Dear Ertan Zanagar,
1-) How do I scale the original image by half/quarter etc.
We recommend to use the following line:

Code: Select all

this.ImageScale = this.ImageScale / 2;
2-) How do I make it so that when I do a .Draw, the image does not stretch to the printableArea.
Second parameter of

Code: Select all

public virtual void Draw(
   Graphics e,
   RectangleF Rect
);
defines a rectangular area withing CADImage to be drawn. This rectangle's sides ratio must be proportional to CADImage object's sides.

Sergey.
Technical Support E-mail: support@cadsofttools.com
Chat support on Skype: cadsofttools.support

Post Reply