Solved

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

Posted on 2008-10-10
4
462 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
4 Comments
 
LVL 101

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 101

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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

Crystal Reports: 5 Tests for Top Performance It is complete, your masterpiece report.  Not only does it meet your customer’s expectations, it blows them out the water, all they want is beautifully summarised and displayed in a myriad of ways. …
Hello everyone, Hope you find this as helpful as we did. We have on the company I work for an application built in Delphi V with Crystal Reports 8. We all know that Crystal & Delphi can be temperamental sometimes and the worst thing is, nearly…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …

623 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