Home > database >  Through GetFileOpenName () open the EXCEL file, run in the PB11 environment can be, but to make afte
Through GetFileOpenName () open the EXCEL file, run in the PB11 environment can be, but to make afte

Time:09-28

Can run in PB11 environments, but to make after WEB publishing, appear the following error,,, please experts misgivings, thank you!
Specific code is:
String path and filename, au_hj
An integer value, the result

String au_lname fa_zhan_ren, ke_hu_bei_zhu
Dec haoma
Integer i_id=1, i_count i_zhixiao, I=1

//
//st_1. Text=""
//st_1. Visible=true
//
//st_1. Text="is empty table... "
//delete from data_zhixiao;//remove the original data
//
//CONNECT USING the SQLCA.
//
//dw_1. SetTransObject (SQLCA)

Value=https://bbs.csdn.net/topics/GetFileOpenName (" Select File ", the path and filename, "like", "the.xls Files (*. XLS), *. XLS", "c: \ TEMP)"

CodePudding user response:

In open File selection box: My File System at the Server c: temp f: SOFT - lenovo's original concept LZJ PB11 example of NEW

CodePudding user response:

Compiled c: \ temp directory is in the release directory app_root/file/session/random connection id is not in the client, the first to open after planted

CodePudding user response:

I am a PB11 beginner, whether to tell the detailed, such as: how to download? What am I going to do to successfully open the file, could you step by step to teach me? Be very grateful!

CodePudding user response:

I don't know whether your problem is the same with me, but I have tried on BS "print", "turn archives for EXCEL", even "mail" is written with CS is completely different,
Such as a list of machine: why is CS architecture is client side computer printer, but I can't rewrite BS way if printer is enabled on the SERVER side.
So when we use the list to later. PDF to solve the problem of printing; Turn archives is more complex, it is the use of "easerver"!
Concept is a little different, I hope this information helpful to you!

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
The following is a BS writing:
# if defined PBWEBFORM then
DownloadFile (" ZZZ. PDF ", false)//true=open, false=download
# end if

CodePudding user response:

I tried the downloadfile but downloadfile unknown function, how to do?

If dw_0. SaveAs (a.x "ls", Excel! , True) & lt;> 1 then
Downloadfile (" Amy polumbo df ", false)
end if

CodePudding user response:

Could it be the cause of the operating system? Publish directories under win2k IIS sometimes set read-only property, Internet user permissions can sometimes be restricted

CodePudding user response:

Well,
And digging up the old post...

CodePudding user response:

reference 5 floor youyoutianxia reply:
I tried the downloadfile but downloadfile unknown function, how to do?

If dw_0. SaveAs (a.x "ls", Excel! , True) & lt;> 1 then
Downloadfile (" Amy polumbo df ", false)
End the if



If there is a "#" in front of the
  • Related