![]() |
#1
|
|||
|
|||
![]()
I'm working on a tool that uses Bridge2Java to interface a Java Servlet with CorelDRAW Scripting. The tool parses a Tab-Delimited Values file and fills in a CDR Template with values for the user to download. I'm having a hard time with carriage returns showing up when inserted into paragraph text boxes (I've tried with artistic text as well). It's no problem if a web form is used as the front-end, but when using a CSV, the carriage returns just don't appear! Do you have any advice?
|
#2
|
||||
|
||||
![]()
maybe the problem is that some of CSV files are using only #13 or #10 and not both - which might be required (who knows) by CorelDraw (or what?) in order to see linebreak.
Try to reparse CSV and replace CR (or maybe there's a single LF) with CRLF CR=chr 13, LF=chr 10 I would use (if it's possible): writefile csv, replace(replace(replace(readFile(csv),vbCrLf,vbCr),vbLf,vbCr),vbCr,vbCrLf) |
#3
|
|||
|
|||
![]()
Thanks for the advice! I added a java method that replaces all \n's with \r\n, and that worked. Good thinking!
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | Search this Thread |
Display Modes | |
|
|