Since the code I gave you uses the Height of the object, you need to set the height before executing that line.
this.Height = 22; //this done first
this.Width = Screen.PrimaryScreen.Bounds.Width; //moved here to keep height and width in the same code locations
this.Location = new Point(0, Screen.PrimaryScreen.WorkingArea.Height - this.Height);
I use tx textcontrol to transform a word document in pdf.
but if my document is to big I can't see the all pdf,I can see only a part of it.
Because of this I use textcontrol function: LoadSaveAttribute where I need the width,Height,LeftMargin of the document.
You can use the office tools to control Word within your app, that may help. Otherwise, you are asking a lot of questions here about a control that, in all probability, most of us have not used. I don't want to discourage you from posting here in general, but these questions will probably get better answers if you ask them in forums for the product you're using.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )