Hi Romank
in header file i specified all my field names
my data is in one file, while executing what should i do?
i means that,what are the paramater have to specify?
please follow my files
my templete file
-----------------
OUTSTANDING MEDICAL REPORT
1ST REMINDER
Date:?SysDate?
Dr. ?DocName?
Department: ?DeptName?
PATIENT’S NAME /HRN |
?PatientName?/?HRN? |
REQUESTER |
?Requester? |
REPORT NAME |
?ReportName? |
DATE REQUESTER SEND TO DOCTOR |
?DateRequest? |
DUE DATE (COMPLETION REPORT) |
?DueDate? |
Appreciate if we could have the completed report from you by ?EndDate? as requester is expecting the report from the hospital by ?R1DueDate?
my Data file (txt file)
--------------------
1|info@kkh.com.sg|sham@kkh.com.sg|ongph@kkh.com.sg|Delay in MR Preparation by Docotor|E:\Gurusoft\6000 Projects\6007\6007-01\Reminders\RDOC01|Manual|MR-0038-04|KKH|2004-07-16 00:00:00.000|NAIR SHAMINI|GENERAL OBSTETRICS & GYNAECOLOGY|NIRMALA D/O KANAGASABAI|S6847077C|American International Assurance Co Ltd -Group Hospital & Surgical Claims|ORDINARY MEDICAL REPORT (INSURANCE)|2004-06-29 17:06:59.000|2004-07-16 00:00:00.000|2004-07-16 00:00:00.000|2004-07-20 00:00:00.000
1|info@kkh.com.sg|lnsim@kkh.com.sg|ongph@kkh.com.sg|Delay in MR Preparation by Docotor|E:\Gurusoft\6000 Projects\6007\6007-01\Reminders\RDOC01|Manual|MR-0036-04|KKH|2004-07-16 00:00:00.000|SIM LEE NGOR|GENERAL OBSTETRICS & GYNAECOLOGY|WONG LAI KUIN|A0849022B|OTHERS|ORDINARY MEDICAL REPORT (INSURANCE)|2004-06-29 17:05:32.000|2004-07-16 00:00:00.000|2004-07-16 00:00:00.000|2004-07-20 00:00:00.000
1|info@kkh.com.sg||ongy@kkh.com.sg|Delay in MR Preparation by Docotor|E:\Gurusoft\6000 Projects\6007\6007-01\Reminders\RDOC01|Manual|MR-0039-04|KKH|2004-07-16 00:00:00.000|GOH SHEN LI|GENERAL OBSTETRICS & GYNAECOLOGY|CHUA SIEW FANG|S1669791E|Aviva Limited Healthcare Claims|ORDINARY MEDICAL REPORT (INSURANCE)|2004-06-30 13:18:58.000|2004-07-16 00:00:00.000|2004-07-16 00:00:00.000|2004-07-20 00:00:00.000
1|info@kkh.com.sg|sham@kkh.com.sg|ongph@kkh.com.sg|Delay in MR Preparation by Docotor|E:\Gurusoft\6000 Projects\6007\6007-01\Reminders\RDOC01|Manual|MR-0038-04|KKH|2004-07-16 00:00:00.000|NAIR SHAMINI|GENERAL OBSTETRICS & GYNAECOLOGY|NIRMALA D/O KANAGASABAI|S6847077C|American International Assurance Co Ltd -Group Hospital & Surgical Claims|ORDINARY MEDICAL REPORT (INSURANCE)|2004-06-29 17:06:59.000|2004-07-16 00:00:00.000|2004-07-16 00:00:00.000|2004-07-20 00:00:00.000
1|info@kkh.com.sg|lnsim@kkh.com.sg|ongph@kkh.com.sg|Delay in MR Preparation by Docotor|E:\Gurusoft\6000 Projects\6007\6007-01\Reminders\RDOC01|Manual|MR-0036-04|KKH|2004-07-16 00:00:00.000|SIM LEE NGOR|GENERAL OBSTETRICS & GYNAECOLOGY|WONG LAI KUIN|A0849022B|OTHERS|ORDINARY MEDICAL REPORT (INSURANCE)|2004-06-29 17:05:32.000|2004-07-16 00:00:00.000|2004-07-16 00:00:00.000|2004-07-20 00:00:00.000
1|info@kkh.com.sg||ongy@kkh.com.sg|Delay in MR Preparation by Docotor|E:\Gurusoft\6000 Projects\6007\6007-01\Reminders\RDOC01|Manual|MR-0039-04|KKH|2004-07-16 00:00:00.000|GOH SHEN LI|GENERAL OBSTETRICS & GYNAECOLOGY|CHUA SIEW FANG|S1669791E|Aviva Limited Healthcare Claims|ORDINARY MEDICAL REPORT (INSURANCE)|2004-06-30 13:18:58.000|2004-07-16 00:00:00.000|2004-07-16 00:00:00.000|2004-07-20 00:00:00.000
my header file (txt file)
-------------
VerNo|Femail|ToEmail|ccEmail|Subject|Attachment|Manual|MRID|BOID|SysDate|DocName|DeptName|PatientName|HRN|Requester|ReportName|DateRequest|DueDate|EndDate|R1DueDate
(nothing but which are fields used in my templete file.)
while execute mailmerge , it should generate file with above data.
your example
--------------
doc.MailMerge.Execute( \_
New String() {"FullName", "Company", "Address", "Address2", "City"}, \_
New Object() {fullNameEdit.Text, companyEdit.Text, addressEdit.Text, address2Edit.Text, cityEdit.Text})
instead of this code i have to specify data file name, so where should i mention data file name?
or give me your phone no, i can call u .
pls help me , sorry for the trouble. pls.
thanks
kvreddy