Using crystal report pada Visual C++ 6.0
1. Buat project (MFC->Exe)
2. Tambahkan komponen ACtive X, Crystal Report VIewer COntrol. Tentunya anda telah menginstall crystal report.
3.Namakan member variabel untuk komponen tsb, m_viewer
4. Tambahkan pada line, CDlg.h setelah #endif sebelum deklarasi kelas CDLG
#import "c:\\Program Files\\Seagate Software\\Report Designer Component\\craxdrt.dll" no_namespace
path tersebut tergantung dari lokasi library craxdrt.dll pada komputer anda
5.Tambahkan file craxdrt.tlh pada File View untuk Resource File, kalo tidak ada pada direktori yang sama dengan file aplikasi cari pada direktori debug.
6.Pada kelas CDlg, tambahkan variabel anggota, dengan permission protected
IApplicationPtr m_Application;
IReportPtr m_Report;
VARIANT dummy;
7. Tambhkan script berikut pada initdialog
bstr_t ReportPath("c:\\Program Files\\Seagate Software\\Crystal Reports\\Samples\\Reports\\General Business\\Inventory.rpt");
_variant_t vtEmpty(DISP_E_PARAMNOTFOUND, VT_ERROR);
// Instantiate the IApplication object
m_Application.CreateInstance("CrystalRuntime.Application");
//Open the Report using the OpenReport method
m_Report = m_Application->OpenReport(ReportPath,dummy);
//m_Report->Release();
//Print the Report to window
m_cris.SetReportSource(m_Report);
m_cris.ViewReport();
8. Tes aplikasi anda...selamat mencoba.
2. Tambahkan komponen ACtive X, Crystal Report VIewer COntrol. Tentunya anda telah menginstall crystal report.
3.Namakan member variabel untuk komponen tsb, m_viewer
4. Tambahkan pada line, CDlg.h setelah #endif sebelum deklarasi kelas CDLG
#import "c:\\Program Files\\Seagate Software\\Report Designer Component\\craxdrt.dll" no_namespace
path tersebut tergantung dari lokasi library craxdrt.dll pada komputer anda
5.Tambahkan file craxdrt.tlh pada File View untuk Resource File, kalo tidak ada pada direktori yang sama dengan file aplikasi cari pada direktori debug.
6.Pada kelas CDlg, tambahkan variabel anggota, dengan permission protected
IApplicationPtr m_Application;
IReportPtr m_Report;
VARIANT dummy;
7. Tambhkan script berikut pada initdialog
bstr_t ReportPath("c:\\Program Files\\Seagate Software\\Crystal Reports\\Samples\\Reports\\General Business\\Inventory.rpt");
_variant_t vtEmpty(DISP_E_PARAMNOTFOUND, VT_ERROR);
// Instantiate the IApplication object
m_Application.CreateInstance("CrystalRuntime.Application");
//Open the Report using the OpenReport method
m_Report = m_Application->OpenReport(ReportPath,dummy);
//m_Report->Release();
//Print the Report to window
m_cris.SetReportSource(m_Report);
m_cris.ViewReport();
8. Tes aplikasi anda...selamat mencoba.
Using crystal report pada Visual C++ 6.0
1. Buat project (MFC->Exe)
2. Tambahkan komponen ACtive X, Crystal Report VIewer COntrol. Tentunya anda telah menginstall crystal report.
3.Namakan member variabel untuk komponen tsb, m_viewer
4. Tambahkan pada line, CDlg.h setelah #endif sebelum deklarasi kelas CDLG
#import "c:\\Program Files\\Seagate Software\\Report Designer Component\\craxdrt.dll" no_namespace
path tersebut tergantung dari lokasi library craxdrt.dll pada komputer anda
5.Tambahkan file craxdrt.tlh pada File View untuk Resource File, kalo tidak ada pada direktori yang sama dengan file aplikasi cari pada direktori debug.
6.Pada kelas CDlg, tambahkan variabel anggota, dengan permission protected
IApplicationPtr m_Application;
IReportPtr m_Report;
VARIANT dummy;
7. Tambhkan script berikut pada initdialog
bstr_t ReportPath("c:\\Program Files\\Seagate Software\\Crystal Reports\\Samples\\Reports\\General Business\\Inventory.rpt");
_variant_t vtEmpty(DISP_E_PARAMNOTFOUND, VT_ERROR);
// Instantiate the IApplication object
m_Application.CreateInstance("CrystalRuntime.Application");
//Open the Report using the OpenReport method
m_Report = m_Application->OpenReport(ReportPath,dummy);
//m_Report->Release();
//Print the Report to window
m_cris.SetReportSource(m_Report);
m_cris.ViewReport();
8. Tes aplikasi anda...selamat mencoba.
2. Tambahkan komponen ACtive X, Crystal Report VIewer COntrol. Tentunya anda telah menginstall crystal report.
3.Namakan member variabel untuk komponen tsb, m_viewer
4. Tambahkan pada line, CDlg.h setelah #endif sebelum deklarasi kelas CDLG
#import "c:\\Program Files\\Seagate Software\\Report Designer Component\\craxdrt.dll" no_namespace
path tersebut tergantung dari lokasi library craxdrt.dll pada komputer anda
5.Tambahkan file craxdrt.tlh pada File View untuk Resource File, kalo tidak ada pada direktori yang sama dengan file aplikasi cari pada direktori debug.
6.Pada kelas CDlg, tambahkan variabel anggota, dengan permission protected
IApplicationPtr m_Application;
IReportPtr m_Report;
VARIANT dummy;
7. Tambhkan script berikut pada initdialog
bstr_t ReportPath("c:\\Program Files\\Seagate Software\\Crystal Reports\\Samples\\Reports\\General Business\\Inventory.rpt");
_variant_t vtEmpty(DISP_E_PARAMNOTFOUND, VT_ERROR);
// Instantiate the IApplication object
m_Application.CreateInstance("CrystalRuntime.Application");
//Open the Report using the OpenReport method
m_Report = m_Application->OpenReport(ReportPath,dummy);
//m_Report->Release();
//Print the Report to window
m_cris.SetReportSource(m_Report);
m_cris.ViewReport();
8. Tes aplikasi anda...selamat mencoba.
The Horseman at Work
Release Me
Again South Now..moving to south, hopefully. Wis…
Again South
Now..moving to south, hopefully. Wish wish wish.
...to be continued.
-----------
You and Me vs The World
Riding The Wind
Good Morning Sunshine
mission (not so) impossible (anymore) 3
having seen the most wanted of my top list movies in this semester, i totally disappointed. MI:3 is sooo standard. Okay, we've seen all the tricks in this movie. such a "standard" communication technology, magnetic bomb, explosion. it's so present. it's not about future, though.. Why Cruise, don't have any other idea how to make people amazed? and why am i not surprised? hehehehe, kidding. i decide to see this movie at the first day show here in Jakarta just killing the time and wait for the traffic to be normal again. it's about the mayday riots in Jakarta, it makes transportation stagnant :(
i'm here not to criticize this movies. it has a nice story though. yeah, what kind of story would you like to see from a hero like Ethan Mathew Hunt? see the movie by your self then..
i don't know why do they (the paramount pictures?) choose Indonesia first than any other country (CMIIW) [see here] . is there any suspicion of this country to made a pirated copy of this movie? ;) i dunno, just a harsh accusation. :) or maybe Indonesia is a qualified country just like why Nokia pick Indonesia to launch their Nokia Communicator 9500 Series? hmmm...
Well, enough with those unpleasant things. i occasionally amazed with what the story tell me about. a tiny nitroglycerin-magnesium bomb implanted in brain thru one's nose? hmm.. i never thought about it. Another story is how Hunt managed to break a 56(?) story building just by swinging from the taller building. this movies told me that a country-within-country, Vatican, has a very secure boundaries. or it just a hyperbolic one? :) wondering if Indonesia could have had of those kind of securities item to watch guard the boundaries. No citizen could trespass the boundaries without any prior notice from customs... :)
~justanimpossibledream~personal blogsite
i'm here not to criticize this movies. it has a nice story though. yeah, what kind of story would you like to see from a hero like Ethan Mathew Hunt? see the movie by your self then..
i don't know why do they (the paramount pictures?) choose Indonesia first than any other country (CMIIW) [see here] . is there any suspicion of this country to made a pirated copy of this movie? ;) i dunno, just a harsh accusation. :) or maybe Indonesia is a qualified country just like why Nokia pick Indonesia to launch their Nokia Communicator 9500 Series? hmmm...
Well, enough with those unpleasant things. i occasionally amazed with what the story tell me about. a tiny nitroglycerin-magnesium bomb implanted in brain thru one's nose? hmm.. i never thought about it. Another story is how Hunt managed to break a 56(?) story building just by swinging from the taller building. this movies told me that a country-within-country, Vatican, has a very secure boundaries. or it just a hyperbolic one? :) wondering if Indonesia could have had of those kind of securities item to watch guard the boundaries. No citizen could trespass the boundaries without any prior notice from customs... :)
~justanimpossibledream~personal blogsite
