?
Solved

Getting the user created file through dw.saveas()

Posted on 2008-06-10
3
Medium Priority
?
280 Views
Last Modified: 2013-12-26
1. I am exporting the data of a datawindow through dw.saveas(). I am not passing any filename to it, and hence the user has the flexibility to save it wherever desired and in whtaever name. How to get the path and filename of the resultant .xls file?
2. Even if I could lock the columns in the resultant .xls file, users can copy the contents to a new file. I want the copy menu item to be disabled, so that the contents can't be copied.
0
Comment
Question by:sisirpat
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 18

Accepted Solution

by:
diasroshan earned 200 total points
ID: 21897206
Hi,

1) Try using the following API to get the current directory,
Declaration:
Function ulong GetCurrentDirectoryA (ulong textlen, ref string dirtext) library "KERNEL32.DLL" alias for "GetCurrentDirectoryA;Ansi" //alias for "GetCurrentDirectoryA;Ansi"

Code:
ulong         lul_size = 260       /* MAX_PATH */
ulong         lul_Rc
String          ls_currentDir
ls_currentDir = Space ( lul_size )
lul_rc = GetCurrentDirectoryA ( lul_size, ls_currentDir )


Cheers,
Rosh
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Do you use a spreadsheet like Microsoft's Excel?  Have you ever wanted to link out to a non excel file on your computer or network drive?  This is the way I found to do it!
Access developers frequently have requirements to interact with Excel (import from or output to) in their applications.  You might be able to accomplish this with the TransferSpreadsheet and OutputTo methods, but in this series of articles I will di…
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question