Hello.
Context : Windows Form, VB 2008.
I am printing a document using a PrintDocument and e.Graphics.
As some columns are narrow I would like to print their titles vertically,
like in Excel with a rotation of 90°. I guess it is something related to
Graphics.Rotate Transform and Graphics.Transl ateTransform but I do not
understand anything in the documentation.
Thank you for your help,
Gilbert 2 6510
On Sep 22, 5:26*pm, "Gilbert Tordeur" <gilbert.tord.. .@orange.fr>
wrote:
Hello.
Context : Windows Form, VB 2008.
I am printing a document using a PrintDocument and e.Graphics.
As some columns are narrow I would like to print their titles vertically,
like in Excel with a rotation of 90°. I guess it is something related to
Graphics.Rotate Transform and Graphics.Transl ateTransform but I do not
understand anything in the documentation.
Thank you for your help,
Gilbert
Check out these documentations on MSDN: http://msdn.microsoft.com/en-us/library/6a1d65f4.aspx http://msdn.microsoft.com/en-us/library/a0z3f662.aspx
HTH,
Onur Güzel
Thank you,
Gilbert
"kimiraikko nen" <ki************ *@gmail.coma écrit dans le message de news: 77************* *************** **...legroups .com...
On Sep 22, 5:26 pm, "Gilbert Tordeur" <gilbert.tord.. .@orange.fr>
wrote:
Hello.
Context : Windows Form, VB 2008.
I am printing a document using a PrintDocument and e.Graphics.
As some columns are narrow I would like to print their titles vertically,
like in Excel with a rotation of 90°. I guess it is something related to
Graphics.Rotate Transform and Graphics.Transl ateTransform but I do not
understand anything in the documentation.
Thank you for your help,
Gilbert
Check out these documentations on MSDN: http://msdn.microsoft.com/en-us/library/6a1d65f4.aspx http://msdn.microsoft.com/en-us/library/a0z3f662.aspx
HTH,
Onur Güzel This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Mullin Yu |
last post by:
I can create an image object with a string printed on it. But, how I can
rotate the whole image 270 degree clockwise
static public Bitmap createSerial()
{
Graphics objGraphics;
string strSerialNo = "20031124123456-1";
// Create a bitmap...
//System.Drawing.Bitmap imgBitmap = new Bitmap(200, 30,
|
by: Leo |
last post by:
I would like to rotate text and draw it starting from certain
location, say (10, 20). The problem for me is that it does rotate, but
it never draws the text from (10, 20). Will you please tell me where I
am wrong?
double trangent = Math.Atan2(ptTo.Y - ptFrom.Y, ptTo.X - ptFrom.X);
float angle = (float)(trangent * (180/Math.PI));
SizeF...
|
by: Chris |
last post by:
Hi,
Is it possible to rotate a control on a form ? (e.g. Button, customcontrol)
thnx
Christian
|
by: Peter Proost |
last post by:
Hi group,
I got the following piece of code which draws a square with stars round it,
now I want the stars to rotate round the square, I can do this with the
mx.rotate and a timer and an angle, but this rotates the whole drawing of
the stars but what I realy want is for the stars to rotate round it's center
point, is this possible? I hope...
|
by: iwdu15 |
last post by:
hi, im trying to rotate a gdi drawn object on my form with a
keypress....forinstance when i push the down arrow, for it to rotate the
object drawn until the top is down, or if i push the right arrow key, to
rotate the object until its pointed to the right. i tried using a drawing
matrix to accomplish this, but all it did was rotate my entire...
| |
by: Eduard Witteveen |
last post by:
Hello list,
I have code the draw MyDrawingObject information on a
System.Drawing.Graphics object. The code is more/less the following:
I now want to rotate / mirror the object i draw.
I've looked at the System.Drawing.Drawing2D.Matrix, which can be applied
on the Transform property of the Graphics object, but it will work on
the...
|
by: Gina_Marano |
last post by:
Hey All,
Is it possible to draw an image upside down?
I am using Microsofts example of "Printing a local report without
preview".
The only trick is that I want to flip the image upside down.
Reason: I need to guarantee that I print a barcode in the exact same
|
by: =?Utf-8?B?dmlubw==?= |
last post by:
Hello,
I have created my proper control and i would to rotate it.
In the paint event of my object, i have written :
Dim graph As Graphics = myObject.CreateGraphics
myMatrix = New System.Drawing.Drawing2D.Matrix
myMatrix.Rotate(45, System.Drawing.Drawing2D.MatrixOrder.Append)
graph.Transform = myMatrix
but it don't work.
|
by: VicJ |
last post by:
I'm trying to make a control on which the user can freely drag an image with the mouse and zoom and rotate it with the mouse wheel. I'd like to do this as far as possible using graphics transforms. At the moment, I have the code below in the Paint event handler of a Windows Form. The variables PanOrigin (Point), ZoomFactor (Single, starting value...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language...
| |
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
|
by: jinu1996 |
last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |