Alex Bogdan
asked on
VbCrLf not recognize in textbox
HI! I want to save to file PDF in VB6 many textbox. Some textbox are multiline but mjwPDF Not recognize VbCrLf. Can you help me? The text in PDF created apear on the same line, but in textbox is multiline
ASKER
Thanks a lot. I refer at only one textbox with multiline. For exemple:
AAA
BBC
CCC
apear on textbox.
On the PDF file apear:
AAABBBCCC .
Not three line.
AAA
BBC
CCC
apear on textbox.
On the PDF file apear:
AAABBBCCC .
Not three line.
You will have to parse the textbox content yourself. For each line in the textbox, you will have to make a separate call to PDFTextOut(), keeping track of what line number you're writing to.
Make sure that the Multiline property is set to True
Sorry misread the question. Ignore the above.
ASKER
How is the code?
How recognize each line? Can you write a litle exemple for my exemple?
Ican"t use VbCrLf?
In text is ON. In OFF NOT WORKING. THanks a lot
How recognize each line? Can you write a litle exemple for my exemple?
Ican"t use VbCrLf?
In text is ON. In OFF NOT WORKING. THanks a lot
What does "In text is ON. In OFF NOT WORKING" mean?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
THanks Chris! I have another quedtion. The text apears in pdf file not aligned. Not justify. O import from word document a text into rich text box in Vb6. When create pdf file, the text isn't the same as etc box.
Best regards
Best regards
If so, comment 6763 by Manila paper explains that multi-line support is not natively supported, but you can achieve it yourself. They provide an example (see the full comment, linked above, for the complete example):