hello I'd like to create an object in LotusScript to build dynamic Charts in a web page, I don't find the way to create this object in LotusScript... Any ideas ? Thanks a lot
hello I'd like to create an object in LotusScript to build dynamic Charts in a web page, I don't find the way to create this object in LotusScript... Any ideas ? Thanks a lot
If the language supports instantiating COM components, use the appropriate syntax as defined in the language to create a chart object and use its methods. -- Regards, Alvin Bruney [MVP ASP.NET] [Shameless Author plug] The Microsoft Office Web Components Black Book with .NET Now Available @ www.lulu.com/owc Forth-coming VSTO.NET - Wrox/Wiley 2006 -------------------------------------------------------
Hi Alvin and thank you for answering Do you know where can i find forums or tutorials to find the right syntaxes for create the object ? I don't find in the Lotus Notes help... Thanks a lot & sorry for my english, i'm french :)
I don't know of any lotus script resources, however you can get the black book. It will show you how to build charts in .NET and vb/javascript. From there, you can simply port the syntax to lotus script. -- Regards, Alvin Bruney [MVP ASP.NET] [Shameless Author plug] The Microsoft Office Web Components Black Book with .NET Now Available @ www.lulu.com/owc Forth-coming VSTO.NET - Wrox/Wiley 2006 -------------------------------------------------------
Ok thanks you Alvin :) i succeed in create my object... But i have another problem now :| i don't have any errors when i run my code but how can i do to display the charts ? If the only solution is to "print" a .gif file or is it possible to embed the component in the page to interact with ?? How can i do for that...? My current code is : Sub Initialize On Error Goto erreur ' On declare le graphique, les constantes et la categorie (echelle des dates) Dim ChartSpace1, Cht, axCategory ' On recupere l'objet Set ChartSpace1 = CreateObject("OWC11.ChartSpace") With ChartSpace1 .Clear .Charts.Add .Charts(0).SeriesCollection.Add .Charts(0).SeriesCollection(0).Caption = strCaption .Charts(0).SeriesCollection(0).SetData .Constants.chDimCategories, _ .Constants.chDataLiteral, varCategories .Charts(0).SeriesCollection(0).SetData .Constants.chDimValues, _ .Constants.chDataLiteral, varValues .Charts(0).Type = .Constants.chChartTypeBarClustered .Charts(0).Axes(.Constants.chAxisPositionBottom).NumberFormat = "$#,##0" End With Exit Sub erreur: Print Cstr(Err) + " : " + Error$ + " at line " + Cstr(Erl) Exit Sub End Sub thank you
the script language must support some form of writing the object to the response stream for display in the browser, or you can embed the object in the page using the <clsid> tag, load data and simply display it. -- Regards, Alvin Bruney [MVP ASP.NET] [Shameless Author plug] The Microsoft Office Web Components Black Book with .NET Now Available @ www.lulu.com/owc Forth-coming VSTO.NET - Wrox/Wiley 2006 -------------------------------------------------------
1.Create excel chart from LotusScript, change xlLine line weight
I need to adjust the line weight of an xlLine type chart from within LotusScript. I cannot find any methods that control the line weight in VBA. Everything I see concerning line weight deals with border, not the plotted line. Any suggestions or help appreciated?
2.How to Create Chart via LotusScript?
I want to create chart in a form via LotusScript. I donot know where I can find how to create chart in LS to fit my chart. Any Idea?
3.Excel created in LotusScript slow
We have a Lotus Notes application that generates all sorts of output to Excel spreadsheets via Excel objects. Recently (in the last month or so) we have a group of users experiencing a problem where the Excel session created by the LotusScript code is slow to populate some cells and when the spreadsheet is turned over to the user (visible=true), the users also experience very slow scrolling. For example, if you hold down the mouse on the down elevator arrow, the spreadsheet should scroll the rows by pretty fast, but we are experiencing maybe one row per second or so. If we close the Lotus Notes session and leave the Excel up, it's still slow. But, (regardless of whether you close Lotus Notes or not) if you are to save the spreadsheet, close Excel, reopen the saved spreadsheet, then the performance in the spreadsheet it normal (and fast). This doesn't happen to all users. Even I cannot reproduce the problem on either of my two laptops. The users who do experience the problem also experience the same problems when they run the code from different variations (including test versions) of the Lotus Notes database. We haven't released any code changes lately. Any ideas on where to focus the troubleshooting? The LotusScript code uses fairly standard Excel objects (such as Workbooks.Add to establish the worksheet) and sheet.cells calls to populate the cells. Nothing fancy. I'm thinking there something on these laptops that are clashing with the Excel session. These users all used to fly through the generated spreadsheets. Thanks in advance for any input / suggestions!
4.Create hyperlink on word document with LotusScript
I am having a problem in trying to create hyperlink on Word from a given URL. I am using the code below to write the link, but the url(lnk variable in this case), is written as text not a hyperlink.Please help guys.. myWordApp.selection.InsertAfter "Document Link: " & lnk & Chr(10) & Chr(10)
I have an excel spreadsheet with 600 rows in it. Each row has the name of an item followed by several columns of numbers. I need to create 3 different small charts in a Word document for each row in the spreadsheet. In word, you will see a Item Name, with 3 small, but different charts on the next line, followed by a blank line. I know I can create the charts in Excel using a macro and then copy and paste them into word as pictures. Once that is done, I can tell word to run a macro to format the pictures. But the quality of the text breaks down depending upon how much I stretch the charts. WHAT I WOULD RATHER DO is, either from Excel, tell word to insert Excel chart objects or from Word, get the data from Excel and create the chart objects. Using the first method, I have created a macro in Excel to tell Word to run a macro to put in a line of text with the item name in it, followed by a paragraph break, followed by inserting an Excel object. But where do I put the macro that tells the Excel object how to format itself? I do not want to store the macro in each Excel object as that would bloat the document. I have tried to place the Macro back in the original Excel sheet, but when I tell it to run, it seems to want to run within the original Excel sheet, not within the Excel object in Word. What am I doing wrong? Or am I missing something even simpler that would solve my problem?
6. DEMO: Create Charts with Notes View Data
7. Excel97 chart objects compatible with Excel2000 chart objects
Users browsing this forum: No registered users and 94 guest