Skip to Content
0

Write to text file in Crystal Report

Dec 07, 2016 at 05:44 PM

46

avatar image

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?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Dell Stinnett-Christy Dec 07, 2016 at 06:13 PM
0

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

Share
10 |10000 characters needed characters left characters exceeded
chris kusmierz Dec 07, 2016 at 07:19 PM
0

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"

Share
10 |10000 characters needed characters left characters exceeded