Skip to Content

Write to text file in Crystal Report

I need to have ever increasing serial number printed every time a particular Crystal Report is printed. I do this now with label printing software by writing the next number to a text file on our server. Every time a label is printed I increment this number and update the file. Is there a way do similar in Crystal Reports?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Dec 07, 2016 at 06:13 PM

    There is no way to do this from within Crystal itself. How are you planning to run the report? Do you have BusinessObjects or Crystal Reports Server? Or will you be writing code using either the .NET or Java Crystal SDKs?

    -Dell

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 07, 2016 at 07:19 PM

    This is a carton label which will automatically be generated from our ERP system when a direct machine interface reaches the set piece count. The number series is for one particular customer who set the range of values. Our new ERP system cannot handle a separate set of numbers per customer.

    I could let my current label software handle the job if I can have Crystal output a straight text file which will trigger the label print. How would I design a report to output a txt file such as:

    [count]=4

    [printer]="Zebra 1"

    [format]="Label1.btw"

    [Field1]="Some Data"

    [Field2]="More Data"

    Add comment
    10|10000 characters needed characters exceeded