Solved

Trying to dynamically change .xls folder and file name on OLE object in report

Posted on 2008-10-10
4
457 Views
Last Modified: 2012-05-05
I have a table in SQL Server
graphic_dir (table name)
foldername
filename
ordernumber
 
I want the user to enter an order number as a parameter and the report reads this table and pulls in the excell spreadsheet that is the foldername + filename.

I have the report reading the table correctly because I am currently displaying the foldername and filename and they are correct. I have an OLE object inserted that points to an existing .xls file and then I went into Format graphic onto the picture tab and then put a formula in the graphic location button. I tried putting in the foldername + filename and also tried putting in just the foldername. Neither one seemed to work.

I read that there was a bug in release 2 that you could not read in a word document location dynamically from a database. Does that include .xls? Does anybody know if it was fixed in the latest service pack or even where I could go to see if it was reported / fixed?
0
Comment
Question by:bmorriso99
  • 2
  • 2
4 Comments
 
LVL 100

Assisted Solution

by:mlmcc
mlmcc earned 500 total points
ID: 22689595
It probably applies to all OLE documents.

I don't know if there is a later service pack.

Which reliease do you have?
Check the version in HELP --> ABOUT CRYSTAL
Release 1 - 11.x.xx
Release 2 - 11.5.xx

Last I knew SP2 was the last for R2
SP4 was the last for R1

mlmcc
0
 

Author Comment

by:bmorriso99
ID: 22690378
It says 11.0.0.182 but I just bought this so I was expecting to be on release 2..... I guess I need to investigate this a little further.
0
 

Accepted Solution

by:
bmorriso99 earned 0 total points
ID: 22879544
After much investigating I think the bottom line is that the picture location button will allow users to change the files if they are .jpeg, .bmp or one other type but not .doc's or .xls's. I downloaded 2008 and couldn't get it to work there either. We decided to convert our xls files into .bmps.

0
 
LVL 100

Expert Comment

by:mlmcc
ID: 22888656
Suggest you accept your comment as the solution.  My comment is not really a solution and you don't need to award the points

mlmcc
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

I hate sub reports and always consider them the last resort in any reporting solution.  The negative effect on performance and maintainability is just not worth the easy ride they give the report writer.  Nine times out of ten reporting requirements…
There have always been a lot of questions related to when Crystal Reports evaluates report components (such as formulas, summaries, cross-tabs, charts, to name a few examples). Crystal Reports uses a two-pass reporting process to provide greater …
This Micro Tutorial demonstrates using Microsoft Excel pivot tables, how to reverse engineer competitors' marketing strategies through backlinks.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now