11/25/2024 4:38:29 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss reports for SalesLogix including Crystal, SQL Reports, etc. View the code of conduct for posting guidelines.
|
|
|
|
Stripping off the SLX header info
Posted: 26 Jun 06 11:43 PM
|
amitriptyline davis pdf amitriptyline and alcohol overdose msahin.net fiogf49gjkf0d Hi all
I've got some code that will extract a SLX Crystal report out to a file on the disk, but the file appears to have some SLX Specific header info in it.
Anyone know how I can get rid of this? I'm sure it must be easy, but I can't seem to get it so that the file on the disk is a Crystal Report without any SLX info.
Crystal complains that I'm using the wrong version, yet I know I am using the same version as the one that entered it, and I assume that the SLX header info is causing me headaches...
Antony
|
|
|
|
Re: Stripping off the SLX header info
Posted: 27 Jun 06 12:47 AM
|
fiogf49gjkf0d Well, a crystal report plugin is just a serialized Delphi TComponent with the report appended to the end. The serialized TComponent will end with two consecutive null chars (0x00, 0x00) and will not contain two consecutive nulls internally.
So, all you need to do is look for the two null chars in your stream and copy everything following those to the end of the blob to a file and you'll have your crystal report file.
The header (everything wrapped in the TComponent) will expose the properties of the report plugin if you're interested in that. You can get to the UserField, DateField, OriginalFileName (the most useful if you want to actually recreate the file with the original name), WhenOpen.Action (something like "Basic" or ActiveScript") and the WhenOpen.Argument (ie: the script to execute on WhenOpen of the report)
Got it? |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|