Tải bản đầy đủ - 0 (trang)
Hack 38. Save Paper by Reducing Whitespace

Hack 38. Save Paper by Reducing Whitespace

Tải bản đầy đủ - 0trang

Figure4-36showsthedesignofthereport.Thedetailsection

containsagroupoffields.AsshowninFigure4-35,someofthe

fieldsareempty.



Figure4-36.SettingtheCanShrinkproperty



Onthepropertysheet,settheCanShrinkpropertytoYes.Apply

thistothefieldsinthedetailsectionandtothedetailsection

itself.



WhenyouusetheCanGroworCanShrinkproperties,youmustapplythe

settingstoboththeboundcontrolsandthedetailsection.



WithCanShrinksettoYes,anyemptydatafieldsonthisreport

won'ttakeupspace.Figure4-37showstheimprovedreport.



Figure4-37.Amorecompactreport



Inthatfigure,youcanseesomecontactsaremissingaphone

number,andothersaremissingallthedata.Inbothcases,the

amountofemptyspaceshrinks.Asyoucanseewhen

comparingthereportinFigure4-37withtheoneinFigure435,eventhefirstpagedisplaysmorecontacts.Aswasteful

whitespaceisdropped,thenumberofpagesonthereportis

reduced.

TheCanGrowpropertyprovidestheoppositefunctionalityaswell.

Whendesigningareport,placecontrolswheretheymakethe

mostsense.Occasionally,youmighthavemoredatathanyou

candisplayinthefield,giventhesizeoftheboundcontrol.

SettingCanGrowtoYesletsthefieldexpandasneededtoprintall

thedata.



Hack39.IncludetheDate,Time,andPageCount



Usecommonexpressionstoquicklyinsertnecessary

headerandfooterinformation.

It'salwayshelpfultoincludeatimestamponareport,

indicatingwhenitwasprinted.Thismightbetheonlyclueasto

whethertheinformationisuptodate.Includingpagecountsis

alsoimportant.Havingdozensofprintedpagesandnot

knowingtheorderinwhichtheygocanbequitefrustrating.

Accessprovidesaneasywaytoincludethesenecessaryand

sometimesoverlookeditems.TheExpressionBuildercontainsa

listofcommonexpressions.Whiledesigningareport,thebest

waytodisplaytheExpressionBuilderistofirstplacean

unboundtextboxinthereportheaderorfooter(orwherever

makessense)andthenclicktheellipses(…)nexttothecontrol

sourcefortheunboundtextbox.ThisopensuptheExpression

Builder,showninFigure4-38.



Figure4-38.UsingtheExpressionBuilderto

insertcommonexpressions



Theavailablecommonexpressionsincludepagenumbers,date

andtime,andcurrentuser.ThePageNofMsettingis

particularlyusefulbecauseitnotonlystatesthepagenumber

butalsoprovidesamessagesuchas"Page15of40."Once

you'veselectedtheexpressionyouwant,clicktheOKbuttonto

inserttheexpressionintotheunboundtextbox.Whenthe

reportruns,thepagenumbering(orothercommonexpression)

isincludedonthereport.



Tài liệu bạn tìm kiếm đã sẵn sàng tải về

Hack 38. Save Paper by Reducing Whitespace

Tải bản đầy đủ ngay(0 tr)

×