Printing a chart in many pages

Hello everyone!! I was hoping someone could help me... here's
the thing I'm trying to do:
I have a column chart that its horizontal axis has a maximum
of 42000 values. The problem is that if the user prints this chart
it will show many values together and he couldn't see it well. So,
I have implemented a HTTPService that populates the chart based in
two parameters and I want to separate that chart in many charts
with an interval of values. For example, first page: values from 0
to 200, second page: values from 200 to 400 and so on...
For doing this I tried to call the HTTPService everytime I
wanted a new interval of values, implementing its result event...
but doesn't work!!! I'm not able to add to the PrintJob the chart
that I re-populated with the new service.send() method, instead it
prints the first chart o the last one many times!!! could someone
help me please? here's my code:
public function doPrint():void
var of:int=0;
var dis:int=200;
i=0;
try
printJob=new FlexPrintJob();
if(printJob.start())
//I want to print 4 charts (values from 0 to 800)
while(i < 4)
srv.url="
http://localhost:1937/Web/datosFlex.aspx?offset="
+ of.toString() +
"&distancia=" + dis.toString();
var call:Object = srv.send();
// Add a variable to the call object that is returned.
// You can name this variable whatever you want.
call.marker = "option1";
i++;
of=of+200;
printJob.addObject(this.chart,mx.printing.FlexPrintJobScaleType.MATCH_WIDTH);
mx.controls.Alert.show(i.toString());
printJob.send();
catch (error:Error)
mx.controls.Alert.show("<Error> " + error.message);
// In a result event listener, execute conditional
// logic based on the value of call.marker.
private function resultHandler(event:ResultEvent):void {
//mx.controls.Alert.show("dentro del evento Result");
var call:Object = event.token;
if (call.marker == "option1") {
//mx.controls.Alert.show("ya tenemos respuesta");
// Hundreds of milliseconds later, my results
// have arrived, and I can add them to my list!
call.marker="";
this.resultado.text=this.resultado.text+" " +
srv.url.toString();
I tried everything, I wrote the PrintJob.addObject in the
result event method but it shows an error. Also, I tried to save
every new chart in an object array but it saves a referenfe to that
chart, and I want to clone it, so I can print every position of the
array (every chart).
I don't know if I explained the problem right, hope you
understand what I'm trying to say :) Can anyone help me please???
Regards!

Sure,
you can print the frontpanel programmatically
You need the VI Reference and an "Invoke Node"
Select Print panel (or similar, I have a german LV)
This prints the Panel to the default printer.
OR
You create a reference of your chart,
take a "property node", select value,
connect the value output to the 1D input of the "Write to spreadsheet file.vi"
Best regards,
Balze

Similar Messages

  • PDF Print error win printing many pages

    Hi.
    I have a problem then I try to print an PDF file with many pages.
    I have Windows 2003 as the OS, and the Adobe PDF Reader X 10.1 as my PDF reader, the printer is an HP LaserJet M602n with 512MB Memory.
    The setup is that we have some thin clients that have the printer driver, the driver is HP LaserJet 4200n or HP LaserJet 4050n, and it works fin on the HP LaserJet M602 with small PDF files and Word and other text files.
    But then I print PDF files with many pages it is spooling fin but win it is going to print it says error, with out the printer is doing anything.
    Will a print server help me?
    Or is there a solution to my problem?

    Hello
    Before re-installing, it may be useful to
    a - repair permissions with Disk Utility
    b - trash the preferences file: <bootVolume>:Users:<yourAccount>:Library:Preferences:com.apple.iWork.Pages.plis t
    if it's not sufficient, try to print from an other user account.
    If it works this way, you will know that the application's files are not the wrongdoers as every account calls the same application file.
    Yvan KOENIG (from FRANCE samedi 1 mars 2008 15:33:41)

  • How many pages can a BOOK hold

    Does anybody knows the BOOK object in Printing can hold how many pages?
    What happens if overflow?
    What happens if each page contain huge data object such as graphics?

    well, you could try it, it should only take a few lines of code to see how large a String can get.
    I think a String can be larger than the text of a JTextArea, not sure though.

  • How many pages my HP Deskjet D5560 printed

    Hello, tell me please how can I determine how many pages my HP Deskjet D5560 printed in its lifetime? Thanks !

    Hi alina_26,
    You can find that information on the printer status report.
    I have included a link on how to get that report.  The information should be found in the section titled "Print Usage Information".
    Printing a Printer Status Report
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&docname=c01736284
    Happytohelp01
    Regards,
    Happytohelp01
    Please click on the Thumbs Up on the right to say “Thanks” for helping!
    Please click “Accept as Solution ” on the post that solves your issue to help others find the solution.
    I work on behalf of HP

  • How many pages have been printed?

    Photosmart Premium Fax AIO c309a.
    Is there a way to find how many pages have been printed?
    I'd like to track page yield, which so far has been way below even totaly miserable.

    How is the printer connected?  If a network connection then you can use the printer's built in web server by entering the IP address in your browser, then click on  "Usage report"  on the left.  If you are connected by USB you could print a report page from the front panel as follows:  Setup, Print report, OK, Print Status Report, OK.  Items 13 and 14 will have page usage information.
    Bob Headrick,  HP Expert
    I am not an employee of HP, I am a volunteer posting here on my own time.
    If your problem is solved please click the "Accept as Solution" button ------------V
    If my answer was helpful please click the "Thumbs Up" to say "Thank You"--V

  • I have a printer xerox 3220 on networking ,have pc´s and a mac ,problem:it´s already install but does not work ,only print many page with code program,i will appreciate the solution

    i have a printer xerox 3220 on networking ,have pc´s and a mac ,problem:it´s already install but does not work ,only print many page with code program,i will appreciate the solution

    Hi guillermospain,
    Welcome to the Support Communities!
    The article below may be able to help you with this.
    Click on the link to see more details and screenshots. 
    OS X: Connecting a Wi-Fi printer to your Wi-Fi network
    http://support.apple.com/kb/ht3500
    OS X Mountain Lion: Set up a printer
    http://support.apple.com/kb/PH11145
    OS X Mountain Lion: Reset the printing system
    http://support.apple.com/kb/PH11143
    Cheers,
    - Judy

  • Exchange printing too many pages

    I have and individual on exchange, that every time they want to print E-Mail it prints about 70 or 80 pages more then the one page they are trying to print.  I have this person on the same printers with drivers that work for a hundred other people
    so I figured there must be something wrong with the Exchange profile so I deleted it and started again.  The same thing happened.  Any ideas?

    I had the same issue.
    It was solved by;
    Forward the email
    Selecting everything in the mail
    And finally remove all formatting. (The upper right icon in the basic text group)
    (Not certain how the functions are named in the english version as i use the norwegian version of Office 2010)

  • You want to print how many pages? I don't think we have the memory for that Dave.

    Printing lots of pages? XAML might not be the right choice. Find out more here:
    http://aka.ms/ojrxh6
    Windows SDK Technologies - Microsoft Developer Services - http://blogs.msdn.com/mediasdkstuff/

    I still have bitter feelings about printing in metro app. The MS team has made it extraordinarily difficult to print in metro. To give you an idea, if you want to print out a simple string of text in wpf, it takes 3 lines of code. If you want to print out
    the same string of text in metro, it takes 100+ lines of code and pray that the app doesn't crash.
    It took me months, yes months, to fully figure out how to print properly more than 1 page in a metro app. 

  • How to Print 2 layouts in One Page

    Hi Experts!
    As a customer requirement, I defined an half page Invoice Layout but when I printing it, it gets the hole page to print it.
    What the customer needs is to print 2 invoices in only one page. It is possible to do that?
    Advice me please!!
    Thanks
    Claudia P. Gutiérrez

    Hi,
    I think it's more of a printer setting, but probably it's not possible to set a normal laser printer to do this but could be possible with a dot matrix printer.
    Anyway, you could try to change the printer settings and the page settings from SAP, for example changing the paper size and then changing how many pages to print on one page - this setting usually offers printing two pages on one paper next to each other only but not below each other, but it's worth to give a try.
    Regards,
    Nat

  • Printing 2 notifications in 1 page

    Hi All,
    I need to print two notifications in one page. One notification will only printed at half the page while the 2nd notification will be printed on the other half page. Lets say if I selected multiple print job (eg 100 notification) , and 50 pages of notification will be printed.
    1) How can i print two notifications on a page using SAPscript? I am using one window to draw both the same forms on one page, and I am not sure if this is a correct method to do it.
    2) Is there an easier way to generate a single spool request for many notifications so that I only have to go through the print dialog a single time?
    Thanks and regards,
    Shannon

    Hi,
    There is another way you can do it,
    by using  PERFORM < Perfornmane>IN PROGRAM <programname>. This you will write in SAP script with Using and changing variables
    and in driver program use
    FORM < Perfornmane> TABLES IN_PAR STUCTURE ITCSY
    OUT_PAR STRUCTURE ITCSY.
    Now you use this perform twice and you will get data for two notifications in your main page.
    Hope this helps you,
    Reward if helpful,
    Madhura

  • After updating to 5.1, pages no longer lets me convert long, single page (up to 8 1/2 x 50) document to an 8 1/2 x 11 document with many pages.

    I have been using pages to create a document that I always export in two ways.  1st, I export a single page document that contains all of the data (sometimes this can go as long as 8 1/2 x 50).  I have to do this for web purposes.  Next, I duplicate the document, and change the page setup to 8 1/2 x 11, turning it into a document with many pages. This is for printing purposes.
    Before upgrading to Pages 5.1, this worked flawlessly.  After the upgrade, when I change the document to 8 1/2 x 11, Pages just deletes all of the data after the 11'' mark. 
    I am trying to make it behave like it did before the upgrade: when I convert the document to 8 1/2 x 11, it just made as many new pages as necessary and didn't delete any of the data.
    How can I do this?

    Pages 5 is buggy and has had over 100 fetaures removed.
    Pages '09 should still be in your Applications/iWork folder, use that.
    Peter

  • Generic Service - Charts on Home Page...Sometimes?

    Greetings all -
    I am using OEM 12.1.0.2, with Oracle Beacon(3.9+) 12.1.0.2
    Here is the scenario -
    I navigate to 'targets - services' off the top drop down.
    I select 'beacons' off the 'Sevices Features' drop down.
    I select 'add' - Give it a name (Bob_Beacon) - select an agent - next to 'Enable Message ID Request Header' I select Yes. Click create - (receive message Bob_Beacon was created successfully and ok that).
    Now, I expand the agent where I created the Beacon - and click on Bob_Beacon.
    I go to 'Monitoring Configuration' from the beacon drop down (just below Bob's name).
    The Monitoring Configuration clearly shows 'Enable Message ID Request Header' set to FALSE.
    I can change it to 'TRUE' and save...it does seem to stick.
    So, I continue...back to Targets -> Services off the top drop down.
    Here click add. Give it a name - BobService, select timezone, and next.
    Leave availability at 'based on service test' and next.
    For Service Test, I select HTTP PING, give it a name(BobHTTPPing), change freq to 3 min, and supply a url. Finally Next.
    Beacons - click add, put a check next to Bob_Beacon and select, then next.
    Performance - leave total time, but click add - should show 'status' - click continue, note chart on homepage says 'total time'. click next.
    Leave usage metrics as is - just select next.
    Select Finish.
    So here's the rub. In a day or two, I come back to grid to check on the new service. Some, show 'no data is currently available' for chart on the home page of the service. Others show data. I can track down no rhyme or reason why some do and some don't.
    Are there additional steps required? I haven't defined SLA calendars for any, (those that show charts, and those that don't.) Those that don't show are chart on home page, also display empty charts on the the 'charts tab.' But if I go to the 'Test Performance' tab, a chart is visible with data.
    Plz try the steps listed here, and let me know if you receive the same results.

    As a followup -
    It is interesting...the latest one.... BOBSERVICE indeed has charts on the home page & charts page.
    I actually created that one yester, while doing the post, to ensure the steps listed were accurate.
    But many others don't have the charting.
    I can post screen shots, etc... of setting one up...
    What 3rd party website works well for uploading screenshots and posting the image links here...
    Do advise...
    D

  • Sapscript bottom text in Main, just for the last page, but printing only in the last page

    I need to print a text but only for the last page in the main window.
    I have tried with IF.
    IF &PAGE& = &SAPSCRIPT-FORMPAGES&
    BOTTOM
    ....TEXT
    ENDBOTTOM
    ENDIF
    But it prints in all pages in every main window.
    Can someone point me what I am doing wrong or how can I do this?
    Regards,
    Carlos

    Hello Carlos,
    the problem with this condition is the following.
    The Sapscript composer cannot know during the processing of e.g. the first page,
    how many pages will follow. So &SAPSCRIPT-FORMPAGES& still contains the same
    value like& PAGE& and is filled with the correct values only at the very end of the processing.
    (when the total number of pages is known).
    So I suggest you to use the BOTTOM command in the print program,
    when the processing of all item of the MAIN window is ended.
    There is an other variable &NEXTPAGE&.  &NEXTPAGE& will always be 0
    when it reaches to last page to print. The problem with this variable that
    it can not be used in a condition in MAIN window too, only in a separate page window.
    Regards,
    Hedvig

  • When printing Gantt chart, some of the bars are not appearing in it

    When printing Gantt chart, some of the bars are not appearing in it
    I have added print tag in xml of chart mode-multiple pages.
    <print mode="MultiPage" print_all_columns="true" />
    For printing, I right ckicked on chart and clicked on Print chart..
    Edited by: Sheetal on Mar 29, 2012 2:46 AM
    Edited by: Sheetal on Mar 29, 2012 2:51 AM
    Edited by: Sheetal on Mar 29, 2012 2:56 AM

    Sheetal,
    Did you ever find a reason as to why the bars were not printing? I'm experiencing the same problem with Apex 4.1.1. Only the first part prints. Here is the print tag:
    <print mode="MultiPage" print_all_columns="true" columns_on_every_page="2" fit_timescale_to_end_of_page="false">
    I've changed some of these settings to no avail.
    -Seth.

  • Sapscript: Output is continuous or contains too many pages (more than 3)

    Hi,
    I have developed Sapscript form for printing out material documents.
    When users try to print out document with 68 positions, they receive error in MB90 -
    " Output is continuous or contains too many pages (>3)".
    Message no. TD405
    If they try to print out small document, for example 3 positions, everything is ok.
    What I have to check now?
    Thanks,
    Sveta.
    Edited by: Julius Bussche on Sep 24, 2008 10:24 AM

    Hi,
        Try to check the page counters for each page format.
        How many Page formats are there in your Form?
    Check the First Page Attributes,
    Page Counter
    Mode                     START
    Numbering Type     ARABIC
        Output length     00
    which is next page to First page
    Check Next Page Attributes
    Page counter
    Mode                     INC
    Numbering Type     ARABIC
    Output length         00
    which is next page to Next page
    Regards
    Bala Krishna

Maybe you are looking for

  • Scanjet G4050- How to scan multiple slides at one time with Image Capture

    Using Scanjet G4050 with Mac and OS 10.6.  Thus using Image Capture to control scanner.  When using the slide template for 16 slides, Image Capture only allows me to select one slide at a time.  Is there a way to fill the template with 16 slides and

  • I can`t copy image from the web sites to Microsoft Word, since I update firefox ! Why ? How I can fix it ???

    <blockquote>Locking duplicate thread.<br> Please continue here: [[/questions/939085]]</blockquote> I am tryin to copy image form ZABBIX to Word document. Everything was fine before update and now I am having a problem

  • Prepared statement not releasing from access db

    Hello all, I have several prepared statements like the following: public void storeUpdate(String userId,String ws,String wm,String wl,String wx,String wxx,String bs,String bm,String bl,String bx,String bxx, String tq, String tp,Timestamp ts)      Str

  • 10g r2 warning

    Checking Network Configuration requirements... Check complete. The overall result of this check is: Failed <<<<< Problem: the install has detected that the primary IP address of the system is DHCP-assigned. Recommendation: Oracle supports installatio

  • Set up asyncronous correlation to MSMQ / Dynamics AX2012

    Hi Pros, I am using the MSMQ-Adapter to send an async. message to Dynamics AX2012. The message is processed by AX and the response is put to an outbound MSMQ directory. BizTalk receives the response but i have problems setting up a working correlatio