Hi, I have a list of names from a database such as
Smith
Jones
Baker
Stocks
Chapman
Peters
I would like to display these names as the header of related data as follows
S J B S C P
m o a t h e
i n k o a t
t e e c p e
h s r k m r
s a s
n
or, as below, but each name rotated 90 degrees anti-clockwise. Much like
what you can do with a word table cell and it's text direction.
Smith Jones Baker Stocks Chapman Peters 3 4460
you need to do something like the following to rotate the text thru
90degrees
It should center the text vertically about x, y
StringFormatFlags sff = StringFormatFlags.DirectionVertical;
StringFormat vcFormat = new StringFormat(sff);
vcFormat.Alignment = StringAlignment.Center;
myGraphics.DrawString(text, font, brush, x, y, vcFormat);
Steve
On Fri, 11 Mar 2005 00:43:03 -0800, jez123456
<je*******@discussions.microsoft.com> wrote: Hi, I have a list of names from a database such as
Smith Jones Baker Stocks Chapman Peters
I would like to display these names as the header of related data as follows
S J B S C P m o a t h e i n k o a t t e e c p e h s r k m r s a s n
or, as below, but each name rotated 90 degrees anti-clockwise. Much like what you can do with a word table cell and it's text direction.
Smith Jones Baker Stocks Chapman Peters
The list is in a windows form as a datagrid, but I can't get the list to
display horizontally. Is this possible?
Thanks
"stephen bull" wrote: you need to do something like the following to rotate the text thru 90degrees It should center the text vertically about x, y StringFormatFlags sff = StringFormatFlags.DirectionVertical; StringFormat vcFormat = new StringFormat(sff);
vcFormat.Alignment = StringAlignment.Center;
myGraphics.DrawString(text, font, brush, x, y, vcFormat);
Steve On Fri, 11 Mar 2005 00:43:03 -0800, jez123456 <je*******@discussions.microsoft.com> wrote:
Hi, I have a list of names from a database such as
Smith Jones Baker Stocks Chapman Peters
I would like to display these names as the header of related data as follows
S J B S C P m o a t h e i n k o a t t e e c p e h s r k m r s a s n
or, as below, but each name rotated 90 degrees anti-clockwise. Much like what you can do with a word table cell and it's text direction.
Smith Jones Baker Stocks Chapman Peters
sorry I haven't used datagrids much. I can't help you on that.
On Fri, 11 Mar 2005 07:53:02 -0800, jez123456
<je*******@discussions.microsoft.com> wrote: The list is in a windows form as a datagrid, but I can't get the list to display horizontally. Is this possible?
Thanks
"stephen bull" wrote:
you need to do something like the following to rotate the text thru 90degrees It should center the text vertically about x, y StringFormatFlags sff = StringFormatFlags.DirectionVertical; StringFormat vcFormat = new StringFormat(sff);
vcFormat.Alignment = StringAlignment.Center;
myGraphics.DrawString(text, font, brush, x, y, vcFormat);
Steve On Fri, 11 Mar 2005 00:43:03 -0800, jez123456 <je*******@discussions.microsoft.com> wrote:
>Hi, I have a list of names from a database such as > >Smith >Jones >Baker >Stocks >Chapman >Peters > >I would like to display these names as the header of related data as follows > >S J B S C P >m o a t h e >i n k o a t >t e e c p e >h s r k m r > s a s > n > > >or, as below, but each name rotated 90 degrees anti-clockwise. Much like >what you can do with a word table cell and it's text direction. > >Smith Jones Baker Stocks Chapman Peters
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Steve Gdula |
last post by:
I am wondering if anyone knows if it is
possible to change the display orientation
of a label so that the text may be displayed
vertically rather than horizontally.
I have seen reference to API...
|
by: Bruce Adams |
last post by:
I am using VB6 SP6. I have an application that prints charts. Specifically,
it prints line charts of plant process information nightly. The code is a
mix of API calls and Printer methods. I am...
|
by: Santah |
last post by:
hi
I'm new to C++
and I'm currently working on Visual C++ 6.0
I'm trying to open a text file, and read some data from it
part of the text file looks like this:
--------
|
by: Andrew Thompson |
last post by:
Is there a way to achieve (or a good
reason not to) the 'vertical text' effect
displayed here in the planetary labels..
http://www.physci.org/test/graph/imgresize.html
The page uses <br> to...
|
by: Philip K |
last post by:
I write software that needs to draw simple engineering drawings for factory
workers to read.
A standard for drawings is to be able to read the text from the bottom right
corner.
The GDI...
|
by: Vishal Naidu |
last post by:
i m a college student in my second year.....
my queston is..
is it really possible to write object oriented code in C ?
and if yes how do we achieve abstration, polymorhism , hierarchy etc.
in C
|
by: jcrouse |
last post by:
Here is a sniplet from a text file
game
name mapp
description "Mappy (US)
year 198
manufacturer "Namco
history "\nMappy (c) 03/1983 Namco. \n\n- TRIVIA: \n\nLicensed to Bally Midway for US...
|
by: Connor T |
last post by:
Hi,
I have a crystal report embedded in a viewer.
How / Where can I set a property to make it default to landscape
orientation?
Rgds,
Dan
|
by: Stan McCann |
last post by:
Is there a way, or does anyone know if maybe in CSS3, there is a plan to
implement vertical rotated text? At
http://alamo.nmsu.edu/roundup/schedule.html, in the information I was
provided,...
|
by: Rich |
last post by:
Hello,
I found some code for printing a report (.rdlc) file without using the
ReportViewer control. This code prints in the Portrait orientation which I
presume is the default orientation. I...
|
by: ryjfgjl |
last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
|
by: BarryA |
last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Sonnysonu |
last post by:
This is the data of csv file
1 2 3
1 2 3
1 2 3
1 2 3
2 3
2 3
3
the lengths should be different i have to store the data by column-wise with in the specific length.
suppose the i have to...
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
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,...
|
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...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
|
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
| |