How can I set printing margins of report?

Hello,
I am trying to print programmatically a portrait of a JPEG image that has been created by a Front Panel.
I print it by creating a Standard Report.
While the JPEG image is fine, the printed image is compressed at the long edges. So, the printed image is a little bit distorted.
I change the Printing:Margins Property of the vi at the First Call of the vi, but the result is the same.
On the other hand, if I open the JPEG image with a program like Picasa and print it, the printing image is not compressed/distorted.
I attach an image of the code that is used to print the JPEG and an image that shows the Printing:Margins Property.
How can I print it correctly via LabVIEW?
Solved!
Go to Solution.
Attachments:
Print_code.JPG ‏31 KB
PrintingMargins_code.JPG ‏22 KB

Hello,
I tried the solutions that you proposed and I have the following results:
1. The solution to print the Front Panel through the invoke node of the vi's reference is not ideal, because the desirable printer cannot be chosen.
2. I cannot use the Word Report because I have not the Report Generation Toolkit for Microsoft Office.
3. I used the HTML Report and I change the print settigns by modifying the registry keys in the following folder:
"HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\PageSetup"
I can change the margin_bottom, margin_left, margin_right, margin_top, Shrink_To_Fit and assign the values 0,0,0,0,no to them.
The result in the printing image is obvious. It is no longer compressed and it is positioned almost according to the margins. Although all margins are set to 0, it has to be positioned 2cm more at left and about 2cm higher to be proper.
But the footer and header registry keys even if they are deleted (I cannot assign empty string from command line), they are appeared in the printed page.
I attach the new vi files that modify the registry keys of the above folder before printing and restore them after printing.
Also, the Front Panel size of the Report.vi has been changed and set equal to the A4 paper size 21x29cm and a little bit bigger in order not to print the decoration border.
So, the problem of proper printing of HTML report remains having only to remove the footer & header and understand why the printing image is not positioned at full left and full top even if the registry keys margin_left and margin_top are 0 and 0.
On the other hand, if the vi's Front Panel JPEG image is printed from a Photo-program, it is printed correctly given that the margins are set to 0 and the "Scale" option has been disabled.
Thank you very much for your help.
I am looking forward to hearing from you if it is possible.
Attachments:
PrintReport.vi ‏336 KB
Report.vi ‏6 KB

Similar Messages

  • How can i set print mode at run time in smartforms???

    Hi expert,
    In smartforms how can I  set print mode at run time.
    I have one screen.In this screen one check box is there.If user select that check box then print should be come double side otherwise it is coming single side.
    If it is possible then plz give me answer asap.

    Hi,
    Set These settings
    While calling smartform, paas control_parameters and output_options as mentioned below and set
    user_settings = ' '.
    It will send the smartform output to spool.
    DATA: wa_output_options TYPE ssfcompop,
    wa_ctrl TYPE ssfctrlop.
    wa_output_options-tdimmed = 'X'.
    wa_output_options-tddelete = 'X'.
    wa_output_options-tdimmed = ' '.
    wa_output_options-tddest = 'LOCL'.
    wa_ctrl-no_dialog = 'X'.
    CALL FUNCTION lv_fm_name
    EXPORTING
    ARCHIVE_INDEX =
    ARCHIVE_INDEX_TAB =
    ARCHIVE_PARAMETERS =
    control_parameters = wa_ctrl
    MAIL_APPL_OBJ =
    MAIL_RECIPIENT =
    MAIL_SENDER =
    output_options = wa_output_options
    user_settings = ' '
    x_adrp = x_adrp
    IMPORTING
    DOCUMENT_OUTPUT_INFO =
    JOB_OUTPUT_INFO =
    JOB_OUTPUT_OPTIONS =
    EXCEPTIONS
    FORMATTING_ERROR = 1
    INTERNAL_ERROR = 2
    SEND_ERROR = 3
    USER_CANCELED = 4
    OTHERS = 5
    IF sy-subrc 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    Regards,
    Kumar(Reward if helpful).

  • How can I remove print margins when manually setting them to zero doesn't work?

    I'm trying to print a web page that I've created with a custom paper size of 4.5x10.25 inches. I want the page to be printed right to the edge of the paper, with no margins at all.
    I've been reading for a few days and the best thing I can find is to use Mac's Page Setup dialog to create a custom paper size and custom margins, which I've done and set to the default for all of my printers. (Hopefully I'm able to post links to images --> http://i.imgur.com/kVbOZLk.png). No matter what I do though I can't get the margins to go away. There's always always always a .75 inch margin when I print and when I print preview (Again, hoping I can post links to images --> http://i.imgur.com/cxlVS8o.png). Just to note: The same thing happens printing other websites and documents (i.e it is not a problem with my website).
    Things I've tried:
    I've read that the margins are only visible in print preview and printing the page will remove them. This didn't work.
    I've tried tricking the system by setting my margins to 0.01 inches
    I've tried adjusting the website to not be exactly the size of the page (I made it smaller) and the margins were still there.
    I've set "print.print_extra_margin" to 0 in Firefox's about:config page.
    I've tried a different printer.
    I've tried a co-worker's machine running a newer version of OSX.
    I've made absolutely sure that my page size it set correctly.
    I'm using OSX 10.6.8 with Firefox v21.0.
    The closest I can come to this is using Google Chrome, where there is a specific option for "none" in margins and the Chrome preview looks okay, but I'm not able to specify paper size unless I click "Print using system dialog" which gives me the same problems as above.
    How do I remove the margins and just fit to the exact size of the page?

    Welcome to Apple Support Communities. We're all users here.
    Does your Print dialog offer photo 'borderless printing' settings for various paper sizes?
    Every photo printer I've ever encountered leaves some unprintable margin, unless 'borderless' and/or 'photo' media are specifically selected.
    On many of the Canon inkjet color printers I've used, borderless printing is only available when one of the photo papers is selected, even when a custom size specified that is smaller than the actual paper, trying to make it 'borderless'
    I stitch together and print panoramas of theatre sets for my local community theater, so I end up with an image about 4.5 inches by 11.5 inches to be printed.
    Selecting a photo and opening in Preview and selecting 'Fill Entire Paper' illustrates the standard unprintable borders for my specific printer.
    When I open the panoramic image in Preview, I get this print preview. (The set image is of course rotated left)
    By selecting Letter and Borderless in the Paper Size dialog for my Canon MG5320 printer, I get this result.
    This particular Canon printer of course does NOT actually 'know' what paper is inserted, but the ink is applied assuming that a photo paper is being used, so it will saturate a standard paper.
    Hope this helps!
    Message was edited by: kostby

  • How can I set mirror margins (or "facing pages") in 5.0?

    I recently updated by Mac System to Maverick just so I could update to the new version of Pages. In so doing, I gave up my old MS word program (because it was outdated for this system). But Pages did most of those things I needed.
    HOWEVER
    Now, I am trying to format a .pdf file to publish a book and I CANNOT see how to set "mirror margins" or "facing pages" in order to properly format my book. What happened to this feature (and what the **** was Pages thinking when they dropped this feature, if they did?).
    I saw another post that suggested trashing Pages 5.0 and getting the old version out of a folder and using it (not sure I can now that I'm running Maverick).
    Do I need to go buy a new version of MS Word so that I can format books now?
    Help!
    (And I need it right NOW).
    Thanks,
    Lareena

    Both Pages '09 and Pages '08 work with Mavericks.
    http://www.freeforum101.com/iworktipsntrick/viewforum.php?f=22&sid=3527487677f0c 6fa05b6297cd00f8eb9&mforum=iworktipsntrick
    Peter

  • HOW CAN I SET MY FAX SENDING REPORT AS PRINT HP LASER JET COLOURE 2840

    sory i want to set my hp laser jet coloure 2840 as fex sending report as a print 

    Hi
    I found a link which may help you
    http://h10032.www1.hp.com/ctg/Manual/c00292207.pdf
    Go through the Fax part of it.
    Hope this helps.
    ***** Click the KUDOS Thumbs UP (Like) on the left to say 'Thanks'*****
    ****Make it easier for other people to find solutions, by marking my answer “Accept as Solution”&"Kudos"if it solves your problem.****
    -VJ
    Although I am an HP Employee, I am speaking for myself and not for HP.

  • How can I set print paper quality in Aperture

    I have recently converted from IPhoto to Aperture. Great but for one thing. In IPhoto when I send to print to my Canon ip5200r it prompts me for type of paper. In Aperture I can't find how to change papaer setting. All prints are coming out low quality. Any ideas??

    Can I direct you to a great online resource that covers all aspects of Aperture and printing:
    http://digitalmedia.oreilly.com/2007/02/13/insideaperturepodcast-9.html

  • How can I set prameters on a report source

    HI,
    I'm writing a JSF application that uses Crystal Reports. I am able to show the report with this tag.
    <bocrv:reportPageViewer viewerName="CrystalViewer" reportSource="#{crystalReportManager.getReportSource('CrystalReport1.rpt')}" allowParameterPrompting="on"/>
    The code for the crystalReportManager.getReportSource looks like this
    public Object getReportSource(String reportPath)
            try
                IReportSourceFactory2 rptSrcFactory = new JPEReportSourceFactory();
                Object rptSrc = rptSrcFactory.createReportSource(reportPath, Locale.instance());
                return rptSrc;
            catch (Exception e)
                e.printStackTrace();
            return null;
    I would like to set the properties so they will promt but I can't find any documentation on how to add a ParameterFieldDiscreteValue on a ReportSource object.
    Thank you.
    Matthew

    You're using the JSF report viewer tag to display reports, and you're using the JRC to retrieve the report.
    The JPEReportSourceFactory is a fairly old method, commonly used back in JRC 10 when there wasn't a ReportClientDocument.
    If you're using a newer version, then you can access the report via the ReportClientDocument, then set the parameters before passing it to the viewer, via ReportClientDocument.getDataDefController().getParameterFieldController().setCurrentValues(...).
    Sincerely,
    Ted Ueda

  • How to set printer margins if using a lot of printers in virtual desktops which are deleted each time users logs off

    Hello,
    i am using Firefox version 31. I have a problem with page setup margins. I need to use left
    30mm; right 10mm; top 20mm; bottom 20mm. I am using VMware floating assignemnt linked clones
    virtual desktops. After users log off - machines are deleted and users next time logs on get's brand
    new VDI's. Users gets printers to VDI using login script from Active Directory.
    Option Explicit
    Dim strPrinterUNC, objNetwork
    strPrinterUNC = "\\some_server\printer_number_1"
    Set objNetwork = CreateObject("WScript.Network")
    objNetwork.AddWindowsPrinterConnection strPrinterUNC
    WScript.Sleep (20000)
    objNetwork.SetDefaultPrinter strPrinterUNC
    Set objNetwork = Nothing
    Each user have different logon script, because they use different printers (different printer names e.g. \\some_server\printer_number_2 ; \\some_server\printer_number_3 and etc. Page setup margins in Internet Explorer are ok. But how to make Firefox page setup margins as i need? For other options i have
    used CCK2 Wizard 2.0.4 tool. It worked fine. Maybe i can put some information in C:\Program
    Files\Mozilla Firefox\defaults\pref\autoconfig.js I have some usefull data in it allready. I
    have found info that: "Setting print margins is done in the printer settings". I have a lot of
    printers, so i can not set printer margins individualy for each of them. Now mozilla shows top,
    bottom, right, left each 12.7 mm. What should i do if i have a lot of printers in enterprise
    environment?

    Firefox has a profile folder that has preferences to save this. But the config that would need to be changed is:
    print. save_print_settings = True - (default): Save the print settings after each print job
    Locking that preference: [http://kb.mozillazine.org/Locking_preferences]
    Or done manually:
    #In order to check the margins, we need to go to ''File'' > ''Page Setup''.
    #Once this is done, switch to the ''Margins & Header/Footer'' tab.
    #Check what's set there under ''Margins''.
    The following are the default values for ''Margins'':
    Check these values accordingly and change them if necessary.

  • How can I change the margin settings in the pages inspector to make them more specific for label templates. I need margins that can be set to hundreths of a centimetre not just tenths.

    How can I change the margin settings in the pages inspector to make them more specific for label templates. I need margins that can be set to hundreths of a centimetre not just tenths.

    I doubt you need hundreths as you would not even be able to measure that and the printer doesn't hold the paper to those tolerances.
    fruhulda is right. Pages accepts higher measure but rounds it in the measure field.
    If you want absolute accuarcy you need to set your measures to points. Everything else is being recalculated.
    Peter

  • How do set printing margins for my hp110photo smart printer

    I can't get my printer to print the whole page text. It cuts off most of the right portion of the document.How do I set the margins so it doesn't do this.

    seminolepeddler
    Possible place(s) to look for a fix:
    This might be a function output of the type of document you are printing.
    Try setting the editor to wrap the text at a particular margin size.
    Depending on your document editor and / or your browser , much of what is printed is controlled in Print Preview.  The Print Preview feature is available in most editors and most browsers under File, that is, the left-most editor drop down menu function.  (Chrome lacks a File Menu, find these features in Settings.)
    You may need to switch the print to landscape.
    You can also control the margins, at least to a small degree, in the Page Setup > Margins - Header / Footer tab of Print Preview.  Be Aware:  Expanding the margins may impact the header / footer information that is ordinarily printed on the document along with the text.  You can switch off this information, if desired.
    Dragon Document about Print Preview:
    Change Print Size with Print Preview
    Click the Kudos Thumbs-Up to show you appreciate the help and time from our Experts.
    Although I strive to reflect HP's best practices, I do not work for HP. 
    Click Accept as Solution when the Answer is a good Fix or Workaround!
    Kind Regards,
    Dragon-Fur

  • How can I set up printing to queues on a Windows 2008 server directly from the iPad apps and not from third-party applications without using AppleTalk or Bonjour?

    We have a Windows 2003/2008 server-based network with a dedicated print server which we would like to be able to print to over Wi-Fi.  How can I set up the printers on the iPad without downloading a third party application such as Print Central or Print N Share?  I want to just click the arrow and "Print" then choose the printer, which doesnt show up.  I want to be able to use the existing TCP/IP-based network that we have to reach these queues, not having to install Bonjour or AppleTalk to reach them.
    Thanks,
    KMQ7

    This would really be the "Holy Grail"   right now.  I think this a feature that every large organization requires. AirPrint works on a small scale, but is not really an enterprise class application.  In addition it uses the Bonjour discovery process which is difficult in a large LAN WAN environment.  For those that would remind me, I am aware of the enhancement link 

  • How can I set up a Canon printer on iMac with cd? (iMac has no cd/dvd drive?)

    Purchased the latest iMac with no dvd drive; also purchased a Canon printer with dvd set-up; how can I install printer on iMac?

    Macs do not usually need to download anything from the CDs that come w/printers.  Read the user manual that came w/the printer and/or contact Canon Support. 
    Or purchase an external burner.  Do not purchase Apple's usb burner.  3rd party burners are 110% better. 

  • HT4356 How can I set up a Canon MX410 to print from my iPad?

    How can I set up this printer on my iPad?

    If it is not an AirPrint enabled printer
    iOS: AirPrint 101
    you need an app to print via. Search the App store. Start searching for a  cannon printer app and general print app like Print Central

  • How can I set the text feild in a form to print out the entire feild?

    Right now it's only printing out what shows in the box, I want the box to expand when printed and show all the text entered in the field, how can I set it to do that?

    I think that the font size has to be set in the form itself, not the FDF.

  • How can I set Firefox to print to PDF, the only otions I have are (1) My Canon printer, (2) Fax or (3) Microsoft XPS document writer. There is no option for PDF

    A couple of weeks ago, from the file menu, in my print options was to print a web page to PDF, that facility is no longer there. does anyone know how can I set Firefox to print to PDF.
    The only options I have are (1) My Canon printer, (2) Fax or (3) Microsoft XPS document writer. There is no option for PDF

    Firefox generally displays the printers in Windows' Printers folder (Start orb > Devices and Printers). If it is missing one of the printers listed there, could you indicate which one it is, for example, Adobe Distiller, PrimoPDF, CutePDF Writer, etc.?
    If you previously had an add-on which added print-to-PDF functionality just to Firefox, perhaps it got disabled. You could check here:
    orange Firefox button ''or'' classic Tools menu > Add-ons > Extensions
    Also, are you really running Firefox 8.0.1? That version from last November is no longer secure and has been superseded by Firefox 11. If you browse the web widely, you should update for your security.

Maybe you are looking for

  • Need Help In Displaying Numberic Values In app.alert

    How can I display a two placed decimal value in an app.alert, correctly? app.alert("Invalid  - " + this.getField("Sub-Total-2").value, 1); In the above alert, Sub-Total-2 is defined with 2 decimal places, within its Text Field Properties. But if its

  • Lots of RAM, how to use it?

    Hello everyone Does anyone have any experience of running two instances from the same SAP system on a single Linux server in order to make use of a lot of available RAM? The situation is as follows: - SAP R/3 4.6C, Oracle DB on 64-bit proprietary UNI

  • Explain plan in procedure or function

    Hi I want to know how can i do explain plan in procedure or function. Any ideas or solution how can i do that? ;/

  • ItemEditor error

    I am getting the itemEditor to work mostly now. problem i am having is, after i switch the datagrid to become editable and then click into a given field (ie: itemEditor as a numeric stepper), if i just click in and out of the field, but do not make a

  • HT3819 Syncing between different ID's??

    My husband, daughter, and I all have different Apple ID's (3 iPods, 2 iPads, 1 iPhone, and our Home iMac between all of us) but I'm wondering if we can all share music and apps between all of our devices if we sync them all to our home iMac??