Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 75

Modifying Styles

Writer Provides Several Ways To Modify Styles (Both Are Predefined Styles
And Custom Styles That You Create):
 Updating A Style From A Selection
 Load Or Copy Styles From Another Document Or Template

~֎~ Updating A Styles From A Selection ~֎~


To Update A Style From A Selection:
Step 1: Create A New Paragraph And Edit All The Properties You Want To Go
Into The Style.
Step 2: Select The Paragraph By Clicking On The Paragraph.

Step 3: Open The Styles Window And Select Your Preferable Styles And
Choose Update Style Option.

—»

«—
~֎~ Loading Styles From Template Or Document ~֎~

You Can Copy Styles By Loading Then From A Template Or Another


Document:
Step 1: Open The Document You Want To Copy Style Into. Open The Styles Window.

Step 2: In The Styles Window, Click On Styles Action Icon, And Then Choose On Load
Styles Option.

Step 3: In The Load Styles Dialog Box, Find And Select The Template You Want To
Copy Styles From.

Step 4: Select The Categories Of Styles To Be Copied. Select Overwrite If You Want
The Styles Being Copied To Replace Any Styles Of The Same Names In The Document
You Are Copying Them Into.
\Step 5: To Copy The Styles From Another Document, Click On From File Button To
Open A Window From Which You Can Select The Required Document.

Step 6: Click on Ok Button. You Will Not See Any Change On Screen.
Inserting An Image File

Images can be added to a document in several ways: by inserting an image


file, directly from a graphics program or a scanner, or from the Open Office
Gallery.
You can insert a image into writer document using either of the following
methods:
~֎~ Insert Image Option ~֎~
STEP 1: click in writer document where you want the image to appear.

STEP 2: choose insert —› image.


STEP 3: in the insert image dialog box, navigate to the file to be inserted, select it, and
click on open office button.
~֎~ drag and drop method ~֎~
STEP 1: open a file browser window and locate the image you want to insert.
STEP 2: drag the image into the writer document and drop it where you want to appear.
~֎~ Inserting an Image From the gallery ~֎~

Step 1: click on insert —› media —› gallery from the menu bar.


STEP 2: navigate through the gallery to find the desired picture. The gallery will open
on the right side of the document window.

STEP 3: click and drag the gallery into the writer document and choose insert option.
Create Drawing Objects
Writer provides ready-made shapes drawing objects that can be used in a
document. We can format the shape and even write text in it.

~֎~ To Inserting A Shape In A Document ~֎~

STEP 1: Click On Insert.


STEP 2: Click On Shape and Choose and Click On It.

STEP 3: Choose A Shape from sub menu and click on I t.


STEP 4: Drag or draw in the document to draw a shape.

~֎~ Using Resizing Handles ~֎~

To resize the drawing object:


STEP 1: Move the mouse pointer over any of resize handles. The mouse pointer changes
its shape from Mouse pointer ( ) to double headed arrow ( ).
STEP 2: Now, click on the resize handle and drag the mouse carefully to resize the shape
to the required size.

~֎~ Resizing Shape More Accurately ~֎~

STEP 1: Select format —› Text Box and Shape —› position and size from the menu bar.

STEP 2: The position and size dialog box will open. Set width and height respectively.
Create and Use Template
A template is a preset layout that you use to create other documents. Writer
has templates for letters, resumes, invoices, greetings, invitations, brochures,
and many more.

~֎~ Creating A Template From A Document ~֎~

STEP 1: Open a new or existing document.

STEP 2: Add the content and styles that you want.

STEP 3: Choose file —› Templates —› Save as template


STEP 4: The save as template dialog box opens. Click the category to which you want to
assign the template. Click on save button.

STEP 5: click on ok button to save the new template.

~֎~ Setting a Default Template ~֎~


STEP 1: click on file —› new —› templates.

STEP 2: The template dialog box open, displaying existing template. Choose the
template, click on open button.

~֎~ Editing A Template ~֎~


STEP 1: click on file —› new —› templates. The template dialog box open.
STEP 2: navigate to the template that you want to edit. Click on open button.
STEP 3: Edit as per your preference.

~֎~ Using A Template ~֎~

STEP 1: Select file —› new —› template.


STEP 2: The template dialog box opens. Navigate to the template that you want to open.
Click on open button.

Merging the data source with the


main document.
STEP 1: Open the letter you want to use.
STEP 2: Now insert fields from database that you want to merge. Select the view —›
data sources (press F4). Click the + next to the database you want, then click the + next to
tables and the next + to the table you want.

STEP 3: Drag the field you want to insert in the letter. Click and hold down on the name
of the first field you want. Repeat this process and drag all fields.
Data Consolidation

Data consolidation allows you to gather together your data from separate
worksheets into a master worksheet.

To create a data consolidate between two workbooks:


Step 1: Open two worksheets at a same time that you wish to link with each other.
Step 2: On the Data menu, click on Consolidate option a consolidate dialog box opens.

Step 3: Choose a function from the Function list. The function specifies how the values
of the consolidation ranges are linked. The Sum function is the default setting.
Step 4: If the Source data range list contains named ranges, you can select a source cell
range to consolidate with other areas.

If the source range is not named, click on the Shrink button. Then, click on the Expand
button to go back.

Step 5: Click on Add button. The selected range now appears on the Consolidation
ranges list.
Step 6: Select the additional ranges AI: F6 the Term 2 worksheet and click on Add
button after each selection.

Step 7: Specify where you want to display the result by selecting a target range from the
Copy result box.

Step 8: Click on More button in the Consolidate dialog box to display additional settings.

Step 9: Select Link to Source Data to insert the formulas. If you link the data, any values
modified in the source range are automatically updated in the target range. Only the final
result, based on the selected function, is displayed.

Step 10: under consolidate by setting, select either row labels or column labels, if the cell
of the source data range are not to be consolidated corresponding to the identical position
of the cell in the range, but instead according to a matching row label or column label.

Step 11: click on the ok button to consolidate the ranges. You will see grouping tools
down the left of the screen which you can use to display and hide the data. Next to rows,
there are plus signs. Clicking on the plus sign will expand the group and there is a line
connecting these rows to the left.

What-If Scenarios
OpenOffice Calc scenario is a set of cell values that can be used within your
calculations. You assign a name to every scenario on your sheet.

~֎~ Scenario Creating ~֎~

Step 1: Select the cells that contain the value that will change between scenarios. To
select multiple cells, hold down the Ctrl key as you click each cell.
Step 2: Choose Scenarios option from the tools menu. The create scenario dialog box
appears.
Step 3: Enter a name for the new scenario and leave the other fields unchanged with
there default values.
Step 4: Create several scenarios for any given ranges of cells. Now the set of data is
saved, retype a new set.

~֎~ Using Scenario ~֎~


Step 1: Click on Navigator option in the view menu or press the F5 key to open navigator
window.

Step 2: click on scenario icon in the navigator window.


Step 3: You See The Defined Scenario With The Comments That Were Entered When
The Scenarios Were Created.

 Double –Click A Scenario In The Navigator To Apply That Scenario To The


Current Sheet.
 To Delete A Scenario, Click Right-Click The Navigator And Choose Delete.
 To edit a scenario, right-click the name in the navigator and choose properties
option.

~֎~ Goal Seek ~֎~


Step 1: select the cell containing the values you want to change. When you use goal seek,
you will need to select a cell that already contains a formula or function. In our example,
we will select cell B5 because it contains the formula = AVERAGE (B2:B4).
Step 2: From the tools menu click on goal seek option.

Step 3: A goal seek dialog box will appear with three field:

 Formula cell: this is the cell that will contain the desired result.
 Target value: this is the desired result.
 Variable cell: this is the cell where goal seek will place its answer.

Step 4: Set values and click on ok button.


Step 5: The message box will tell you if goal seek was able to find the solution. Click on
yes button.

Referencing Other Documents.


Excel can link different files together. The process is the same as described
for different sheets in a single spreadsheet, but we add one more parameter to
indicate which file the sheet is in.

~֎~ Creating The Reference With The Mouse ~֎~


To create a link between two workbooks :
Step 1: Open two workbooks at the same time that you wish to link with each other.

Step 2: You can link the workbook by inserting formula in one workbook which refers to
a cell or cell range in another workbook.

Step 3: In the first cost cell, type-=B3* Now to enter reference with this formula, click on
Window menu to get list of active workbooks.
Step 4: Select the workbook Price option you will switch into the ‘Price’

Worksheet. You will notice then following formula:

=B2*’file:///F:/Bhawana_Data/price.ods’#$Sheet1.B2
Step 5: Press the Enter key.

~֎~ Creating The Reference With The Keyboard ~֎~

To link two Calc workbook, you have to enter a formula in the destination workbook.

In such case the logical approach to refer to a cell address is:

[Path] [Workbook file name]#$Sheet name. Cell Address


Using The Macro Record
If you want to record a macro, it is necessary to unable macro recording.

~֎~ To Enable The Macro ~֎~


Step 1: Go to Tools —› Options. The Options dialog box will open.
Step 2: Select LibreOffice —› Advanced and check the option Enable macro recording
under Optional Features. By default, this feature is turned off in LibreOffice. Click on
OK button.
45 45

~֎~ To Record The Macro ~֎~


Step 1: Click on Tools —› Macro —› Record Macro option. The Record Macro dialog
box will shown with a Stop Recording button.
Step 2: perform the actions that you want to record. Right mouse click on the active cell
(selected cell).be sure not to select any other cell and click on format cells options. The
format cells dialog box will appear. Select Percentage from the Category list.
Lick on Ok button.

Step 3: Click on Stop recording button. You’ve recorded your macro with the Macro
Recorder. The Basic Macros dialog box will appear.

Step 4: Select the current worksheet. For example, the current Calc worksheet is untitled
1. Existing worksheets show a library named worksheet standard. You can create a new
library to contain the macro, but this is not necessary.
Step 5: Click on New Module button. If no libraries exist, then the standard library is
automatically created and used. In the new module dialog box, type a name for the new
module or leave the name as Module1.

Step 6: Click on OK button to create a module named MyModule. Select the newly
created module, enter the macro name say Per in the macro box and click on Save button.
The created macro is saved in MyModule of the standard library in the Untitled 1
worksheet.

~֎~ Run A Recorded Macro ~֎~


To run macro:

Step 1: Click on Tools —› Macro —› Run Macro option.


Step 2: The Macro Selector dialog box will appear. Click on + sign before current
spreadsheet name-Untitled. Same way locate which the module is created—MyModule.
Select the Macro Name list. Click on Run button.

Creating Database Using


LibreOffice
LibreOffice Base is a part of LibreOffice suite. It is a Relational Database
management system (RDBMS) software.

Step 1: Click Start —› All Programs —› LibreOffice Base.


Step 2: Click on Base Database option. The Database Wizard will open. The wizard is
that allows you to create database.

Step 3: Select Database:

 Create a new database


 Open an existing database file
 Connect to an existing database

Select Create a new database option. Click on Next button.


Step 4: Save and Proceed: Select “Yes, register the database for me option”.

The next choice is what you want to do after the database file has been saved.

 Open the database for editing: It will open the database immediately after you
click on Finish button and save the database, so you create tables and add data.
 Create tables using the table wizard: It will Open the table wizard right after you
click on the Finish button and save the database. You will use this to create your
first table rather than create it from scratch.

Step 5: Click on Finish button. The save as dialog box appears.

Step 6: Specify a name for database in the File name: field and click on Save button. The
database window will open.
~֎~ Using Wizard To Create Table ~֎~
Step 1: Click on Tables —› Use Wizard to Create Table. The Table Wizard will open.

Step 2: Click the Select Fields —› Choose Category —› Select the table.Select the fields
as per the requirements and select on buttons to add the predefined columns or select to
remove the fields from the Selected Fields Box. After selecting the fields click on Next

Button.

Step 3: Set types and formats: In this step of the wizard you can set the data types. By
default all the fields will have Text [VARCHAR] data type which can be changed. Other
properties with default values can be selected as per the requirements. Click on Next
Button.
Step 4: Set a Primary key: This step allows you to create a primary key. There are three
choices of creating a primary key:

Automatically add a primary key: Selecting this option will generate a primary key field
for the table.

 Use an existing field as a primary key: This option allows you name drop-down
menu.
 Define primary key as a combination of several fields: This option allows you
choose more than one field that you selected in the first step and use the as
primary key.

Click on Next button when you are finished setting a primary key:

Step 5: Create table: this final step let you name or rename a table. It also allows you to
do one of the following:

 Insert data immediately: This will open the table, so can add data.
 Modify the table design: This opens the table in design view, so you can add fields
or change data types.
 Create a form based on this table: This will open a blank form document,
LibreOffice’s text editor, and it will launch the Form Wizard.

The option to insert the data immediately will be selected by default. Click on Finish to
insert the data in the table.
~֎~ Creating Table Using Design View ~֎~

Step 1: Click on Create Table in Design View…option available under Tasks and a Table
Design window appears. The design view is divided into two sections i.e., Field grid area
and Field properties area. Field grid area is used to specify the field name and its data
type. Field properties area is used to specify properties of each fields.
Step 2: Click in the Field Name column and enter the Field name and data type to be
created by selecting the appropriate type available under Field type dropdown list. For
example, the table contains the Name field and the data type of the Name is TEXT
[VARCHAR]. You can specify the length of the field value.

Step 3: Repeat the above process to add rest of table fields.

Step 4: Once you finished the process for defining table fields, save your table and give it
a suitable name.
A message to set primary key for the table you just created. You can select the
appropriate option to set the primary key or leave the table without a primary key. If you
click Yes, the application will set the primary key for the first field created automatically.

Creating A Query Using Design


View
This is one of the most common way to create queries which retrieve data
from one or more tables to select and display the required information. This
is also known as simple select Query.

Step 1: Open the database.


Step 2: In the left pane of the database window, click on Queries icon.

The Query Design Window will appear with Add Table or Query database window with
a list of tables.

Step 3: Select the table from which the information is to be extracted and click on Add
button to show the table in Select Query Window.

The query window is divided into two parts. The upper part displays the table selected for
the query. The bottom for displaced the option to add fields and specify the criteria. It has
the following options:

 Field: to display the fields from the selected table.


 Table: to display the name of the table.
 Sort: to arrange the data in ascending or descending order.
 Visible: displays a check mark which means the field will be visible when the
query is run.
 Criterion: to specify the condition on the basis of which the records will be
filtered.
 Or: to specify multiple criteria.

Step 4: choose the field to want, from the drop down list of the Field option in the bottom
part of query window.

When two criteria are typed on the same line, only records where both criteria are met
will be displayed. This is called AND condition. When you type one criteria on the
Criterion row and the second criteria on the OR row, the records where either criteria met
will be displayed as output. This is called OR condition.
Step 5: Specify the condition is Criterion option.

Step 6: Now to see the result of the query click on Run Query option in the Edit Menu.
The result of query is displayed in the datasheet view showing only the specific records
satisfying the criteria.

Step 7: Save the query.


~֎~ Creating Query Using Wizard ~֎~
In LibreOffice you can create a new query using Query Wizard:

Step 1: Open the database file where you want to create the new query.
Step 2: In the left pane of the database window, click on Queries icon.

Step 3: Click on Use Wizard to Create Query option. There are eight steps in this Query
wizard.

Step 4: Field Selection: In this step, Select the table and fields for query and click on the
next button.
Step 5: Now, in Step 2 – Sorting order. It specifies the sorting order for the data records
in your query.

Select from following options:

 Sort by: Specifies the field by which the created queries sorted.

 Ascending: Click to sort alphabetically or numerically or ascending order.

 Descending: Click to sort in alphabetically on numerically descending order.

 Then by: specifies additional field by which the created query sorted, if previous
sort fields are equal.

Click on the Next button.


Step 6: Search conditions is specifies the search Condition to filter the query. Select from
the following options:

 Match all of the following: Select the filter the query by all the conditions
releasing the logical AND.
 Match any of the following: Select the filter the query by any of the condition
choosing a logical Now, select the following:
 Field: Select the field name for the filter condition.
 Condition: Select the condition for the filter.
 Value: Enter the value for the filter condition.

Click on OK button.
Step 7: Detail of Summary: It specifies whether to display all records of the query, or
only the result of aggregate functions. This page is usually displayed when there are
numerical fields in the query that allows the use of aggregate functions.

Select the type of query:

 Detailed query: Select to show all records of the query.


 Summary query: Select to show only results of aggregate functions.

Select the aggregate functions at the field name of the numeric field in the list box. You
can enter as many aggregate function as you want, one in each row of controls. If you
select Detailed query option, then next 2 steps are not available.

Step 8: Grouping is specifies whether to group the query.

Step 9: Grouping Conditions: It specifies the conditions to group the query.

Step 10: Aliases: It assigns aliases to field names.


Step 11: Overview: Enter a name of the query, and specify whether you want to display
or to modify query after wizard is finished.

 Name of the query: Enter the name of the query.


 Display query: Select to save and display the query.
 Modify query: Select to save the query and open it from editing.
 Overview: Display a summary of query.

Click on Finish button. The query will be created.

Step 12: save the query.


Creating A Query Using SQL
Commands
LibreOffice base provides a graphical interface to create
queries, but many RDBMS do not have a graphical
interface. In such cases we use Structured Query
Language (SQL)

~֎~ Creating Query using SQL commands ~֎~


Step 1: Open the database file where you want to create a new query.

Step 2: In the left pane of database window, click on Queries icon.

Step 3: Click on Create in SQL View option.


A Query window appears.

Step 4: Type the query. For Example, if you want to display all the data in Marksheet
table, then the select statement will be:

Select * from Marksheet;

Step 5: To execute the query do any of the following:

 PressF5 function key.


 Click on Run Query icon in the toolbar.
 Click on Run Query in the Edit menu. After executing the select query the output
will be:

Step 6: Save the query.


~֎~ Count Function ~֎~
Consider a table named “person” table, having the following records.

Now, Let’s count repetitive number of cities in the column city.

SELECT CITY, COUNT (*) FROM person GROUP BY CITY;

~֎~ SUM Function ~֎~


In this example, we have ta

ble called Emp


with following data:

Enter the following SQL statement:

Select EMP_ID, Sum(Working_hrs) from emp GROUP BY EMP_ID);

~֎~ MIN Function ~֎~


In this example, we have Emp table again that is populated the following

data:

Enter the following SQL statement:

SELECT Emp_ID, in(Working_hrs)

FROM emp

GROUP BY emp_ID;

~֎~ INSERT INTO statement ~֎~


The INSERT INTO statement is used to insert new records in a table.

The basic syntax is:

INSERT INTO table_name (column1, column2, column3, …)

VALUES (value1, value2, value3, …)

It specify both the column names and the values to be inserted.


~֎~ Delete statement ~֎~
It deleted records based on the specified conditions.

The basic syntax is:

DELETE FROM “table_name” [WHERE] condition.


Creating Form Using Form Wizard
Step 1: Open the database file where you want to create the new query.

Step 2: In the left pane of the database window, click on forms icon

Step 3: Click on Use Wizard to Create Form option. The Form Wizard dialog box
appears. There are eight steps in Query wizard.
Step 4: Field selection: In this step, Select the table/query and fields form and click on

the Next button.

Step 5: Set up a Subform: In this step, Specify if you want to use a subform and enter the
subform’s properties. A Subform is a form that is inserted in another form. You can
select the option Add Subform if you want to insert the contents in the table in a separate
form. Click on Next button.

Step 6: Add Subform Fields: Specify the table or query you need to create the subform,
and which fields you need to include in subform.
Step 7: Get Joined Fields: If you choose in step 2 to set up a subform based on manual
selection of fields, you can select the joint based on Wizard page.

Now you need arrange selected fields in form.

Step 8: Arrange Controls: On this page of the wizard, you can select the layout of the
created from. Select from the different styles from the list. Click on Next button.

Step 9: Set Data Entry: It specifies the data handling mode for the new form.
Step 10: Apply Styles: In this step you can quickly style the form using one of the
predefined styles. Choose a style and click on Next button.

Step 11: Set Name: In this step, you can set the name of the form and how we want to
proceed after creating the form. Name the form and choose work with the form option.
Click on Finish button.

~֎~ Navigating Records In A Form ~֎~


Creating Report Using Report
Wizard
This is one of the convenient method used for designing customized reports.
It provides flexibility to select fields from multiple data sources and allows to
group and sort the data if needed.
To start report Wizard:

Step 1: Click on Reports icon from the left-pane of the Database window.
Step 2: Click on Use Wizard to Create Report option. The Report Wizard dialogue box
will appear. There are six steps in Report Wizard

Step 3: Field Selection: Select the database object (Table/Query) from the drop list to
choose your data source. Fields from the selected data source appear in Available Fields
list box.
Step 4: select the fields to be displayed in the list using (>) or (>>) buttons. The selected
fields will be appear in the Selected List box. Click on Next button to move on the next
step.

Step 5: Labelling fields: you can redefined the table of fields in the reports or you can set

the default name. Click on Next button.

Step 6: Grouping: If you want to group your report on the specific fields values, select
the field name from the list and click (>) button for a first level grouping. You can add
further levels of grouping if they are needed. Click on Next button.

Step 7: Sort option: Choose the fields on which the report is to be sorted in ascending or
descending order. You can apply sorting on upto 4 levels. Click on next button.
Step 8: Choose Layout: Choose the report layout and orientation as you can choose the
layout from the available options i.e., from the list and also select the orientation of the

report. Click on Next button.

Step 9: Create Report: Give suitable title to your report and choose the option to open
your report in print preview mode or in design view. Click on Finish button to see your
final report.

~֎~ Managing A Report ~֎~


To manage a report for select the Reports Icon from the Database Object pane and then
select the report from Reports List. You can Open, Edit, Delete, Rename a report using
the toolbar.

OR
You can right-click on the select report and choose the option from Delete, Rename Open
and Edit.
~֎~ Editing A Report ~֎~
A report is basically a Writer document that acquires data from Base. Therefore you can
edit a report like any other Writer document. When you edit a report you must save it
using the Save button from the standard toolbar.

You might also like