Results 1 to 13 of 13

Thread: Saving report as *.doc

  1. #1

    Thread Starter
    Fanatic Member cid's Avatar
    Join Date
    Nov 2002
    Location
    Fort Worth, Texas
    Posts
    854

    Post Saving report as *.doc

    How do you save a report as a *.doc so it can be viewed later by a person without crystal reports 8.5. I know that Seagate(CR) offers a *.dll that will do it for you but I dont know how to use it.
    The *.dll is called: crxf_wordw.dll
    You can dowload the file here:
    http://support.crystaldecisions.com/...crxf_wordw.zip
    Please help me...

    www.google.com - Pay Tribute.

    Always Listening To: Thrice

  2. #2
    Addicted Member
    Join Date
    Apr 1999
    Posts
    178
    Are you asking how you can convert a report from the full crystal reports program or how to have a stand alone vb app on the user pc to it?

  3. #3

    Thread Starter
    Fanatic Member cid's Avatar
    Join Date
    Nov 2002
    Location
    Fort Worth, Texas
    Posts
    854
    Im asking how to save a full blown report (created with CR 8.5) as a word document(*.doc) through vb. I am wondering if that *.dll(posted above) could help. And if so how do you use it.

    www.google.com - Pay Tribute.

    Always Listening To: Thrice

  4. #4

  5. #5

    Thread Starter
    Fanatic Member cid's Avatar
    Join Date
    Nov 2002
    Location
    Fort Worth, Texas
    Posts
    854
    That example is pretty tough to understand is there anything else closer to a newbie level. That example does everything I need it to but...Its a little over my head. Maybe if you could give me a simpler version I will find it more useful.

    www.google.com - Pay Tribute.

    Always Listening To: Thrice

  6. #6
    Addicted Member
    Join Date
    Apr 1999
    Posts
    178
    None of my apps export reports. If a user wants to export one, they use the built in export method that comes with the crystal viewer and ocx.

    Since you say you are a new to this, you might not know that you can export from any crystal report displayed either by the ocx or rdc method by clicking on the white envelope on the top left corner of the report.

  7. #7

    Thread Starter
    Fanatic Member cid's Avatar
    Join Date
    Nov 2002
    Location
    Fort Worth, Texas
    Posts
    854
    The report is built into a vb app. So the only time the user sees the report is when the report is in print preview. And in print preview there isnt a white envelope. Ill try to mess with the source you gave me. By the way do you know how to filter a Report?

    www.google.com - Pay Tribute.

    Always Listening To: Thrice

  8. #8
    Addicted Member
    Join Date
    Apr 1999
    Posts
    178
    So you are using the viewer?


    If so, you need to enable the export button
    Code:
      CRViewer1.EnableExportButton = True

  9. #9

    Thread Starter
    Fanatic Member cid's Avatar
    Join Date
    Nov 2002
    Location
    Fort Worth, Texas
    Posts
    854
    Is their a way to call that button over another form. So when I click on a menu item it will run that button only (the envelope button; so it will export a report) and not the viewer. And if you have time will you take a look at this post...
    http://www.vbforums.com/showthread.p...hreadid=262891

    www.google.com - Pay Tribute.

    Always Listening To: Thrice

  10. #10
    Addicted Member
    Join Date
    Apr 1999
    Posts
    178
    Is their a way to call that button over another form. So when I click on a menu item it will run that button only (the envelope button; so it will export a report) and not the viewer.
    Not that I know of.

    Why do you have to export to a .doc?

    From the other post

    your detention date is actually a MEMO field
    You need to change this field in your database to a date type.

  11. #11

    Thread Starter
    Fanatic Member cid's Avatar
    Join Date
    Nov 2002
    Location
    Fort Worth, Texas
    Posts
    854
    I know about the memo field I changed it a while ago. If you want to click a command button via another form just change the private to public.
    VB Code:
    1. Public Sub Command1_Click()
    I will post my updated project so you can take a look at it.
    Attached Files Attached Files

    www.google.com - Pay Tribute.

    Always Listening To: Thrice

  12. #12
    Addicted Member
    Join Date
    Apr 1999
    Posts
    178
    I look at the ld.mdb. All your fields are text, size 50.

    If id is a number, you should make it long integer.

    Detention Date stills needs to be a date.

  13. #13
    Lively Member
    Join Date
    Jul 2001
    Location
    New Hampshire, USA
    Posts
    127
    Your crystal reports code has a destination property that can be set to File. Once you set it to file, set the export type, and the destination file name. Then when you do .PrintReport it will export it to that destination.
    Andrew Divers

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