NI LabVIEW,CVI,数据采集等产品讨论区

取消
显示结果 
搜索替代 
您的意思是: 

怎样生成报告将图片文件*.jpg粘帖到一报告文件*.htm中

已解决!
转到解答
想请教各位高手一个问题,我想将图片文件*.jpg粘帖到一报告文件*.htm中,最后再生成一个包含图片文件的报告文件*.htm,程序如下:[12_02_09][17_25_07][Maxthon Shot].jpg

但是运行程序后总是提示错误,错误代码是:ERR1059,其错误源在Open VI Reference in NI_ReportGenerationCore.lvlib:ChangePathToVIRefCallerDefault.vi->NI_ReportGenerationCore.lvlib:Append Front Panel Image to Report (path).vi->report output.vi<APPEND>
VI Path: <b>D:\WORK\8.NI\091202\3333.jpg</b>

实在是不明白怎么回事,希望能帮忙解决,非常感谢!!

0 项奖励
1 条消息(共 8 条)
4,859 次查看
If you are appending external (jpeg) image to report, you should use Append Image To Report.vi instead of Append Front Panel Image To Report.vi
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 项奖励
2 条消息(共 8 条)
4,853 次查看

Thanks for your answer, and I change the VI. replace previous bloack diagrom follow as:[12_03_09][17_13_06][Maxthon Shot].jpg

But when I run this block ,  the result is OK but the output path I can't control, and I don't know where the generate report. So I can't find the report file.  Could you like give me some advice?  I want to get the correct file path. 

Thanks for your attention, please!

0 项奖励
3 条消息(共 8 条)
4,842 次查看
You need the 3rd function... Save Report To File.vi
Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 项奖励
4 条消息(共 8 条)
4,832 次查看

Thanks! I had edit new diagram like this:

[12_04_09][10_41_08][Maxthon Shot].jpg

and this program can work, the output only contain the image that I want to insert into my report, but don't contain my previous template mode example  *.word *.xls. So the final report only image display , it isn't I want report format. 

I would be very appreciated If you can help me!

 

0 项奖励
5 条消息(共 8 条)
4,809 次查看

Please try searching report examples from the examples finder in LabVIEW.

There are good examples for both text or html reports.

 

There are many useful functions under the report generation palette, please go through them. 

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 项奖励
6 条消息(共 8 条)
4,800 次查看
解答
已被主题作者 Justin_zj 接受

Thank you very much!

 

I had success building program, and it works well!

0 项奖励
7 条消息(共 8 条)
4,791 次查看

Since you have selected/ highlighted your own reply as Solution, would you mind telling me if my replies of helpful or answering to your problems? Do they worth a Kudos?

 

This will help to tell other which is the overcoming solution to your problem 😉

 

Thanks! 

Ian F
Since LabVIEW 5.1... 7.1.1... 2009, 2010, 2014
依恩与LabVIEW
LVVILIB.blogspot.com
0 项奖励
8 条消息(共 8 条)
4,786 次查看