Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

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

Posted on 2008-10-10
4
Medium Priority
?
464 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 2000 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

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

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

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 …
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: …
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…

688 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