InfoPath - Scale a form to fit a single page

  • Thread starter Marc (St Pete, Fl)
  • Start date
M

Marc (St Pete, Fl)

We're new to InfoPath. I'm trying to convert some PDF and FormFlow forms to
InfoPath. In order to squeeze all of the text boxes, I had to reduce the font
sizes. Obviously this is not acceptable.

Is there a way I can scale a large form to fit on a single page. Something
like I can do with Excel.

Thanks - Marc
 
B

Brian Teutsch [MSFT]

Sorry Marc, but the way you reduced font sizes is the only way you'll be
able to change the overall size of a form. InfoPath doesn't have any
scaling/zooming feature.

Brian
 
G

Greg Belenky

Sorry Marc, but the way you reduced font sizes is the only way you'll be
able to change the overall size of a form. InfoPath doesn't have any
scaling/zooming feature.

You can make different views for different screen resolutions and switch it
with button-on-click code ore rules.
 
G

Greg Belenky

I've just developed the solution:

1. your datasource must have int attribute with default value of 100 to
store zooming factor of form (Zoom)
2. create default view (1) with required components and place two buttons
ZoomIn and ZoomOut.
3. create new view (2). select all page from view(1) and paste it to
view(2).
4. add some rules for buttons:
ZoomIn:
if @Zoom < 300 then @Zoom = @Zoom + 20 and switch to different view (it
means that button on view(1) must switch to view(2) and vice versa)
ZoomOut:
if @Zoom > 30 then @Zoom = @Zoom - 20 and ... (the same algorithm)

5. save form template.
6. extract .xsl files from template and add
<style>BODY {ZOOM: <xsl:value-of select="@my:Zoom"/>%; }</style>
line just before closing </head> tag.
7. put modified xsl-s back into xsn template and try!
 

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