Results 1 to 3 of 3

Thread: exporting a crystal report with a selection formula

  1. #1

    Thread Starter
    Member
    Join Date
    Dec 2003
    Location
    NYC
    Posts
    50

    exporting a crystal report with a selection formula

    when i export my crystal report into a pdf format, the selection formula doesn't work. All records are returned. Does anyone know how to fix this?

    Thanks...

  2. #2
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018
    I did something similar about 6 months ago but didnt' have the same problem.

    The code I used actually generated the Crystal report first, then I think it saved the report then performed the pdf export on the saved file.

    If you're interested I can see if I can dig the code out but it's at home so you'll have to wait till tomorrow.

    Just let me know.

    Parksie

  3. #3

    Thread Starter
    Member
    Join Date
    Dec 2003
    Location
    NYC
    Posts
    50
    Thanks VB.

    I solved the problem. I was applying the selection formula to the viewer- which was how my documentation told me to apply it, but you can also apply it to the report object:

    oRpt.datadefinition.recordselectformula=selectform

    syntax is approximate.

    If you want, though, post your code here. I searched the forums for my problem and I didn't see anything on it for these boards.

    Thanks for the reply!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width