Please note I am supplying the File Name with path to
SaveAs()
How can I save as .pdf on one click (without user to specify
the file name) ???
with the dw_17.Print() function, it open the .pdf file but
user has to type the file name and specify the save
location.
How can it be one click save to a .pdf file.
My Save as .pdf button's clicled event code:-
int li_ret, ll_row
String ls_con_cde, ls_file_nm
tab_1.tabpage_17.dw_17.AcceptText()
//Get the Order No.
ll_row = tab_1.tabpage_17.dw_17.GetRow()
ls_con_cde = tab_1.tabpage_17.dw_17.GetItemString(ll_row,
"con_cde")
ls_file_nm = "R:\PDFS\VCI-CERT\" + ls_con_cde + ".pdf"
//Save as PDF
tab_1.tabpage_17.dw_17.Object.DataWindow.Export.PDF.Method =
Distill!
tab_1.tabpage_17.dw_17.Object.DataWindow.Printer = "Adobe
PDF"
tab_1.tabpage_17.dw_17.Object.DataWindow.Export.PDF.Distill.CustomPostScript="Yes"
tab_1.tabpage_17.dw_17.SetRedraw(TRUE)
li_ret = tab_1.tabpage_17.dw_17.SaveAs(ls_file_nm, PDF!,
TRUE)
tab_1.tabpage_17.dw_17.Print()
--
Report Bugs to Sybase: http://case-express.sybase.com/cx/welcome.do
Product Enhancement Requests:
http://my.isug.com/cgi-bin/1/c/submit_enhancement
<NILADRI CHATTERJEE> wrote in message
news:4adfa224.220...@sybase.com...