Import/Upload File in RTC

artur+1
Member Posts: 18
Hi all
I have one issue. I want to upload excel file for importing data. For open window for choosing a file I use
UploadedFileName := CommonDialogMgt.OpenFile(Text001,'',2,'',0);
like in standard report 81 and works fine in CC, but when I want to upload file in RTC importing takes much more time ,it's very slow and before uploading when I clik in assist button appears msg: The server has requested to run Microsoft Common Dialog Control. version 6.0 ...(this probably is not the proper control for RTC) ,but uploading is successful. The problem is that last too long.
How can I avoid this. It's the same Principe from standard reports but doesn't work fine.
Any suggestion?
Thanks in advance.
Reg
I have one issue. I want to upload excel file for importing data. For open window for choosing a file I use
UploadedFileName := CommonDialogMgt.OpenFile(Text001,'',2,'',0);
like in standard report 81 and works fine in CC, but when I want to upload file in RTC importing takes much more time ,it's very slow and before uploading when I clik in assist button appears msg: The server has requested to run Microsoft Common Dialog Control. version 6.0 ...(this probably is not the proper control for RTC) ,but uploading is successful. The problem is that last too long.
How can I avoid this. It's the same Principe from standard reports but doesn't work fine.
Any suggestion?
Thanks in advance.
Reg
0
Comments
-
The OpenFile is using an OCX automation control which you should consider using the built-in UPLOAD C/AL command instead to get better performance
Uploaded := UPLOAD(WindowTitle,'',Filter,ClientFileName,ServerFileName);
or try using the DotNet type instead of the OCX
DotNet System.Windows.Forms.OpenFileDialog.'System.Windows.Forms“This posting is provided "AS IS" with no warranties, and confers no rights.”
Lars-Bo Christensen
Software Developer @ Microsoft0 -
I have tried with Upload but it works slow again.
Would You like to tell me more about other option, please. How to use it in navision?
Thanks0 -
The UPLOAD should be the fastest method.
So I wonder how big is the file you want to upload to the server?“This posting is provided "AS IS" with no warranties, and confers no rights.”
Lars-Bo Christensen
Software Developer @ Microsoft0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions