Softwares

Page Maker Software: Program code – part 3

Posted by 26 February, 2009 (0) Comment

You can set and reset a few menu bar items of Microsoft word in the OLE environment by using two user defined procedures:

Private Sub resetcombar ()

If thisdoc is Nothing Then

Exit Sub

Else

Application.CommandBars.ActiveMenuBar.Controls.Item (3).Enabled = True

Application.CommandBars.ActiveMenuBar.Controls.Item (6).Enabled = True

End if

End sub

Private sub setcombar ()

If OLE1.App Is Running = True then

Mywordapp.commandBars.ActiveMenubar.Enabled = True

Application. CommandBars.ActivemenuBar.Controls.Item (3).Enabled=False

Application.CommandBars.ActiveMenuBar.Controls.Item (6).Enabled =False

End If

End Sub.

The view is set using ‘my view’ and zoomed to fit the pages in the active window using the code below:

Set my view = thisdoc.ActiveWindow.View

My view. Zoom. Percentage = 75 ‘for single page

My view.Zoom.Percentage = 42 ‘for many pages

Either the gotpg1_Click event or the PAGE1_CLICK event transfers the page number related information to get the page contents onto the OLE and call the procedure gotopggen():

Private Sub gotopg1_Click (Index As Integer)

Pgindex = Index

Gotopggen

Exit Sub

End Sub

Private Sub PAGE1_CLICK (Index As Integer)

.

.

Select Case Index

Case 0:

Pg index = 2211

Case 1:

Pg index=2221

Case 2:

Pg index=2231

.

.

Gotopggen

End Sub.

Categories : Softwares Tags : ,

Page Maker Software: Program code – part 2

Posted by 24 February, 2009 (0) Comment

The code used in ‘file saves’ click event saves the document:
Private sub filesave_Click (Index as Integer)
Set thisdoc = mywordapp. Active Document
If thisdoc. Saved = True Then
Vbresult = MsgBox (“File already saved, overwrite it?” vb Question,”FILESAVE”)
If vbresult = True Then
thisdoc. Save
Else
Thiddoc.Close (wdDo not save Changes)
End If
Else
Thisdoc. Save
End If
End Sub.
The code used in ‘file save as’ click event opens common dialogue controls, asks for the file name to save and saves the document with that file name:
Private Sub filesaveas_Click (Index as Integer)
Dim filename As String
Common dialog1.ShowSave
Filename = Commondialog1.filename
Set thisdoc = mywordapp. Active Document
Thisdoc.SaveAs filename, , , , true
Thisdoc.Close (wdDoNotSavechanges)
Mywordapp. Quit (wdDo Not save Changes)
End Sub.
The code used in ‘file close’ click event closes the program:
Private Sub fileclose_Click (Index As Integer)
If this doc Is Nothing then
Mywordapp.Quit (wd DO NOTSaveChanges)
Resetcombar ‘to enable disabled menu bar items
End
Else
Resetcombar ‘to enable disabled menu bar items
Mywordapp.Documents (1).Activewindow.WindowState=wdWindowStateNormal
Mywordapp. Documents (1).Close (wdDoNotSaveChanges)
Mywordapp. Quit (wdPrompt To save Changes)
End
End If
End Sub.

Categories : Softwares Tags : , ,

Page Maker Software: Program code – part 1

Posted by 24 February, 2009 (0) Comment

The ‘mywordapp’ object to work with MS word application. The ‘this doc’ document object is used to work with the new or existing document, ‘this range’ object t work with the selected range in the document, and ‘my view’ object to view a select page or pages in the active window. The code for the MS Word application used in the program is:
If mywordapp Is Nothing then
Set mywordapp = Create Object (“word. Application”)
mywordapp. Visible = False
End If
The necessary program code is almost associated with click events of menu items. You can create a new document and activate it with the following code :
If mywordapp Is Nothing Then
Set mywordapp = Create Object (“word. Application”)
Set thisdoc = mywordapp.Documents.Addthis doc.Activate
Open an existing document using Microsoft windows common dialogue control and activate it using following code:
CommonDialog1.Filter = “word Document |*.doc”
CommonDialog1.ShowOpen
Filename = CommonDialog1.filename
Set thisdoc = mywordapp. Documents. Open (file name) thisdoc. Activate

Categories : Softwares Tags : , ,

MATLAB

Posted by 29 December, 2008 (0) Comment

MATRIX LABORATORY is also called as MATLAB. MATLAB is one of the Well-Performance Language for Technical Computation. Two types of software developed projects, called “LINPACK and EISPACK” are used to easily access the matrix software. The interactive system was given on the importance of take solutions in a fraction of time to solve many technically computing problems. The computation language is integrated by Programming functions, Visualization in an easy-to-access environment. Where, the Problems and solutions are expressed in mathematical notations.
Main uses shut in follows,

  • Data Exploration ,Acquisition ,Analyzing &Visualization
  • Engg drawing and Scientific graphics
  • Analyzing of algorithmic designing and development
  • Mathematical functions and Computational functions
  • Simulating problems prototyping and modeling
  • Application development programming using GUI building environment.
Categories : Softwares Tags : ,

MATLAB System shut in five main parts

Posted by 5 December, 2008 (0) Comment
  • Development Environment
  • MATRIX LABORATORY Mathematical function library
  • MATLAB Language
  • Graphics
  • Matrix laboratory API.

Development Environment is the collection of tools, used to create a MATLAB functions and record files.
MATLAB mathematical function library is a huge collection of mathematical (or) Derivative problem solving operations, In problem solving operations the algorithms ranges from basic elementary functions to more sophisticated functions. Sine, Cosine, Sum and complex arithmetic terms are few uncomplicated functions. Bessel functions, Matrix inverse, Matrix Eigen values and Fast Fourier Transform (FFT) are some complicated functions.
MATRIX LABORATORY Language is a one of the high-level array language with control flow statements, functions, data structures, input output and OOP features.
MATLAB has so many facilities for displaying vectors, matrices as graphs. It includes of two level functions like high-level & low-level. High level functions includes Two dimensional data Visualization, Three dimensional Visualization, Animated, Image processing and Presentation graphics. Low level functions can be used to completely modify the Well-being of graphics as well as to build a complete GUI on MATLAB applications.
MATLAB Application Program Interface, that allows writing C and FORTRAN programs, can interact with MATLAB. Matrix laboratory is a dynamic linking, called as a computational engine to use reading and writing MAT-files.

Moreover, Magic functions are also used in MATLAB. The magic function helps us to create magic squares easily as well as in variable sizes. It is one of the built-in-function of MATLAB. Magic square order is defined as the sum of elements in each column (or) each row is the same and equal values.
EX:
The magic square of order, M = Magic (4)

M = 17 4 5 13
9 12 10 8
7 13 16 3
6 10 8 15
The sum of any row or column values is equal to 39. Now a day, MATLAB engine is being as a part of the LAPACK and BLAS libraries, embedding the position of the art in software for array computation. Matrix Laboratory Toolboxes are collections of MATLAB functions including magic files and a part of the MATLAB environment to solve specific problems.
MATLAB Tool box covers the following processes,

  • Signal processing
  • Fuzzy logic
  • Wavelets
  • Simulation
  • Control system
  • Neural networks.
Categories : Softwares Tags :

ss_blog_claim=898f42e4fcff34c1bf6fadbb2ec183cf ss_blog_claim=898f42e4fcff34c1bf6fadbb2ec183cf