Halaman

WARNING!!
Please do not post links crack / patch in your comment

Monday, November 14, 2011

Paper Size In XtraReport DevExpress

Bagaimana membuat ukuran kertas yang sesuai dengan kebutuhan, ini juga berkaitan dengan bagaimana membuat ukuran kertas yang di sesuaikan dengan kebutuhan program. Permasalahan ini sering muncul jika kita menggunakan printer dot matrik atau ukuran kertas yang tidak standard.

Contoh kasus berikut adalah membuat ukuran kertas menjadi : Lebar 21.5 cm dan Tinggi 11.5. Menggunakan Windows 7,  Device and Printer



Pilih Printer, kemudian klik tombol "Print server properties", maka akan tampak gambar berikut :


Langkahnya sebagai berikut :
1.  Checklist pada "Create a new form" seperti yang pada lingkaran di atas
2.  Pada "Form name " berikan nama Custom
3.  Pada "Units", pilih Metric, maka otomatis satuannya menjadi centimeter (cm)
4.  Isikan di Width dengan 21.5cm
5.  Isikan pada Height dengan 11.5cm
6.  kemudian tekan tombol "Save Form"


Jika program menggunakan ukuran kertas yang tidak standard, maka lakukan untuk semua client anda seperti langkah di atas. Jadikan ukuran kertas "Custom" sebagai defauld dari ukuran kertas, jika ukuran kertas di client tidak di rubah maka hasil dari print  akan mencetak sesuai dengan default printer tersebut.



Sampai pada langkah ini, anda sudah harus memastikan defauld ukuran kertas adalah Custom untuk semua Client yang menggunakan program anda, jika tidak maka hasil cetakan tidak sesuai, ini berlaku buat XtraReport maupun Crystal Report.

Langkah berikutnya adalah setting ukuran kertas pada XtraReport, yaitu pada properties, ini hanya pada saat membuat program saja, hasil print tetap akan mengacu pada default ukuran kertas di printer tujuan.


hasil dari print tersebut sebagai berikut :



Selamat mencoba.....





Tuesday, November 1, 2011

Export Data from GridControl DevExpress

Bagaimana caranya jika kita ingin Export data dari GridView atau GridControl ke dalam bentuk Excel, PDF atau Text file.


Dalam Latihan ini selain Export data ke dalam bentuk Excel, PDF dan Text file, anda juga bisa untuk melakukan Preview terlebih dahulu , dalam preview tersebut anda bisa Export ke berbagai format yang telah di sediakan.  Berikut contoh Scripts untuk Export data ke Excel :

             Using savdlg As New SaveFileDialog
                    savdlg.Filter = "Excel Documents (*.xls)|"
                    savdlg.DefaultExt = "xls"
                    savdlg.AddExtension = True
                    If savdlg.ShowDialog() = Windows.Forms.DialogResult.OK Then
                        MsgBox(savdlg.FileName)
                        GridView1.ExportToXls(savdlg.FileName)
                        MessageBox.Show("Export Excel Success", "Export",   MessageBoxButtons.OK, MessageBoxIcon.Information)
                    End If
                End Using


Download
ExportDatafromGridControl

Create Report (Basic) With XtraReport DevExpress

Untuk membuat report dengan XtraReport, saya akan membaginya dalam beberapa tahap dan saya menggunakan database access untuk menampilkan data ke dalam XtraReport.

Dalam pembahasan ini, mungkin akan banyak gambar yang di tampilkan, sehingga untuk pemula yang menggunakan XtraReport bisa lebih membayangkan langkah langkah yang harus di perhatikan. Berikut tahapan dalam membuat report dengan Xtrareport.


Basic Control
Buatlah New Project untuk windows application sebagai latihan membuat report, kita namakan dengan XtraReportBasic, setelah terbentuk project, pada form1 lebarkan sesuai dengan keinginan anda, setelah itu masukkan control berikut kedalam form1.
  • PrintBarManager
  • PrintingSystem


Baiklah, dalam tahap ini , control yang digunakan dalam pembuatan report hanya dua (2) seperti dalam penjelasan di atas.



Dataset
Dataset ini kita perlukan untuk mengambil field dalam table yang akan di tampilkan dalam report, dataset ini membantu untuk merancang tampilan di report sehingga report yang dibuat sesuai dengan keingginan kita.

Dalam pembuatan Dataset ini tergantung dari database yang akan digunakan, setiap database mempunyai cara tersendiri untuk koneksinya dan dalam pembuatannya ada beberapa cara untuk membuat dataset, anda bisa melakukan dengan cara anda sendiri, tidak harus sama dengan artikel ini. Dalam contoh artikel ini, saya akan menggunakan database access.

Pada Project utama, klik kanan mouse, pilih Add, kemudian component, setelah itu pilihlah Dataset, maka akan terbentuk tampilan Dataset, pada Design Dataset klik kanan mouse, kemudian pilihlah TableAdapter, seperti gambar dibawah.



Setelah anda pilih TableAdapter, maka akan tampak seperti berikut :



Karena kita akan menggunakan database acces, maka kita harus mengganti Data Source, klik pada tombol Change, maka akan tampak seperti berikut :


Pilihlah Microsoft Access Database File, maka pada Data provider akan otomatis menjadi ".NET Framework Data Provider for OLEDB" , kemudian klik OK.


Setelah memilih Data Source, kemudian klik tombol Browse... ambil database yang akan digunakan, setelah selesai, masukkan Password database jika ada, jika tidak ada maka kosongkan saja. Jika ingin mencoba apakah koneksi ke database berhasil, tekan tombol Test Connection, jika koneksi berhasil maka akan muncul Connection Successeful, klik tombol OK jika telah selesai.




Jika telah selesai, maka anda hanya tekan tombol Next untuk berikutnya sampai pada posisi nomor 4 pada gambar diatas, pada gambar di atas saya mengambil semua data pada table sample, anda bisa membuat query tersendiri melalui Query Builder.., jika sudah selesai tekan tombol Next


Pada "Create Method to Generate", anda bisa mengganti / merubah keterangan tersebut seperti pada gambar di atas. Jika sudah selesai tekan tombol Finish. maka akan terbentuk TableAdapter seperti pada gambar di bawah ini.


sampai pada posisi ini, kita telah melakukan dua langkah untuk mempersiapkan pembuatan report dengan XtraReport. kita akan melangkah ke tahapan berikutnya.


PopUpMenu In Row GridControl DevExpress

Jika anda terbiasa dengan menggunakan ContexMenuStrip, bagaimana jika kita membuatnya dengan menggunakan PopUpMenu DevExpress, pada artikel sebelumnya yaitu Basic Control DevExpress, anda sudah diperkenalkan pada PopUpMenu.


Sedikit mengulang saja, untuk membuat Menu pada PopUpMenu harus selalu berdampingan dengan BarManager, pertama kali anda menaruh BarManager di dalam form, maka akan terbentuk tiga(3) menu yaitu : Main Menu, Tools dan Status Bar. Anda harus menghapus semua menu tersebut jika anda tidak memerlukannya.

Untuk PopUpMenu, anda harus menentukan terlebih dahulu posisi mouse jika di klik kanan oleh user, penentuan posisi mouse inilah yang menjadi kunci.

GridView1.CalcHitInfo(GridControl1.PointToClient(MousePosition))

Download
PopUpMenuInGridControl

ContexMenu In Row GridControl DevExpress

Biasanya, jika kita menempatkan ContextMenuStrip di dalam GridControl, kita dapat menaruhnya di properties GridControl, tapi bagaimana jika kita ingin menempatkan ContexMenuStrip pada Row GridControl tersebut. Seperti gambar berikut :


Kita bisa menempatkan ContexMenuStrip tersebut pada saat posisi mouse di klik kanan oleh user, sehingga keluar menu yang dibuat di ContexMenuStrip tersebut.
Dim view As GridView = CType(sender, GridView)
Dim hitInfo As GridHitInfo = view.CalcHitInfo(e.Point)

If hitInfo.InRow Then
     view.FocusedRowHandle = hitInfo.RowHandle
     ContextMenuStrip1.Show(view.GridControl, e.Point)
End If

Anda dapat mengkombinasikan dengan keperluan atau kebutuhan program yang anda buat, semoga membantu.


Download
ContextMenuStripInGridControl

QIOS DevSuite Free for Visual Studio

QIOS DevSuite is an advanced .NET control library, that is fully integrated with Visual Studio.NET and can be used with all .NET languages, such as C#, VB.NET and C++.NET.


QIOS DevSuite is a FREE pruduct!

Yes, it's free! No activation and no limitations. Check our licensing policy and just register before you start.

Advanced Controls and Great Features
QIOS DevSuite contains more than 30 advanced controls that make it possible for you to create advanced graphical user interfaces. All controls are highly configurable and with great precision. Furthermore QIOS DevSuite contains a list of great features that make developers work so much easier.



You can download QIOS DevSuite directly from this website. All our software is digitally signed by QIOS B.V. Do not accept or install any packages without our digital signature.


By downloading and using the software from this website, you agree to the terms and conditions of the End User License Agreement (EULA). If you do not agree with such terms and conditions do not download or use the software.
By downloading, I agree with the terms and conditions of the EULA
QIOS DevSuite 4.0.0.20 (2011-05-17)

This version is built on Microsoft .NET 2.0

  • Qios.DevSuite.Components.dll
  • Sample Projects (Visual Studio 2005)
  • Microsoft Help File
  • Visual Studio Integration (Visual Studio 2005, 2008 and 2010)
  • Can be Side-By-Side installed with versions 1.X, 2.X and 3.X



QIOS DevSuite 3.0.0.20 (2009-07-20)

This version is built on Microsoft .NET 1.1

  • Qios.DevSuite.Components.dll
  • Sample Projects (Visual Studio 2003)
  • Microsoft Help File
  • Visual Studio Integration (Visual Studio 2003, 2005 and 2008)
  • Visual Studio Integrated Help
QIOS Website

Oracle Developer Tools for Visual Studio

The Oracle Developer Tools for Visual Studio (ODT) is a tightly integrated "Add-in" for Microsoft Visual Studio. ODT is free and the new 11.2.0.1.2 production release now offers support for Visual Studio 2010. Visual Studio 2008, and Visual Studio 2005 are also supported.
  • Integration with Visual Studio: Use Server Explorer to browse your Oracle schema and launch one of the many integrated Oracle designers and wizards to create and alter schema objects. Use Microsoft Query Designer to visually design queries.
  • Automatic .NET Code Generation: Use the Visual Studio Datasources Window, the Dataset Designer, and the TableAdapter Configuration Wizard to drag and drop and automatically generate .NET code.
  • Easy ASP.NET Web Development: If you're an ASP.NET web developer, ODT makes it easy to generate ASP.NET web applications with minimal coding required.
  • Powerful Application Tuning Tools: New! Use Oracle Performance Analyzer to tune your .NET application's use of Oracle Database via a single click of a button. The database is then monitored under load and recommendations are made, such as modifications to SQL or adding an index on a table. You can also tune Ad-hoc SQL statements in Query Window with SQL Tuning Advisor.
  • SQL Script Lifecycle with Source Control Integration: Generate SQL scripts for Oracle schema objects that your .NET application uses, manage them in an Oracle Database Project, check them into source control, edit the scripts in the Oracle SQL Editor, and execute them with a built in SQL*Plus execution engine.
  • PL/SQL Editor and Debugger: The fully integrated PL/SQL Editor and Debugger allows you to leverage all of your favorite Visual Studio debugging features from within PL/SQL code. You can even seamlessly step from your .NET code into your PL/SQL stored procedure code and back out again!
  • NET Stored Procedure Deployment: The .NET Deployment Wizard makes it easy to deploy .NET stored procedures and functions into Oracle Database.
  • Integrated Online Help System: The integrated context sensitive online help, including the Oracle SQL and PL/SQL Users Guides puts the Oracle documentation at your fingertips.
  • Manage Users, Roles and Privileges: New! Create Users and Roles using graphical designers. Assign privileges to the roles and assign roles to users. View the Users and Roles in Server Explorer.
  • Oracle Advanced Queuing (AQ) Designers: New! Create, modify and administer your Queues and Queue Tables.
  • User-Defined Types (UDTs): Create UDTs in Oracle with multiple new designers. A powerful UDT Custom Class code generation wizard makes using UDTs from .NET code easy and fast.
  • Import Table Wizard: This wizard makes it easy to import tables and their data from Oracle databases, or from external datasources such as Microsoft SQL Server, Microsoft Access and Excel spreadsheets.
  • Data Editing, Stored Procedure Testing, Adhoc SQL Execution: When testing your .NET application you can use the Oracle Data Window to insert and update Oracle data. There's also a testbed for testing stored procedures and an Oracle Query Window for executing any SQL statement you choose.

Download:
 Download ODT 11.2.0.1.2 New! This release adds new support for Visual Studio 2010!

Watch Video Demonstrations:
 Introduction to ODT (External link to Microsoft Developer Network) New!


Guided Walkthroughs:
 Oracle by Example: SQL Tuning Advisor and Oracle Performance Analyzer New!
 Oracle by Example: Building ASP.NET Web Applications with ODT
 Oracle by Example: Building .NET Applications Using ODT
 Oracle by Example: Debugging Oracle PL/SQL from Visual Studio
 Oracle by Example: Using Oracle User-Defined Types with .NET and Visual Studio

for more info, please click here

OpenOffice

OpenOffice.org
OpenOffice.org 3 is the leading open-source office software suite for word processing, spreadsheets, presentations, graphics, databases and more. It is available in many languages and works on all common computers. It stores all your data in an international open standard format and can also read and write files from other common office software packages. It can be downloaded and used completely free of charge for any purpose.           

Great Software requires great people. OpenOffice.org 3 is the result of over twenty years' continuous high quality software engineering. Designed from the start as a single piece of software, OpenOffice.org 3 has a consistency and a quality that is world class. Its open-source development model means there are no secrets.
Roll your mouse over the screenshots for more details of the main components (requires javascript).           

 
Easy-to-useEasy to choose, easy to install, easy to learn - OpenOffice.org 3 is the easy choice for an office software suite. OpenOffice.org 3 is suitable for complete beginners, but if you have used any other office software, that's ok too. OpenOffice.org 3 will make full use of what you already know - through familiar screens and menus - and also what you have - by reading existing files with no retyping.


Free software
OpenOffice.org 3 is free software. That means you are free to download it, free to install it on as many PCs as you like, free to pass copies to as many people as you like. You may use OpenOffice.org 3 for any purpose without restriction: private, educational, public administration, commercial... Free, really free.

 read more Get OpenOffice.org 3 now

Search This Blog