Baanboard.com

Go Back   Baanboard.com > Forum > Baan Quick Support: Functional & Technical > Tools Development

User login

Frontpage Sponsor

Main

Google search


Poll
For ERP LN feature pack upgrade, what method of install are you using?
Installation Wizard into existing VRC
38%
Installation Wizard into new VRC
38%
Manual into existing VRC
5%
Manual into new VRC
19%
Total votes: 42

Baanboard at LinkedIn


Reference Content

Reply
 
Thread Tools Display Modes
  #1  
Old 14th April 2018, 04:40
vik.patil vik.patil is offline
Member
 
Join Date: Apr 2008
Posts: 47
vik.patil is on a distinguished road
Baan: ERP LN - DB: MS-SQL - OS: MS-WINDOWS
Save file on Local Machine for BAAN IV
Baan: Baan IVc4
C/S: None/Unknown

Hi All,

We are extracting .csv file out of Baan IV Standard Report/Session and we don't have source code so unable to add field as File path so we need to save this file local machine with User's choice of Path. We have tried with dir.select.dialog.local() but getting compilation error. We have first tried with #include <bic_desktop> but got compilation error so switched to #pragma used dll "ottdllbw" but still we are not able to compile script for this function. Other function as Server2Client is working fine with ottdllbw.

Do we have any other function/option to save file on local machine without hard coding file path.

Any help will be appreciated.

Regards,

Vikram Patil
Reply With Quote
Sponsored Links
  #2  
Old 14th April 2018, 10:35
bdittmar's Avatar
bdittmar bdittmar is offline
Guru
 
Join Date: Apr 2002
Location: Germany, 50.584097,8.544078
Posts: 1,692
bdittmar will become famous soon enough
Baan: 2.2/3.1/4c4/LN6.1 FP6/FP9/HiDox - DB: tbase, ms-sql7, oracle10gV1, 11g - OS: HP-UX, W2K3, SLES
Move file across hosts ?

Hello,
Code:
file.mv.across.hosts()
Syntax:

function long  file.mv.across.hosts  (const string source, const string target)

Description

This moves a specified source file to the location specified in the target argument. The file can be either local or remote. Source and target can be on different hosts.

Arguments

const string source Source file.
 
const string target Target file.
OR (Not avaiable in BIV)
Code:
seq.saveas.dialog.local()
Syntax:

function long seq.saveas.dialog.local  (string defaultname, string directory, string filter, ref string filename)

Description


This shows the Windows file save-as dialog, to allow the user to select a new or existing local file to be saved.


Arguments

string defaultname The default filename shown in the file save-as dialog.
 
string directory The startup directory for this dialog. In case of an empty string the "My Documents" directory will be the default. This parameter may include the string ${BSE_TMP} which indicates the ${BSE}\tmp directory in case of Baan Windows or Windows temp directory in case of Webtop.
 
string filter This argument specifies all possible file extensions for the file. The string must contain pairs of strings that are separated by a "|" character. The first string in each pair is a filter name (for example: "Text Files"). The second string must be a filter patern (for example: "*.txt"). Multiple filter patters can be specified by separating the filter patterns with a semicolon. Example: "All Files(*.*)|*.*|Text Files(*.txt) Word documents(*.doc)|*.txt;*.doc"
 
ref string filename Output argument which will contain the full path of the file selected by the user.
And have a look at : http://www.baanboard.com/baanboard/s...stpconv&page=3

Create a print device with your own converter that's using ttstpconv
(I've done in 2002 and ported from BIV to LN in 2010, does't work with Ming-LE an LNUI, but with Worktop and BECS)

Regards
__________________
//Bernd

Last edited by bdittmar : 14th April 2018 at 18:35. Reason: save as added
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 2 (0 members and 2 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Programming Question mr_suleyman Tools Development 37 11th November 2016 08:14
Undocumented Functions & Variables george7a Tools Development 81 30th September 2015 11:35
bshell received SIGTERM manojsharma Tools Development 11 5th June 2008 09:22
Audit file structure baan_user Tools Development 8 4th May 2007 14:32
seq.open berthe Miscellaneous 4 12th May 2005 10:20


All times are GMT +2. The time now is 03:02.


©2001-2017 - Baanboard.com - Baanforums.com