NIReport_Print LabWindows 2009 vs. 2010

I have the code met under LabWindows 2009 that works, but when I complie under LabWindows 2010 it stops working.

I am creating PDF files using Adobe Distiller, functions such as PrintPanel and PrintTextBuffer work in 2009 and 2010.  However,.

NIReport_Print works in 2009, if I try to print to Adobe.  It is printing with a real printer.

I have attached the code works and does not work.

/ * print to the actual default printer - CE WORK * /.
if(!iLocalFail)
iLocalFail = Report_ErrorHandler (NIReport_Print (iReportHandle, NULL, 1), 'Print report');

/ * setting printer in format adobe pdf to create PDF files * /.
iLocalFail = SetPrintAttribute (ATTR_PRINTER_NAME, 'Adobe PDF');
If (iLocalFail<>
printf ("SetPrintAttribute a % d\n%s\n", iLocalFail, GetUILErrorString (iLocalFail));

/ * create the key for the test of the buffer * /.
if(!iLocalFail)
{
sprintf (caFilenameWithPathInfo, "% sBuffer_%s.pdf", TEST_DIRECTORY, caMyTime);

iLocalFail = RegWriteString (REGKEY_HKCU, ADOBE_KEY, ADOBE_NAME, (unsigned char *) caFilenameWithPathInfo);
If (iLocalFail<>
{
sprintf (caMessage, "RegWriteString Failed. (\n, error was % d.\n%s\n", iLocalFail, GetGeneralErrorString (iLocalFail));
MessagePopup ("RegWriteString", caMessage);
iLocalFail = TRUE;
}
on the other
printf ("print Buffer\n");
}

/ * THIS WORKS * /.
/ * read a file dummy to get data into a buffer and then print to the adobe printer * /.
iFileHandle = OpenFile ("c:\\mfgtests\\pdf_tester\\globals.h", VAL_READ_ONLY, VAL_OPEN_AS_IS, VAL_ASCII);
If (iFileHandle > 0)
{
ReadFile (iFileHandle, caBuffer, 50000);
PrintTextBuffer (caBuffer, "");     / * ' ' for printer due to SetPrintAttribute * /.
}
  
/ * create the key for the Panel test * /.
if(!iLocalFail)
{
sprintf (caFilenameWithPathInfo, "% sPanel_%s.pdf", TEST_DIRECTORY, caMyTime);

iLocalFail = RegWriteString (REGKEY_HKCU, ADOBE_KEY, ADOBE_NAME, (unsigned char *) caFilenameWithPathInfo);
If (iLocalFail<>
{
sprintf (caMessage, "RegWriteString Failed. (\n, error was % d.\n%s\n", iLocalFail, GetGeneralErrorString (iLocalFail));
MessagePopup ("RegWriteString", caMessage);
iLocalFail = TRUE;
}
on the other
printf ("Print %s\n", caFilenameWithPathInfo);
}

/ * THIS WORKS * /.
/ * print the Panel, NULL for printer due to SetPrintAttribute * /.
iLocalFail = PrintPanel (ghMainPanel, NULL, 1, VAL_FULL_PANEL, 0);
If (iLocalFail<>
{
sprintf (caMessage, "error was % d.\n%s\n", iLocalFail, GetUILErrorString (iLocalFail));
MessagePopup ("Board Failed print", caMessage);
}
  
/ * create the key for test report * /.
if(!iLocalFail)
{
sprintf (caFilenameWithPathInfo, "% sReport_%s.pdf", TEST_DIRECTORY, caMyTime);

iLocalFail = RegWriteString (REGKEY_HKCU, ADOBE_KEY, ADOBE_NAME, (unsigned char *) caFilenameWithPathInfo);
If (iLocalFail<>
{
sprintf (caMessage, "RegWriteString Failed. (\n, error was % d.\n%s\n", iLocalFail, GetGeneralErrorString (iLocalFail));
MessagePopup ("RegWriteString", caMessage);
iLocalFail = TRUE;
}
on the other
printf ("Report manage %d impression %s\n", iReportHandle, caFilenameWithPathInfo);
}
  
/ DOES NOT * /.
/ * print the State, NULL for printer due to SetPrintAttribute * /.
if(!iLocalFail)
iLocalFail = Report_ErrorHandler (NIReport_Print (iReportHandle, NULL, 1), 'Print report');

printf ("Done\n");
NIReport_Discard (iReportHandle);

It seems that NI_ReportPrint is the only function that has a problem with the creation of PDF files.  WordRpt_Print, PrintTextBuffer, PrintPanel and PrintTextFile automatically create PDF files using the SDK of Adobe.  So I'll use WordRpt and not NI_Report in the future.

So if you need a PDF file created, do not use NI_Report.

Tags: NI Software

Similar Questions

  • Can Veristand 2009 and 2010 Veristand be installed on the same computer?

    I have VS2009 on my machine. I would like to install VS2010 as an eval to start porting more implementation to VS2010 before I pull the plug on VS2009. These bothe perhaps installed and functional-by-side on the same machine? Are there objections to bounce back between the two? I already have the prereqs listed on page eval VS2010 (NOR-DAQmx 9.1.5, NOR-RIO 3.5 and NOR-XNET 1.1).

    On the same computer, you can have NI VeriStand 2009 and 2010. If you have developed an application in 2009, you can migrate to 2010 using the tool of mutation in 2010. However, you won't be able to open a project from 2010 in 2009. For example, if you have any custom devices or personalized workspace objects/tools they have developed in the same version of LabVIEW that NI VeriStand. In other words, NI VeriStand 2009 can only use the custom devices created in LabVIEW 2009 and NI VeriStand 2010 can use custom peripheral performance created in LabVIEW 2010.

  • LabWindows 2009 on XP64 driver installation

    Hello

    I got a nice package today, containing the new LabWindows 2009. When you try to install the device drivers, I met the following error message:

    This installation cannot be run on the Microsoft Windows XP 64-bit edition.

    As a tip for everyone using this type of operating system.

    Wolfgang

    Hello Wolfgang,.

    Indeed, Windows XP x 64 is not supported by most of the pilots NOR and software.  We fully support for the supported 64-bit, Windows Vista x 64 and Windows 7 x 64.

    Kind regards

  • Problems with multicast UDP passage from 2009 to 2010

    I have Windows 7 laptop computers of switching and reclassification of LABVIEW, LABVIEW 2010 2009. One of the vi, I developed in 2009 works fine on the old laptop, but with the new laptop and LABVIEW 2010 the UDP Multicast open read-only block throws error 59: the network is down, unreachable, or has been reset. The entries in the UDP Multicast Open are multicast addr: "224.0.0.1" (converted to an IP address with a chain of blocked IP addresses: 3758096385) and port: 20103.

    I can monitor the UDP traffic with wireshark and check that everything works correctly. I can even run the old system at the same time without any problem, but the new system gets error 59. I checked all network settings, including turning off the windows firewall.

    Anyone know of any questions that I might have missed?

    Try to build an EXE file of the machine running on the machine of 2010 and 2009.

    If it works OK, then the problem on the side of the barrier LabVIEW, if it fails, then it's a Windows problem.

    "Unreachable" almost always means a problem of installation of the system.

  • 2010 for the CLD can I? I currently have 2009.

    Hi all

    Well I finally got around to do my CLAD yesterday and spent, Yipeee! Also coincidentally became "Actively" on this forum, as all my Christmas to come at once.

    I had to do the CLAD, I plan to review the CLD in a few weeks. My question is this: I have LabVIEW 2009, but MI test will be of course in 2010. Is there a lot of differences that I should download a trial version of 2010 to practice or will I be ok with what I have?

    Im just worried that I get and lose an hour of navigation 2010. If the page layout and palettes are similar to 2009 so I think I'll be ok.

    Thanks in advance for your help.

    Lucither

    smercurio_fc wrote:

    There are a number of fundamental differences between 2009 and 2010...

    It's a bit overkill in my opinion.  There are certainly new features and some changes under the hood, but the extent of readiness for certification test, I can't think of anything that would cause a person of evil are they prepared in 2009, but was the review in 2010.  In other words, there is nothing preventing you to write a test in 2010 solution, exactly as you would in 2009.  And graders not to penalize candidates for the exam for neglecting to use features that were just to be presented in the latest version.

  • CVI 2010 SP1 Crash

    Hallo, ich habe ein Update von CVI 2009 auf 2010 CVI und habe jetzt ein problem specification. Eine meiner applications lasst sich nicht mehr im Debugmodus starten, Noch vor dem Eintritt in die hand () - die stürtzt Routine application ab (see Screenshot im Anhang). IM Releasemodus so normal alles. Danke fur your Hilfe im vorraus. MFG, Christoph Pierednik.

    In the past, I had the same problem and I solved it with the support of NEITHER.

    As explained here , I had to remove part of the list import library that I had previously included.

    In fact in the document I linked there

    The basic version of LabWindows/CVI includes these import libraries and LabWindows/CVI will automatically load these libraries when it starts and searches them to fix the references at link time. So you don't have to include these libraries in your project.

  • 2009-2012 mac Pro

    Hi all

    I'm ready to buy a Mac Pro opportunity and after reading some and asking around it seems that the core Westmere 5.1 2012 6 is a very good model. However, I saw a 2009 model which has been upgraded to be a 5.1. Is there a difference between a true 5.1 of 2012 and a 2009 upgrade? There the performance/reliability issues with those upgraded?

    Thank you

    Dave

    Apple announced for the Mac Pros, Sierra need a 2010 or later Mac Pro.

    We know not if updated the firmware on a 2009 a 2010 will allow the 2009 run Sierra. So, I'd get a 2010-2012.

    There is really no significate difference between these models

  • Best replacement battery for mid 2009 Macbook Pro

    Hi all

    The battery on my MBP of mid 2009 is on its way. I discovered recently that Apple now no no batteries for MBP 2009 community service because they are vintage. I was very disappointed by Apple, after hearing this. My question is what is the best replacement of the third battery in my laptop? I read the comments from Anker Lizone, keys and power GreenBox. They all seem similar, much good reviews, some bad. Nothing similar to the original farm. Any tips or suggestions? Thanks in advance!

    Hi Jay:

    A few good replacements are:

    Of OWC http://eshop.macsales.com/item/NewerTech/BAP15MBU78N/

    Anker: I http://www.amazon.com/Anker-Replacement-Battery-Li-Polymer-Warranty/dp/B00UWQ6YE / ref = sr_1_2? ie = UTF8 & qid = 1455568139 & sr = 8...

    FixIt https://www.ifixit.com/Store/Mac/MacBook-Pro-15-Inch-Unibody-Mid-2009-Mid-2010-R replacement-battery/IF161-105-1.

    See also Apple Apple - Support - Service Response Center

    Kim

  • Ask for help upgrade (Mac Pro early 2009 2x2.6 GHz Quad-Core)

    I am a videographer who has need to bring my Mac Pro from the dead. Cheesy with video files, but not parts of. My reading so far led me to look at in what follows. I'm looking for a better understanding of each of the following items and upgrades are beneficial and worth that may be too kill for a round of aging.

    1. Memory. I currently have 4x2gb or total of 8 GB of ram. I know this is ridiculous, I have not increased by at least 16 GB so far. However, I have read that memory can only help so much and that some of the items here are actual speed thrusters. How much memory is recommended for this configuration? Should I buy? http://www.Amazon.com/16GB-DDR3-1066-PC3-8500-1066Mhz-Apple/DP/B0098MLFJG/
    2. Solid State Drives. I currently have 3 disks internal thatrange of 500 GB to 2 TB. If I used that as my boot drive, where is the best place to install (see photo below)? I read of people installing in a Bay SATA HDD or SATA optical drive unused. I read good things about it. http://www.Amazon.com/Samsung-2-5-I...p/B00OBRE5UE/ref=cm_cr_pr_product_top?IE=U TF8
    3. Video/graphics card. First of all, both mean the same thing? Are the belowonly of slots PCI Express 4 for this type of card? Also, can you have two installed? I have the NVIDIA GeForce GT 120 512 MB series. What is the best way to upgrade? My research so far has led me to the GeForce GTX680. Looks like I'll have to buy it was good. T7ZS http://www.Amazon.com/EVGA-GeForce-DisplayPort-Graphics-02G-P4-3682-KR/DP/B00C81
    4. Processor upgrade. I'm intimidated by it due to intensive installation and prices. What would be the next best bet - upgrade to 12-core? Where to buy?
    5. Firmware? I've seen videos and forums on (4.1 - I) (5.1) or (6.1). I don't really understand what that means. Should I be concerned?

    Thank you!

    -The fastest drive is a blade of base PCle SSD. Very very fast

    The SSD to 'Classic' Mac Pro training

    -The bus SATA on the Mac Pro is only SATA II (3 GB/s) and connected to the bus SAT SSD is therefore limited to speed SATA II, not the speed of current SATA III (6 Gbps) drives.

    -You can get cards PCle who accept the standard SATA SSD and who can get speeds of SATA III

    -You can install several graphics cards. I have my 2009 MP, I have the original GT120 in slot 2 and a 5770 PC card into slot 1 (slot width double only).

    A graphics for PC cards will not display anything while booting, as well as an installed PC card can be used for the Startup Option or special start-up as recovery mode.

    For more information on graphics cards:

    Tip: Mac cards replacement Graphics Pro money Tour (2006-2012)

    http://www.macvidcards.com/index.html

    http://forums.MacRumors.com/showthread.php?t=1440150

    -J' would upgrade not processors. Frequently reading and writing to disk is the bottleneck.

    About the firmware, you can update the firmware of the 2009 to 2010 MP. Which allows the use of faster memory, using a processor six cores and audio mini displayport for the graphics card offline

  • LabVIEW 2010 crash when calling user32.dll

    Interesting LabVIEW 2010 'characteristic', I discovered this morning.

    Attached are two identical screws, a registered in 2010 and a registered in 2009.  These screws have been written specifically to demonstrate the bug, I came across this afternoon.  Each VI when it is run needs you to find a specific program (window) opened in Microsoft Windows and bring it to the foreground.  It is based on 'user32.dll' to perform this operation.  It also allows you to specify the calling convention for the function call.

    LV 2009, calling convention works without error.  However, in LV 2010 the calling convention of the function must be "stdcall (WINAPI)" and not the default value of 'C '.  If the calling convention is 'C' LabVIEW hangs and then closes without warning.

    If you happen to have LV 2009 and 2010 LV on your computer, I would like to hear if this phenomenon is duplicated so that I can identify if the bug is LV 2010 related or is more specific to my personal configuration.

    Thank you

    ~ David

    221113

    Return

    COLD LAKE with the calling convention incorrect siliently crash LabVIEW can.
    LabVIEW 8.5 2009 could adjust the convention to call at run time if the user has selected the wrong option. In 2010, it is no longer a case. More information is located in the 59KB14WI knowledge base

    Workaround: Use the correct calling convention

    Reported Version: 2010 32-bit    Solved Version: N/A    Added the: 2010-07-23

    Release notes for 2010.

  • ERR (1097) with LabVIEW 2010

    Hello

    I have improved my code LabVIEW 2009 to 2010. When I run, I now get a ' (1097) ERR ' some of my objects .dll. Does anyone know why this is? (Note that my .dll is just hanging out in a directory and do not part with my PC)

    Thank you, Alec

    Hello Alec

    Thanks for your post, I'm the engineer who will support you. If I understand correctly, you upgrade your system and have encountered any errors with your dll. I did a search on our Web site for the error code and found an article that addresses the problem that you have. If you have any other questions do not hesitate to contact us.

    Thank you

  • My computer has always said that my windows vista 2009 is not authentic. What does mean mean

    My computer has always said when I open my windows Vista 2009 is not authentic and also said I should add those. I don't know what to do, can you help me with this kind problem?

    I got a c .d windows 7 but it does not work with my windows vista 2009, and I like windows Vista.Do windos Vista 2010 can run on my computer?

    My computer has always said when I open my windows Vista 2009 is not authentic and also said I should add those. I don't know what to do, can you help me with this kind problem?

    I got a c .d windows 7 but it does not work with my windows vista 2009, and I like windows Vista.Do windos Vista 2010 can run on my computer?

    RE: your Windows Vista is not genuine

    Please take a look at this article/answer given by Keith, the moderator of the forum

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-windows_install/Windows-is-showing-as-not-genuine/cbd43297-0e4d-458C-8487-9168c4cd668d

    There is no such thing as Windows Vista 2009 or 2010 Windows Vista.
    Are you actually referring to Microsoft Office 2009 and 2010?

    In any case...

    1. you should post this question in installation, upgrade, and activate forum

    http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-windows_install?tab=unanswered

    2. If it will make it easier for you, you can use the forum on French language for your questions

    http://answers.Microsoft.com/fr-FR/Windows/Forum/windows_vista-windows_install?tab=unanswered

  • Download Norton IS 2009?

    Just did a clean install of Win7, but did not have the Setup file of Norton Internet Security 2009.  I already have a subscription (purchased from my XP machine) so I just need to reinstall the program but cannot find my original media, need to get this back in the machine.

    Please let know us if you know if a link to download Norton Internet Security 2009, NOT 2010 version.

    Thank you!

    I found this message from the Norton Community user form:

    " User who have a subscription to Norton Internet Security or Norton AntiVirus 2006 and newer can be updated in 2010 for FREE by visiting the Norton Update Center ." 

    Click here for the message thread in its entirety.

  • Roxio Creator 2009 No. works most blackBerry Smartphones

    I use Vista 32 bit o/s with all the patches.

    When I upgraded to the latest version of Desktop software (version 96) recently, I found that my Roxio Creator 2009 no longer works.  I can't even open the application.  When I go to start the Roxio software, I received a message that "Roxio Creator has stopped working.  A problem caused the blocking of the program works correctly.  Windows will close the program and notify you if a solution is available. »

    Any suggestions to get my software Roxio Creator works again?

    I uninstalled and reinstalled.  Everything is good now.

    For those who might encounter the same or similar problem, you might find that two uninstall useful procedures:

    Complete uninstall of Creator 9 & 10 on Windows Vista

    Complete uninstall of Creator 2009 and 2010 (Windows Vista and 7)

  • Unable to download from the app store 10.6.8

    My main workstation (iMac) has worked so slow, that I decided to dust off my old Mac pro. I had forgotten how fast he is, or maybe I just took the habit to work on my iMac incredibly slow! Anyway, the only problem with my Mac pro is that I am on OS 10.6.8 - make my impossible navigation / insecurity. But when I visit the app store to upgrade my system I can't download anything at all. I click on the 'get' button and nothing.
    Of course I restarted several times, I activate the debug mode on the app store, I emptied the cache and reset the app store through the menu debug, disconnected and once again, rebooted again... still nothing. I even created a new apple ID to try as I was running out of ideas.searched these forums (and others) and I can only find stuff related to an Apple discussed with their servers, all these threads are now quite old so I guess that these issues have been fixed?

    Recently, someone at - he had this problem and solved it?

    If your MacPro is a 2006 model or 2007, you can't update to El Capitan.

    You can always buy codes redemtion for download Lion and Mountain Lion from the Apple Store online, not from the App Store, but these no longer receive security updates.

    If your MacPro is a model of the 2008,2009 and 2010, you should be able to upgrade to El Capitan via the App Store.

    On 20 September, Apple will release Mac OS Sierra, El Capitan will become more than likely unavailable.

    and only the 2010 model and later will be able to upgrade to the new operating system.

Maybe you are looking for