I have some pdf files that I have permission to display on my website, but do not have permission to distribute (i.e. let people download, print, share) without them first requesting permission in writing. How would you recommend doing this? Is there any way to embed the pdf in a flash element...
Would it be possible to emulate this behaviour using the clipboard object? This seems like a pretty week solution, but it works when you use the clipboard manually as opposed to using file copying code. If I could copy the file to the clipboard and then paste it to the destination folder, do you...
It's a database utitlity of sorts. First it tries to compact an access 2000 database by making a shell call to JetComp.exe. If it fails (presumably because it's locked by someone on the network) it tries to copy the file from the network to a local temp folder (this is where the error is...
Here's the code that calls the SHFileOP:
Dim lRet As Long
Dim fileop As SHFILEOPSTRUCT
With fileop
.hwnd = 0
.wFunc = FO_COPY
.pFrom = fromLoc
.pTo = toLoc
.lpszProgressTitle = strMessage
.fFlags = FOF_SIMPLEPROGRESS Or...
I changed the code as follows and still have the same problem. Is there any other code I should be using to copy a file that may be opened by someone? The client gets the error using the code below, but has no problem doing a copy and paste using explorer.
Private Function SHFileOP(ByRef...
I use the SHFILEOPSTRUCT to copy an access database file from one folder to another. The only problem is if I step through this code while the database is open, I get error "Cannot copy file: Cannot read from the source file or disk." This only happens if I use F8 to step through the code in the...
Here is the code I'm using to connect to an Access 2000 database:
dim cn as adodb.connection
set cn = new adodb.connection
cn.open "Provider=Mircrosoft.Jet.OLEDB.4.0; Data Source=" & sDbPath & ";"
I've used it on all sorts of other projects with no problem. I shipped a VB6 program to a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.