Foxpro "Report form" 問題?

本人有以下一段程式是用 foxpro 寫, 其中"cutepdf writer"係一個專門產生PDF 檔的驅動. 請問有甚麼方法可以ASSIGN 一個檔案名給產生出來的PDF 檔, 即是話可以在一個FOR LOOP 入面產生三個PDF檔?

For i = 1 to 3
.
report form abc to "cutepdf writer" nowait
.
endfor

For i = 1 to 3
   a = "abc" + str(i,1)
   report form &a to "cutepdf writer" nowait
endfor

TOP

回覆 2# 的帖子

sorry , it is the correct one.

For i = 1 to 3
   a = "cutepdf_writer" + str(i,1)
   report form abc to &a nowait
endfor

TOP

原帖由 neltyl 於 2009-9-5 09:53 AM 發表
sorry , it is the correct one.

For i = 1 to 3
   a = "cutepdf_writer" + str(i,1)
   report form abc to &a nowait
endfor


多謝解答,有問題,  "cutepdf_writer" 係一個Printer Queue Name, 如果像你的第二句, 個Printer Queue Name咪會變咗第二個Printer Queue Name, 咁樣咪行吾到.

TOP

回覆 4# 的帖子

Oh sorry , I don't know.

you will need to check how to pass the pdf file's name to the printer driver through the print queue.

TOP