| T O P I C R E V I E W |
| blt2si |
Posted - 07/21/2003 : 04:55:01 AM Hey evry1! I'm having a bit of a problem trying to get the fdlog.saveas() function to work in myprogram... The saveAs box pops up fina and allows me to enter the filename, then i click okay and nothing happens... Basically, it doesnt save the worksheet at all. The section of my program is shown below. Any help would be appreciated!! Thanks!
System.FileExt.ActiveGroup$ = Origin; fdlog.ShowComment = 0; fdlog.UseGroup(Origin); fdlog.path$ = ""; fdlog.default$ = ""; fdlog.saveAs(A); |
| 2 L A T E S T R E P L I E S (Newest First) |
| blt2si |
Posted - 07/24/2003 : 02:15:31 AM Thanks heaps!! Problem solved!! |
| CStorey |
Posted - 07/21/2003 : 5:35:41 PM The FDLog.SaveAs method only open the standard "Save As" dialog for you and retrieves teh appropriate file path + file name information. You have to do the work to save the project file, worksheet or whatever. To build on your example you could do the following....
// Get teh Filename System.FileExt.ActiveGroup$ = Origin; fdlog.ShowComment = 0; fdlog.UseGroup(Origin); fdlog.path$ = ""; fdlog.default$ = ""; fdlog.saveAs(A);
// Save the Project to an OPJ file save %A;
// save worksheet, graph, or matrix window to a file - NEEDS AN APPROPRIATE EXTENSION save -i %A;
// Save the winName notes window to a file save -n winName %A
Look in the Help manual under "Save" for all the options and examples. Hope this helps. Craig
Craig Storey Origin WebRing Member - http://g.webring.com/hub?ring=originwebring |