+ Start a Discussion
PERFECTIONISTPERFECTIONIST 

I am trying a download file program which should be of the Fixed width Text file format.

Hello All,

For example:-
My object name is Account and it has fields(length):
Name (10)
Account Number (8)
Email (15)
Phone (10)
The query should fetch the data from the above object and download it as a fixed width text file display according to the field length in a standard text file.
Name  |  Account Number|  Email                  |  Phone
Test1     12345678              test@test.com     12345678
Test2     87654321              test@test.com     12345678
The text file should display the records in the above format.
Does anyone have a solution to this issue? Kindly help me with the links or sample code snippets if possible.

Thanks for your time.