Chapter6:CreatingDrawingswithDraw
CreatingaConstructionPlan
Tocreateadrawingliketheprecedingillustration,clicktheRectangleiconanddragthe
floatingtoolbarintotheworkarea.Then,selectCurvesandLinesandArrowsanddrag
thesefloatingtoolbarsintotheworkareaaswell.Chooseatoolwithwhichtobegin,suchas
theRectangle,anduseittodragopenanareatorepresentthefirstsurface.Finally,drawin
thedetailswiththeLinetool.
OpenOffice.orgUserGuidefor2.x
357
Pdf reader link - insert, remove PDF links in C#.net, ASP.NET, MVC, Ajax, WinForms, WPF
Free C# example code is offered for users to edit PDF document hyperlink (url), like inserting and deleting
adding links to pdf document; adding links to pdf
Pdf reader link - VB.NET PDF url edit library: insert, remove PDF links in vb.net, ASP.NET, MVC, Ajax, WinForms, WPF
Help to Insert a Hyperlink to Specified PDF Document Page
change link in pdf file; add links in pdf
Chapter6:CreatingDrawingswithDraw
Addsomemoredetails.
OpenOffice.orgUserGuidefor2.x
358
RasterEdge .NET Document Imaging Trial Package Download Link.
Adobe PDF. XDoc.PDF. Scanning. XImage.OCR. Microsoft Office. XDoc.Word. XDoc.Excel. XDoc.PowerPoint. Barcoding. XImage.Barcode Reader. XImage.Barcode Generator.
clickable pdf links; add links to pdf acrobat
C# PDF Library SDK to view, edit, convert, process PDF file for C#
RasterEdge PDF SDK for .NET package offers robust APIs for editing PDF document hyperlink (url) and quick navigation link in PDF bookmark.
pdf edit hyperlink; pdf email link
Chapter6:CreatingDrawingswithDraw
OpenOffice.orgUserGuidefor2.x
359
How to C#: Basic SDK Concept of XDoc.PDF for .NET
XDoc.PDF for .NET allows C# developers to edit hyperlink of PDF document, including editing PDF url links and quick navigation link in bookmark/outline.
add url link to pdf; adding a link to a pdf in preview
VB.NET PDF: Basic SDK Concept of XDoc.PDF
XDoc.PDF for .NET allows VB.NET developers to edit hyperlink of PDF document, including editing PDF url links and quick navigation link in bookmark/outline.
add hyperlinks to pdf online; add hyperlink pdf
Chapter6:CreatingDrawingswithDraw
Completethedrawing.
OpenOffice.orgUserGuidefor2.x
360
C# PDF: PDF Document Viewer & Reader SDK for Windows Forms
create PDF document viewer & reader in ASP.NET web application using C# code. Related C# PDF Imaging Project Tutorials! Please click the following link to see
clickable links in pdf files; add links to pdf document
C# Raster - Raster Conversion & Rendering in C#.NET
adding an email link to a pdf; add hyperlink in pdf
Chapter6:CreatingDrawingswithDraw
UsingSnapLines
Itisadvisabletousesnaplinestopositionlinesandobjectsmoreprecisely.
Todisplayasnapline,clickonarulerandholddownthemousebuttontodragitintothe
document.Tomovethesnapline,restthemousepointeronituntiladoublearrowappears.
Shiftthelinebyholdingdownthemousebuttonanddraggingthelinetothedesiredposition.
Todeleteasnapline,simplydragitbackontotheruler.InDraw,snaplinescanalsobe
positionedinanumericallyexactwayusingtheEditSnapLine...commandfromthe
contextmenuofthesnapline.
Note:Snaplinesarelineswhicharevisibleonlyonthescreenandareusedforthesolepurposeofprecise
positioningandalignment.Anunlimitednumberofhorizontalandverticalsnaplinescanbecreated.
UsingDimensionLines
WithDraw,dimensionlinescanbedirectlyinsertedintoadrawing.Dragthesnaplinesfrom
therulerintoadocumentandpositionedsothatthereisasnaplineovereverymajorlinein
thedrawing.Todothis,clicktheDimensionLineicon
ontheLinesfloatingtoolbar.
Themousepointerwillturnintoacrossandadimensionlinemaybedraggeddirectlyfrom
onesidetotheother,or,evenbetter,fromonesnaplinetoanother.
Toeditthelookofdimensionlines,selectthem,openthecontextmenuandclick
Dimensions....Thedialoguethatappears,permitsdeterminationoftheappearanceand
positionofthedimensionlines.
Toincreasethespacebetweenadimensionlineandthemeasuredobject,movethemouse
pointertooneofthepointsonthedimensionline.Themousepointerwillturnintoanother
icon,enablingeitherexpansionorreductionofthespace.Note:Toobtainanabsolutely
horizontalorverticaldimensionlineoroneata45°angle,presstheShiftkeywhile
draggingthedimensionline.
OpenOffice.orgUserGuidefor2.x
361
VB.NET PDF: Create PDF Document Viewer in C#.NET for Document
reading PDF document in ASP.NET web, .NET Windows Forms and mobile developing applications respectively. For more information on them, just click the link and
pdf reader link; add hyperlink to pdf
VB.NET Word: How to Process MS Word in VB.NET Library in .NET
Besides, here is the quick link for how to process Word document within We are dedicated to provide powerful & profession imaging controls, PDF document, image
adding hyperlinks to pdf documents; add a link to a pdf
Chapter6:CreatingDrawingswithDraw
WorkingWithMultipleLayers
Thenextstepistopositionthedetailsinthemotordrawing.Itisagoodideatousethelayer
functioniftestingseveraldifferentvariations.
Togetabetteroverview,turnontheLayerview,bypressingthesymbolonthebottom
leftborderoftheworkarea.Alternatively,chooseView>Layer(acheckmarkwillappear
infrontofthecommand).Toinsertanewlayer,openthedialogueInsertLayer.Itcanalso
beopenedthroughthecontextmenuofthetabsLayout,ControlsandDimensionLines
arrangedatthebottomofthescreen.Enterauniquename,e.g.“Sketch1”.Repeatthis
procedureforanotherlevelandenterthenameas“Sketch2”.
NowclicktheSuggestion1tabandplacethedetailsofthislevel;forexample,bydragging
thedesiredclipartfromtheGalleryintothedocument.
AfterthedetailsarepositionedonLayer1,dothefollowing:
1. clicktheSketch2tabandarrangeelementsthereaswell.Noticethattheelementsfrom
Sketch1arevisible.
2. Tochangethis,clicktheSketch1tabandcallupthecontextmenuandselectModify
Layer.
3. IntheModifyLayerdialogue,removethecheckfromtheVisiblecheckbox
4. ClickOKtoviewonlytheLayoutlevelandtheSketch2level.
Asarulealllayerswillbedisplayed.Toviewaparticularlayer,deactivatetheVisiblefield
onalltheotherlayers.
Aftercompletingthedrawing,saveand/orprintthedocumentasneeded.
Note:Visualizelayersastransparentsheets,oneontopoftheother,whichtogetherformacompletepicture.Itis
alsopossibletoviewindividual“transparencies”,i.e.
Layers
.
UsingOnecolourperLayer
Ifmorethanonelayeratatimeisdisplayed,applyanidenticalcolourtoallelementsonthe
samelayerforabetteroverview.
OpenOffice.orgUserGuidefor2.x
362
Chapter6:CreatingDrawingswithDraw
OpenOffice.orgUserGuidefor2.x
363
Chapter7:DatabasesandDataSources
Chapter7:DatabasesandDataSources
VersionsofOpenOffice.orgBasepriorto2.xrequiredaconnectiontoanexternaldata
source.While2.xretainsthisfunctionality,italsointroducestheabilitytocreatean
HSQLDBdatabaseasaninternaldatasource.Nowallthedatatables,forms,queriesand
reportsforadatabasecanresideinone.ODBfile.
Thischapterintroducesbuilt­inHSQLDBdatabasesandtouchesonsomeofthefunctionality
stillretainedfromearlierversionsofBase.Theexamplesfoundinthischapteraresomeof
thestepsusedtocreatetheCalendarexampledatabase.
Thelargeamountofpreparatoryworkdonewhenoneisactuallydesigningadatabaseis
beyondthescopeofthischapter.Briefly,thepreparatoryworkforcreatingtheCalendar
databaseinvolvedsketchingoutwhattheuserwantedtoseeastheendresultandworking
fromtheretodesigntablesthatwouldfollowgooddatabasedesigntheoryor,failingthat,at
leastbeeasytoimplementandmaintain.
Creatingadatabasefile
Afterthepreparatorywork,afileorcontainermustbecreatedtoholdallthepartsofthe
database.
IfOpenOffice.orgisalreadyopen,youcanchoose
File>New>Database.Youcan
alsoopenOpenOffice.orgBaseitselfselectingthe
programiconfromthemenuorby
runningsbasefromthecommandline.
TheDatabaseWizardopenstoStep1,Selectdatabase.
1. MakesuretheoptionissettoCreateNewDatabaseandclickNext.
2. InStep2,Saveandproceed,youwillwanttheoptionregardingregisteringthe
database(DoyouwantthewizardtoregisterthedatabaseisOpenOffice.org?)set
toYes,registerthedatabaseforme.
Whenyouregisteradatabase,OpenOffice.orgnowknowswherethedatais
locatedandhowitisorganized.Inspreadsheetsandtextdocuments,youcanuse
View>DataSourcetoconnecttothedata.
3. UnderAfterthedatabasefilehasbeensaved,whatdoyouwanttodo?Makesure
Openthedatabaseforeditingischecked.
TheCreatetablesusingthetablewizardcheckboxopenstheTableWizard.
TheTableWizardoffersasetofsampletablesfromwhichfields,with
correspondingtypesandformats,canbechosentocreateanewtable.Fieldscan
bechosenfrommultipletablestocreatetheparticulartable.
4. ClickFinish.
5. IntheSaveAswindowthatopens,namethedatabaseandselectalocationinwhich
tostoreit.LeavetheSaveastypesettoOpenDocumentDatabase.
OpenOffice.orgUserGuidefor2.x
364
Chapter7:DatabasesandDataSources
6. ClickSave.
AnOpenOffice.orgBasewindowwillopenforthenewdatabase.Atthispoint,wehave
createdanemptydatabasefile.
Creatingatable
Anemptydatabasefileisnotmuchuse.Thenextstepistocreateatableinwhichtostorethe
data.InpreviousversionsofOpenOffice.orgBase,wewouldconnecttoanexternaldata
sourcesuchasAdabas,JDBC,ODBC,dBase,ADO,Text,Spreadsheet,orAddressBook.We
canstilldothis(asdiscussedbelow)but,asmentionedabove,wecanalsocreateHSQL
tablesthatwillresideinthedatabasefileitself.
Eachfieldinatableisrepresentedinthedesignofthattablebyarow.Eachrowhasfields
forFieldName,FieldTypeandDescription.Descriptionisanoptionalfieldthatcanbe
usedtoprovideadescriptionofwhatthefieldisusedfor.
Additionally,eachofthetablefieldshaveFieldProperties.Thesevarybasedonthetypeof
field.
ThemaintableinourCalendardatabaseistheAppointmentstableandthe
followingstepsexplainhowthattablewascreated.
1. Inthedatabasewindow,clicktheTablesiconintheleft­handcolumn.
2. IntheTaskspaneatthetopofthewindow,clicktheCreateTableinDesignview
icon.ATableDesignwindowopens.
3. InthefirstrowintheTableDesignwindow,intheFieldNamebox,typeIDandhit
theTabkeyonthekeyboard.
4. IntheFieldTypeboxthatthecursorjumpsto,chooseInteger[INTEGER].
5. IntheFieldPropertiessectionatthebottomofthewindow,changethevaluefor
AutoValuetoYes.
6. Createthefieldslistedbelowbyrepeatingsteps3through5usingtheinformationin
thetable.Obviously,donotgobacktothefirstrowinthedesignwindowanddonot
settheAutoValueoptiononanyotherfieldstoYes.
Field
Name
FieldType
FieldProperties
Subject
Text
[VARCHAR]
Entry Required = Yes; Length = 50 
Location
Text
[VARCHAR_ 
IGNORECASE]
Entry Required = No; Length = 50
Startdate
Date
[DATE]
Entry Required = Yes
OpenOffice.orgUserGuidefor2.x
365
Chapter7:DatabasesandDataSources
Starttime
Time
[TIME]
Entry Required = No
Enddate
Date
[DATE]
Entry Required = No
Endtime
Time
[TIME]
Entry Required = No
Note
Memo 
[LONGVARCHAR]
Entry Required = No
Type
Integer [INTEGER]
AutoValue = No; Entry Required = No
7. Right­clickthefieldselectorfortheIDfield(thisistheareatotheleftofthefield
name)andchoosePrimaryKey.
8. ClickFile>Save.
9. EnterAppointmentsfortheTableNameandclickOK.
10. ClosethetabledesignwindowbyclickingFile>Close.
11. Inthedatabasewindow,clickFile>Savetosavetheworkdonesofaronthe
database.
Note:ThetypeVARCHAR_IGNORECASEisaspecialtypeofVARCHARspecifictoHSQLDB.Itiscase­insensitive
whichmeansentriessuchasHomeandHOMEarethesame.
Note:Eachfieldcanonlyacceptdatacorrespondingtothespecifiedfieldtype.Itisnotpossibletoentertext,for
example,inanumberfield.MemofieldsindBaseIIIformatarereferencestointernally­managedtextfileswhich
canholdupto64KBtext.
Creatingarelatedtable
ThelastfieldoftheAppointmentstableistheTypefield.Sincewearetryingtofollowgood
databasedesignprocedureshere,wewanttoputourappointmenttypesinanothertableand
linkthetablesusinganIDfield.Thebasicreasonforthisisbecausesomanyofour
appointmentsaregoingtohavethesametype,wewanttocutdownondataentryerrorsand
makeiteasiertoupdatealltherecordsifwedecidetochangethenameofatype.
TocreatetheTypestable:
1. Inthedatabasewindow,clickCreateTableinDesignView.
2. Createthetableusingsteps3through5inthepreviousexampleandtheinformation
below.
Field
Name
FieldType
FieldProperties
ID
Integer [INTEGER]
AutoValue = Yes
OpenOffice.orgUserGuidefor2.x
366
Documents you may be interested
Documents you may be interested