Betul Pak Ishak, bahwa RecordSelectionFormula itu untuk field dan coba deh
buak lagi CR 10 waktu create new connection pilih yang "File System Data".
Nah dengan fasilitas ini, sebetulnya kita bisa membuat report untuk daftar2
file yang ada di dalam direktori tertentu yg kita inginkan.
Jadi, databasenya yang ini adalah daftar file2 di PC atau Server.
Problemnya, dulu waktu pake CR 8.5 saya sukses dan gagal di CR 10 karena
konteks dan syntaxnya berbeda. Tapi kalo saya tidak pake statement
RecordSelectionFormula, VB tetap bisa menampilkan report daftar file2 yang
ada secara keseluruhan tanpa harus difilter. Padahal dalam kebutuhan saya
saat ini khan harus difilter berdasarkan query di dialog box...!!
Kira2 apa ada trik lain yaa atau kita tetap selesaikan masalah syntax :
xFileMap = "'" & txtFilenameUpload.Text & "'"
'directory servernya adalah \\ServerDocument\doc$
Report.RecordSelectionFormula = "{__ServerDocument_doc$_.File Name}
CRViewer1.ViewReport
Coba bandingkan dengan waktu saya pakai CR 8.5 :
xFileMap = txtFilenameUpload.Text
xFileMap = "'" & xFileMap & "'"
Rpt.ReportFileName = App.Path + "\" + "report\" + "Checklist.rpt"
'directory servernya adalah \\ServerDocument\doc$
Rpt.ReplaceSelectionFormula ("{\\ServerDocument\doc$\.File Name} = "
& Teks)
Rpt.Action = 1
Dimana yaaa salahnya..?
"Ishak"
<[EMAIL PROTECTED]
a.com> To
Sent by: <[email protected]>
[EMAIL PROTECTED] cc
oogroups.com
Subject
RE: [Programmer-VB] Masalah report
06/29/05 05:02 PM Local File System dg CR10..
Please respond to
[EMAIL PROTECTED]
oogroups.com
Bukannya RecordSelectionFormula itu harus nama field.
Apa bukan Report.ReportFileName atau yg semacamnya
Maaf, soalnya udah lama ndak pakai VB.
Ishak
>-----Original Message-----
>From: [email protected] [mailto:[EMAIL PROTECTED]
>On Behalf Of [EMAIL PROTECTED]
>Sent: Wednesday, June 29, 2005 4:51 PM
>To: [email protected]
>Subject: [Programmer-VB] Masalah report Local File System dg CR10..
>
>
>
>
>
>Hi all,
>
>pernah ada yang pakai Loacl File System ngga untuk membuat laporan daftar2
>file di PC Lokal atau remote PC/Server..?
>Saya dulu pernah pake CR 8.5 bisa sukses, tapi kenapa pas pake CR 10 gagal
>yaa...??
>
>Berikut source di VB6 saya :
>
>
>Private Sub Cmd_Click()
> xFileMap = "'" & txtFilenameUpload.Text & "'"
> Screen.MousePointer = vbHourglass
> 'directory servernya adalah \\ServerDocument\doc$
> Report.RecordSelectionFormula = "{__ServerDocument_doc$_.File Name}
=
>" & xFileMap
> CRViewer1.ReportSource = Report
> CRViewer1.ViewReport
> Screen.MousePointer = vbDefault
>End Sub
>
>Herannya pada saat command Report.RecordSelectionFormula =
>"{__ServerDocument_doc$_.File Name} = " & xFileMap
>ada error "this field is not known" dan saya coba tanda $ saya hilangkan
>tidak error tapi laporan saya tidak muncul...!!
>
>Kenapa yaa..? bagaimana CR 10 bisa mengenal directory yang ada tanda $..?
>Padahal tanda $ ini tetap saya butuhkan untuk hide sharing ke user..!!!
>Kalo saya lihat di DSRnya nama directorynya tidak ada tanda $ dan yang
saya
>heran kenapa di CR10 harus didefinisikan tanda 2 underscore (__) bukan \\
>
The contents of this e-mail may be confidential and the unauthorized use,
copying, or dissemination of it and any attachments to it, is prohibited.
Internet communications are not secure and Dexa Group companies do not,
therefore, accept legal responsibility for the contents of this message nor
for any damage caused by viruses. The views expressed here do not
necessarily
represent those of Dexa Group companies.
Untuk keluar dari millis ini, kirim email kosong ke:
[EMAIL PROTECTED]
Yahoo! Groups Links
**********************************************************************
This e-mail and any files transmitted with it may contain
confidential information and is intended solely for use by
the individual to whom it is addressed. If you received
this e-mail in error, please notify the sender, do not
disclose its contents to others and delete it from your
system.
**********************************************************************
Untuk keluar dari millis ini, kirim email kosong ke:
[EMAIL PROTECTED]
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/Programmer-VB/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/