AVAX-software.com Forums: Print a single object - AVAX-software.com Forums

Jump to content

Page 1 of 1

Print a single object

#1 User is offline   hamipers Icon

  • Advanced Member
  • PipPipPip
  • Group: Members
  • Posts: 50
  • Joined: 06-May 05
  • Location:Ker
  • Interests:ASP.NET<br />C#.NET<br />MS SQL Server 2000<br />Delphi<br />.<br />.<br />.<br />Painting<br />Sculpture<br />Music<br />Thinking

Posted 06 June 2005 - 10:19 AM

Hi,

Before anything I would like to thank you for your upgrades in AVAX. They were great!
Today I noticed something while testing printing by AVAX. I chose an object. So the selection area was activated around it. Then I tried to print an area. But it just printed the originally selected object. It was actually something I was looking for. But I would like it to be so that I won't need to select after selecting an object. So when I select a single object and then click 'Print', It prints the selected object without need to select an area. How would i do this?

Thank you

#2 User is offline   Athanasios Gardos Icon

  • Administrator
  • Icon
  • Group: Admin
  • Posts: 333
  • Joined: 21-March 05
  • Gender:Male

Posted 06 June 2005 - 06:22 PM

Hi,

You can find the selected border with the function "GetBoundsSelectedItems".

Dim xMin As Single, yMin As Single, zMin As Single
Dim xMax As Single, yMax As Single, zMax As Single
If cAvax1.IsSelected = True Then
   Call cAvax1.GetBoundsSelectedItems(xMin, yMin, zMin, xMax, yMax, zMax)
   Call cAvax1.PrintToPrinter(Printer.DeviceName, epsA4, 10, xMin, yMin, xMax, yMax, True)
End If

Athanasios Gardos
Avax-Software.com

Page 1 of 1


Fast Reply

  

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users