We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

rotating text of column header

Thread ID:

Created:

Updated:

Platform:

Replies:

55896 Feb 6,2007 01:05 PM Mar 20,2007 12:38 AM Windows Forms 5
loading
Tags: PDF
Ben Tsai
Asked On February 6, 2007 01:05 PM

Hi,

I am writing to a pdf using the flow model. I am creating a table, and I want the text of the first row to be rotated.

My strategy for doing this is to AddParagraph() to the cells in that row, and then AppendCanvas for those paragraphs. Then, I am trying to AddText to that canvas, and rotating that text.

Generally, this is working. The problem is that when I use TextShape.Transform.Rotate, the origin appears to be absolute - it is set to somewhere in the upper left corner of the page. I have a screenshot of this.

What I am looking for is a way to change the point of rotation, or another way to accomplish what I am trying to do.

Thanks,
BenT

vertical-header.zip

Bhuvaneswari P [Syncfusion]
Replied On February 7, 2007 05:47 AM

Hi BenT,

Thanks for your detailed explanation.

I tried testing this issue with your specification, I was able to reproduce this issue. However you can work around this issue by changing the point of rotation by using the below code snippets:

canvas=table.Rows[0].Cells[0].AddParagraph().AppendCanvas(new SizeF( 100,100));

shape=canvas.AddText("Header1");

//This shape.Location property is used to change the point of rotation.

shape.Location = new PointF( 40, 20 );

shape.Transform.Rotate(10);

with this I have attached the sample for your reference:

Please let me know if you have any other questions.

Thanks for your interest in Syncfusion products.

Best Regards,
Bhuvaneswari



Sample-Rotation.zip

Ben Tsai
Replied On February 7, 2007 03:03 PM

Hi Bhuvaneswari,

Thanks for your example. I need one more thing to do what I want. Ultimately, I would like the rotated text to be at 270 degrees for each cell so that each cell contains text that reads vertically.

Currently, I can change the point of rotation, but I have to provide an absolute point. This point needs to be programmatically calculated for each cell, because the cells are not all at the same x-value. Does this make sense?

How can I accomplish this behavior?

Best regards,
BenT

>Hi BenT,

Thanks for your detailed explanation.

I tried testing this issue with your specification, I was able to reproduce this issue. However you can work around this issue by changing the point of rotation by using the below code snippets:

canvas=table.Rows[0].Cells[0].AddParagraph().AppendCanvas(new SizeF( 100,100));

shape=canvas.AddText("Header1");

//This shape.Location property is used to change the point of rotation.

shape.Location = new PointF( 40, 20 );

shape.Transform.Rotate(10);

with this I have attached the sample for your reference:

Please let me know if you have any other questions.

Thanks for your interest in Syncfusion products.

Best Regards,
Bhuvaneswari



Sample-Rotation.zip

Administrator [Syncfusion]
Replied On February 8, 2007 08:27 AM

Hi BenT,

The center point can be calculated only by using the X-value for each cell. In our current version,there are some problems in calculating the value since each cell has diff X-value.
I have logged a bug report with the development team and will get back to you within one week with the time frame as to when the bug fix will be available.

Thanks for your continued interest in Syncfusion products.

Best Regards,

Bhuvaneswari




Sample-Rotation0.zip

Administrator [Syncfusion]
Replied On February 14, 2007 11:40 PM

Hi BenT,

Thank you for your patience.

The fix for this issue will be available on March 20,2007.

Kindly let me know if you have any other questions.

Regards,
Bhuvaneswari

Sivasankari J [Syncfusion]
Replied On March 20, 2007 12:38 AM

Hi BenT,

Thank you for the patience.We have fixed the issue. Could you please open an incident in the direct trac with the forum id as the subject line, so that we can send you the patch that resolves the issue?

http://www.syncfusion.com/Support/DirectTrac/logon.aspx

Regards,
Sivasankari

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;