Printing File Path on Reports - Missing \ (backslash)
schedu
Member Posts: 12
Hi,
i want to print a file path on a report.
There is a text variable holding the path received from a record.
This variable is filled the path and text variables using strsubstno. The result looks like this "File:
\Filename.pdf" .
The strange thin is that if i print this text in a section the report only shows "File: D:Filename.pdf" without \.
I used message('%1',Text) to see the text on the screen and \ is there.
I already tried to use strsubstno('%1',Text) in SourceExpr of the text box control with no success.
Does anyone have a hint for me, how i can show the path on the report correctly?
Thanks!
Best regards,
schedu
i want to print a file path on a report.
There is a text variable holding the path received from a record.
This variable is filled the path and text variables using strsubstno. The result looks like this "File:
The strange thin is that if i print this text in a section the report only shows "File: D:Filename.pdf" without \.
I used message('%1',Text) to see the text on the screen and \ is there.
I already tried to use strsubstno('%1',Text) in SourceExpr of the text box control with no success.
Does anyone have a hint for me, how i can show the path on the report correctly?
Thanks!
Best regards,
schedu
0
Answers
-
-
Hi geordie,
thanks, your solution is working :thumbsup: . Can you explain this to me why i need two "\\", so i can understand it?
I did fill the variable manually so I will need to find a solution for changing "\" to "\\" in a function.
Best regards,
schedu0 -
Because "\" is the character for carriage return: is it possible to avoid it duplicating the character itself or, if you don't need it, switch to "No" MultiLine property of the TextBox.
* Daniele Rebussi * | * Rebu NAV Diary *0 -
Hi geordie,
GREAT - that's the key!!! I was using the multi line option for this textbox on the report. After disabling this option everything is displayed correctly without changing the Path!
I know this "carriage return" function from messages but not the impact on reports.
Thank you very much!
Best regards,
schedu0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions
