Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Getting the user created file through dw.saveas()

Posted on 2008-06-10
3
Medium Priority
?
282 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
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

Ask an Anonymous Question!

Don't feel intimidated by what you don't know. Ask your question anonymously. It's easy! Learn more and upgrade.

Question has a verified solution.

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

This article will guide you to convert a grid from a picture into Excel format using Microsoft OneNote and no other 3rd party application.
This article descibes how to create a connection between Excel and SAP and how to move data from Excel to SAP or the other way around.
The viewer will learn how to use NetBeans IDE 8.0 for Windows to connect to a MySQL database. Open Services Panel: Create a new connection using New Connection Wizard: Create a test database called eetutorial: Create a new test tabel called ee…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

916 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