Saya coba membantu, kalo saya biasanya convertnya gak pake code tapi lgs klik tombol export di CR viewer tapi sebelumnya di propersties CRViewer set display export button = true.
semoga bisa membantu, maklum saya pemula :D mungkin ada temen2 yg lebih expert yg mau nambahin silahkan. regards, Hery wan_16320 <[EMAIL PROTECTED]> wrote: Dear All, Please assist. Thanks Rgds/ Ridwan ----- Original Message ---- From: wan_16320 <[EMAIL PROTECTED]> To: [email protected] Sent: Wednesday, June 6, 2007 3:22:56 PM Subject: [Programmer-VB] Convert Crystal Report ke PDF Dear All, Saya butuh bantuan lagi nih, masih mengenai export Crystal Report ke PDF Saat ini File RPT Selalu saja tidak me-reflek ke Database nya sehingga sewaktu diconvert ke PDF data selalu Kosong, karena bila saya pindahkan program, Database dan file Rpt ke Direktori lain, file RPT selalu error bila dibuka di crystal report dengan message bahwa database ada, sehingga harus di "Link" kembali. Mohon dicek script untuk Crystal Report agar selalu me-reflect ke Database-nya Saya mempunyai script seperti dibawah ini. Thanks atas bantuannya Rgds/ Ridwan Dim crx As New CRAXDRT.Application Set report1 = crx.OpenReport( App.Path & "\Report.rpt" , 1) Crt.DataFiles( 0) = App.Path & "\LocDB.mdb" report1.DiscardSave dData report1.ExportOptio ns.FormatType = crEFTPortableDocFor mat report1.ExportOptio ns.DestinationTy pe = crEDTDiskFile report1.ExportOptio ns.DiskFileName = app.path & "\Report.pdf" report1.Export False --------------------------------- Finding fabulous fares is fun. Let Yahoo! FareChase search your favorite travel sites to find flight and hotel bargains. --------------------------------- Be a PS3 game guru. Get your game face on with the latest PS3 news and previews at Yahoo! Games. --------------------------------- Fussy? Opinionated? Impossible to please? Perfect. Join Yahoo!'s user panel and lay it on us.
