Control image to report doesn't take all width
I want to add and print a control to my report, but the control image doesn't take all the width avalaible on my report.
It's stretched before the margin.
Take a look to my exemple in attachement
thanks
Attachments:
print_panel.vi 38 KB
Hi,
I regret to say that the image size is a known bug with the Report Generator. There is currently no workaround for this issue. The image size cannot be greater than a 1� margin on both sides. I hope you�ll be able to work around this. The issue will be fixed in a future version of LV.
Danny G.
Applications Engineer
National Instruments
Similar Messages
-
Append Control Image to Report stops Source Distributi​on from working
I have a top level built executeable that calls various external vi's using the "Call by Reference Node" function. This seems to work ok, to a point. An additional point here is this is code that I had running well in LV8.2 and am now trying to get running in LV2010 as there have been some significant changes in LV that have impacted on this project and this has forced me to change things.
The external vi that is called is stored in a "Source Distribution" directory structure, which has been generated via its own project specifications. An examination of the directories and vi's stored at the destination looks like everything should be there.
When it comes to running the vi in the source distribution directory (from the top level built executeable) I get the following error message "Error 1003 occurred at Open VI Reference in Run HTML Report Generation VI LV10.vi->Generate Reports.vi", with the additional suggestion " The VI is not executable. Most likely the VI is broken or one of its subVIs cannot be located. Select File>>Open to open the VI and then verify that you are able to run it.". So it looks like there is something missing in the "Source Distribution" directories.
Doing as suggested, opening the vi in the "Source Distribution" with the development environment, shows that it has no broken arrow. My suspicion is the development environment is supplying whatever it is missing.
Using the built top level application, using trial and error and using the diagram disable structure, I have narrowed down the location of the problem to an "Append Control Image to Report" sub vi (its from the NI Report menus). Disabling this vi at the level it is called, allows the "Source Distribution" vi to run. "Append Control Image to Report" is part of a class structure and I must say I have not used class structures so my understanding of their implications is very limited.
If I instead dive into "Append Control Image to Report" vi and disable the vast majority of its diagram (everything in the "No Error" case), the original error pops up again. Bit strange considering there are only controls and indicators and a case statement left.
I would appreciate any suggestions, as this has got me stumped. Hopefully I have made myself clear enough as it is all a bit complicated. Let me know if I haven't. Thanks.
Herbert NieslerHi Caleb,
"When the VI displays the broken arrow and displays that error in the dialog, does it take you to a particular diagram component? Does the diagram have any broken arrows or something?"... it doesn't take me to a particular diagram. Is this possible in the RTE? If it is how do I enable it?
I can follow the chain of broken arrows (front panel only) down to my vi that calls the NIreport vi that is causing the problem. However I am unable to open the NIreport vi's in the RTE, so cannot chase this any further down the call chain.
I have tried opening the offending top level vi (on a network drive) and it opens ok. When I close it, it wants to save some changes which i think might point at where the problem is. The attached file shows the screen shots of the "Explain Changes" window. Hopefully they mean something to you.
Cheers
Herbert
Herbert Niesler
Attachments:
Explain Changes.jpg 46 KB -
Cluster not saved correctly in Append Control Image to Report VI
[LV8 with Windows XP]
I'm using the Append Control Image to Report VI to save the image of a control to Word (the same problem occurs if I save to Excel). This VI seems to work fine with all my controls except clusters. Not all of the contents of the cluster show up in the saved image. I have to expand the edges of the cluster way beyond the cluster contents in order for all the contents to show up in the saved image. Is this a bug? Is there a way to "realign" the contents of the cluster within the boundaries?
GeorgeHi,
just had a customer with the problem with this cluster picture function and I wrote a little VI that manually gets the picture, resizes it to the cluster and the rest is up to you. The only thing is, that you have to place the "zero point" of the frontpanel in the upper left corner to get the proper image.
For Users who want to upgrade: This issue is fixed with the next LabVIEW release.
Best Regards,
Andreas Pistek
~~~ Logic is a systematic method of coming to the wrong conclusion with confidence ~~~
Attachments:
better picture.vi 19 KB -
I can't append control image to report on 1 page with appended text report
I am attempting to create a report which is simply header, experiment information, and two graphs of data. I am using a Easy Text Report and Append Control Image to Report. I have successfully printed out this report, but on two separate pages. The header info is on the first page, and the graphs on the second page. This doesn't seem to be a margins problem, as the header is very brief and the graphs aren't that large either. I would like to make this into a one page report. Any help is greatly appreciated.
Message Edited by csmrunman on 01-15-2010 10:18 AMNevermind. I neglected to see the Append Report Text.vi. That solved everything.
-
Print report and append control image to report.vi problem
why print report.vi and control image to report.vi can't executable in xp service pack 3??
before that, i use xp service pack 1. these sub vi can use successful. but after i transfer all ni file into xp service pack 3, that sub vi can't executable..why it happen???
please, help me...When you said that you used your VIs in service pack 1 and then transferred to Service pack 3, are you referring to 2 different computers or you simply updated the computer with SP1 to SP3?
If you are using 2 different computers, were all the software and the toolkit also installed in the pc with SP3? I am using XP with SP3 and I am not having any problems with the print vi.
If you have more information, like if you get an error message, kindly post it here as well.
Best regards,
Mary Anne
.....YOU WONT LEARN IF YOU ALREADY KNOW..... -
Bug in Append Control Image to Report in 8.5?
I am now at an end with this. I seem to have some sort of problem when using the Append Control Image to Report. I have a program that creates two reports. One is a condensed version, the other detailed. Both reports contain JPG images of some front panel displays. For the most part it seems to work except what ever it is doing appears very unstable. The problem seems to center around me trying to include a Multicoulmn Listbox. I create a Reference of it and then run that to my Append Control Image, just like any other image I want to include. If I probe the Reference, it appears to be correct, i.e. the name, etc. all seem right. However, what the image that gets included is a whole different graphic. Some times I will get the listbox, other times nothing at all. If I look in the directory and bring up the images, indeed, if it prints the wrong graphics, it also has created two of the ne that it includes.
Running the same program unmodifed seems to do the same thing, i.e. it always will print the wrong graphic. As I have tried different things to try and skirt the problem, I get different effects.
I have seen the same problem with other graphics as well, not just the listbox, but I can't come up with any hint as to why it does what it does.
Attachments:
LABVIEW_err.jpg 18 KBI have dug into this a little further and it appears this bug has to do with creating two reports at the same time. If I only generate a single report, everything works flawless.
I placed the sections of the code that append data to the reports into a sequence so they would not happen at the same time. This seemed to have some effect, but the reports were still incorrect.
Is LabView just not able to create two reports within a single progeam?
I can work around this by creating just the detailed report for now, but it would sure be nice if there were a way to make it work. -
Option double click on an image in InDesign doesn't take me to Photoshop. It just opens in Preview.
But now when I open any jpeg it wont open in preview. It always opens in Photoshop.
Is there any way to make it so the image opens in photoshop when I option double click in Indesign and when I am not in Indesign the image opens in preview.
Thanks -
Hi,
I'm doing a internship in a production line.
My job is to recover production data (input data) and test data (output data) using various types of software (excel, BusinessObject sap, etc).
To this day, I have recovered hundreds of production data, and have also organized in excel but I need to analyze and plot them.
I would like to know who can give me an idea of how I could plot as much data and analysis.
Now i trying to use dynamic charts and plot some data but I did not get acceptable answers.
How could I compare, analyze and graph for example:
Five columns of production (input) with five (5) columns tested (data output).
After graphing.
Someone can give me a technique to analyze data? ie I compare column by column?
or some other technique? as a conglomerate could analyze data?
o give you an idea of the contect, now I perform an internship in a manufacturing turbines.
My job is to analyze the input data (production) and to estimate the possible behavior of the turbines in the tests.
As I said, use dynamic tables in excel, but i have not idea why the dynamic tables doesn't take all the data from the source table.
I appreciate your advice
ThanksYou can declare as PT source whole Columns [$A:$E], without rows number.
Then You'll have all actually data.
Oskar Shon, Office System MVP - www.VBATools.pl
if Helpful; Answer when a problem solved -
Script doesn't take all the files in the folder
I have compiled a script from different resources. It pads images to specified dimensions. But I can't get it to process all the images in a folder. It only does one.
Here is the script.
(* IMPORTANT: The with pad color parameter of the pad command does not work in Mac OS 10.5.5. Use4 the SIPS command-line utility instead when padding with a color *)
set this_folder to (choose folder with prompt "Pick the folder containing the files to process:") as string
tell application "System Events"
set these_files to every file of folder this_folder
end tell
repeat with i from 1 to the count of these_files
set this_file to (item i of these_files as alias)
set this_info to info for this_file
end repeat
property target_dimensions : "1024, 768"
property default_color : {0, 0, 0}
set this_path to the quoted form of the POSIX path of this_file
-- get the final dimensions for the padded image
repeat
display dialog "Enter the target dimensions for the padded image:" & return & return & "target width, target height" default answer target_dimensions buttons {"Cancel", "Set Color", "Continue"} default button 3
copy the result to {text returned:dimensions_string, button returned:button_pressed}
if the button_pressed is "Set Color" then
set the default_color to choose color default color default_color
else
try
if the dimensions_string does not contain "," then error
set AppleScript's text item delimiters to ","
copy every text item of the dimensions_string to {width_string, height_string}
set AppleScript's text item delimiters to ""
set target_W to width_string as integer
set target_H to height_string as integer
if target_W is less than 1 then error
if target_H is less than 1 then error
set the target_dimensions to (target_W & ", " & target_H) as string
exit repeat
on error
beep
end try
end if
end repeat
set the hex_color to text 2 thru -1 of (my RBG_to_HTML(default_color))
try
tell application "Image Events"
-- start the Image Events application
launch
-- open the image file
set this_image to open this_file
-- get dimensions of the image
copy dimensions of this_image to {W, H}
-- calculate scaling
if target_W is greater than target_H then
if W is greater than H then
set the scale_length to (W * target_H) / H
set the scale_length to round scale_length rounding as taught in school
else
set the scale_length to target_H
end if
else if target_H is greater than target_W then
if H is greater than W then
set the scale_length to (H * target_W) / W
set the scale_length to round scale_length rounding as taught in school
else
set the scale_length to target_W
end if
else -- square pad area
set the scale_length to target_H
end if
-- perform action
scale this_image to size scale_length
(* The with pad color parameter is broken in Mac OS X 10.5.5
-- perform action
pad this_image to dimensions {target_W, target_H} with pad color default_color
-- save the changes
save this_image with icon
-- purge the open image data
close this_image
end tell
-- The with pad color parameter is not working in 10.5.5 so use the SIPS command-line utitlity instead
do shell script "sips " & this_path & " -p " & target_H & space & target_W & space & "--padColor " & hex_color & space & "-i"
on error error_message
display dialog error_message buttons {"Cancel"} default button 1
end try
on RBG_to_HTML(RGB_values)
-- NOTE: this sub-routine expects the RBG values to be from 0 to 65535
set the hex_list to {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F"}
set the the hex_value to ""
repeat with i from 1 to the count of the RGB_values
set this_value to (item i of the RGB_values) div 256
if this_value is 256 then set this_value to 255
set x to item ((this_value div 16) + 1) of the hex_list
set y to item (((this_value / 16 mod 1) * 16) + 1) of the hex_list
set the hex_value to (the hex_value & x & y) as string
end repeat
return ("#" & the hex_value) as string
end RBG_to_HTMLThe problem is this repeat loop
repeat with i from 1 to the count of these_files
set this_file to (item i of these_files as alias)
set this_info to info for this_file
end repeat
It goes through every file in the folder but only sets the variable this_file to one file. When the loop is finished this_file is only pointing to one file, which is the file that will be processed.
A few ways to handle this, the easiest is to move the
end repeat
at line 5 to the just after the do shell script at line 81. -
Report doesn't fetch all the records
Hi All,
I have a problem of fetching data from a table. My query returns more than 100,000 records. But report does not view/fetch all of them for the report.
It just return only around 500 records.. :S
Can anybody please give me a hand to solve this issue.
I'm using 10g Express edition with apex 4.
Thanks in Advance,
MaxHi,
Go edit your report attributes and set Maximum Row Count higher than 500
Regards,
Jari -
BI reports doesn't display all groups in the area
Hi,
I have a Area->Region->Center type->Center function->Sub Group hierarchy in the BI. Sub Group is not distinct and repeated across the centers. when i pick Area and Sub Group in the report,it is has to display all the Sub groups for each area. But it is not showing all the sub groups and avoiding repetitions across the areas. Any suggestion to display all the sub groups for each area.I found out what causing this issue. If i remove the grand total on the table view,then it is displaying all the Sub groups for each area.But we need grand total,any suggestion how to make it work with grand total.
-
Crystal report xi r2 can't show control image
i use vs2008 to develop asp.net
Crystal report xi r2 can't show control image , not show print , export and all control image and when i click
print or export image it error but other control are work. i run web application by debug mode in vs2008
please help me to solve this problem.
thank for advanceHi,
You are facing issue as you are using non compatible environment.
VS 2003 is only compatible with CR 9.1 (Bundle version which comes with VS), CR XI R1 and CR10.
VS 2005 is only compatible with CR 10.2 (Bundle version which comes with VS), CR XI R2 and CR 2008.
VS 2008 is only compatible with CR 10.5 (Bundle version which comes with VS) and CR 2008 SP0 and SP1
You can download platform supported guide from the following link which will help you to create compatible environment:
[https://websmp105.sap-ag.de/bosap-support]
or search for BusinessObjects note #1279888 - How to find supported platform guide for any platform?
Note can be searched from [here|https://www.sdn.sap.com/irj/sdn/businessobjects-notes]
Hope this helps
Regards,
Shweta -
How could I arrange control images in a report?
I appended 4 control images to a report using Append Control Image to Report. I wanted to lay two of these images in the first line and the other two in the second line. But the result of my program was one image in one line. (BTW, I did not use any New Report Line). How could I arrange control images?
Mike is right, unless the images are too wide, the report VIs will put them next to each other on the same line.
Please find the attached example that appends two charts on the HTML report. Open the .htm file with the web browser. If you make the browser window smaller, the charts will move one below the other.
Zvezdana S.
Attachments:
image.zip 13 KB -
Have older Dell Dimension 32/bit with Win XP Prof 2002. I have installed CA security suite from my ISP, which is a huge program and uses 100% of CPU on start-up & shut down, slowing everthing to a snails pace. I have removed evrything I don't need using 30 day free Revo Unistaller Pro, but when I try to access CA's Firewall to add programs to the exception rule, it will open, then freezes along with Firefox tabs and anything else. Can't even shut down from start menu. I want to get rid of CA(although it is a good program, it's too big), and go back to using my Win Firewall(or another better free firewall that's good for more than 30 days trial) and some other free internet security program that is easy, runs in the background and doesn't take all my resources and isn't just a 30 day free trial till you buy the program. I am also trying to install a wireless adapter so I can drop my ISP and use the free city/county signal as no work for 20 months!
== This happened ==
A few times a week
== Trying to access CA security Suite FirewallI am the original poster, and I got rid of CA Security Suite & and loaded the Avast! which has some great features even on the freeware. No more crashes or freezing & yes I think there is a problem with CA & Firefox, but am not sure what it is. CA was a big time hog. I also got rid of my ISP and installed a Intellinet Wireless G PCI Card & now am completely wireless on my PC. Faster by far than what I was paying $50/month for & I use my Windows Firewall.
-
Image resolution report generation
Hello,
I am using the vis on the report generation palette in labview 7.1 to
produce an html report that includes images from intensity graphs on
the front panel.
I create a control reference to the intensity graph and then wire the
control reference to "append control image to report.vi" with the image
type set to jpg. The report contains a low resolution (appears to be 8
bit) image. Is there a way to have 24 bits true color images included
in the report instead.
Thank you
Jean-Michel MaarekHi Jean-Michel,
You can open the Append Control Image to Report.vi and go to the "HTML" case of the case structure and change the constant value wired to the "Image Depth" parameter of the Get Image method from '8' to '24'. I plan on adding this as an input to the VI in a future LabVIEW version.
-D
Darren Nattinger, CLA
LabVIEW Artisan and Nugget Penman
Maybe you are looking for
-
Hi Experts, User is executing particular BackGround Job in SM36 for a month at a particular time. When user is checking in SP01 Spool,Title is displaying as Automatic Generated (Ex:LIST1S <Report><User_Na
-
Installing ColdfusionMX 7 on Windows Vista
I know Vista is relatively new, but I'm hoping some out there ca help me. I'm trying to install Coldfusion MX 7 on Vista Home Prenium edition. I'm getting an error: HTTP Error 404.3 - Not Found I tried adding the MIME Type (.cfm cfm-application/octet
-
File 2 Proxy Sync - BPM - Mapping
Hi Guys, I am doing file 2 proxy sync interface. I am getting 2 files from 2 locations. First file contains group of records and second file contains the total records in the file 1. File 1: File :1 GroupNo InvoiceNo InvoiceDate InvoiceAmoun
-
How can I tell if my ram is working in duel mode?
I would I be able to tell if ym ram is working in duel mode? My system is in my sig
-
Stored procedure in BI Publisher
hello I know how I can manage stored procedures in my database, is there any way I can call them from BI Publisher.