BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hello,

I'm having some difficulty using dde to Excel and the page.setup command with the "scale" parameter. In the help for page.setup, I can see that the scale parameter can take one of three forms:

1. A number to scale by %, ie 55 = 55%
2. Logical True = fit to 1 by 1
3. 2-dimensional array indicating fit to X pages wide by Y pages tall.

I can get options one and two to work, but really it's the third option (2-dimentional array) that I need. I've seen an example passing this third option as, for example...

{1,4}

Ideally, I'd like to get the {1,#N/A} scenario (where #N/A indicates no constraint) to work but am yet to be successful.

Does anyone know the syntax for this to work?

Thanks in advance,
Ben
1 REPLY 1
deleted_user
Not applicable
I'm reminded of trying to get Excel to print a document one page wide and {however many} pages tall.

Excel seems to accept 1, 99 in the page setup dialogue, and then zoom to get a single page wide, and use that same zoom setting to get the required number of pages tall.

Try inserting an improbably large number in the second position, and you might find it will still only print the number of pages for which there are data rather than distort the print vertically.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

Discussion stats
  • 1 reply
  • 685 views
  • 0 likes
  • 1 in conversation