Header

I

iLDC

Hi,

Is it possible to program the content of the headers and
footers of a view when printing them? If yes, can someone
give me an example?

Ths,
iLDC
 
J

Jan De Messemaeker

Project 98 or 2000 + ?

--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
Project Management Consultancy
Prom+ade BVBA
32-495-300 620
 
J

Jan De Messemaeker

Hi again,

I was afraid so.
There is only one way and it is noyt elegant.
Moreover, since my customers have now all migrated to 2000, I do not have
the code at hand;
I shall put you on your way.

You have to simulate the manual process by teh Sendkeys method.
If you are not familiar with it, do read the help before trying!

The principle is as follows

Sendkeys StringVariable
FilePageSetup

Will show the Page Setup window and apply to it all the keystrokes contained
in StringVariable
Mind you, you cannot simulate the mouse buttons, you have to reach the
different fields through the TAB key.

It does work... I even programmed a header including an inserted gif file
with the customer's logo!

HTH




--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
Project Management Consultancy
Prom+ade BVBA
32-495-300 620
 
J

Jan De Messemaeker

Hi again,

Well, I know for sure you can, I'm desperately trying to remember how (it
changed from 98 to 2000 once again)
I think in your sendkeys string you have once again to specify which
keystrokes you have to make to do it manually for instance
{TAB 5} 'if that is necessary to position on the font icon
& "+" 'Enter
'now you will see the font window
& {TAB} to position on the second column
& {DOWN 2} for Bold
& {TAB} to position on the third column
& {DOWN 3} to position of font 11
& "+" Enter
'You are beack on teh page setup positioned on the font icon
etcetera

Nobody told you it was easy or rapid but it does work.

HTH
--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
Project Management Consultancy
Prom+ade BVBA
32-495-300 620
 
J

Jan De Messemaeker

You're welcome

I've learned this myself in ths very NG 3 years ago!

--
Jan De Messemaeker
Microsoft Project Most Valuable Professional
Project Management Consultancy
Prom+ade BVBA
32-495-300 620
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top