SmartView addin using VB
Has anyone seen a problem when using the Smartview addin with VB? Recently upgraded the SV patch to (9.3.1.6) to fix Excel 2007 from shutting down abnormally.
I have a problem using the VB to copy/paste data with the addin. I can get the entire code to perform correctly if I disable the addin. However, that is defeating the purpose of the automation. I have it set up to connect, retrieve, then copy/paste values into a new workbook to send to users.
I tried using the code in the supplied example, and I am still unable to export to Excel.
I am getting an output file, but it is 0 bytes in size (empty file).
If I change the export type to crReportExportFormatTabSeparatedText, then I get a file, an ugly file, but it does have the data.
Here is the code as it looks now
01 Dim myBytes As ByteArray
02 If strExpType = "14" Then ' word format
03 myBytes = rcd.PrintOutputController.Export(CrReportExportFormatEnum.crReportExportFormatMSWord)
04 ElseIf strExpType = "30" Or strExpType = "27" Then ' excel format
05 Dim exportOptions As New CrystalDecisions.ReportAppServer.ReportDefModel.ExportOptions
06 exportOptions.ExportFormatType = CrReportExportFormatEnum.crReportExportFormatMSExcel
07 Dim ExcelexportOptions As New ExcelExportFormatOptions
08 ExcelexportOptions.BaseAreaGroupNumber = 1
09 ExcelexportOptions.BaseAreaType = CrAreaSectionKindEnum.crAreaSectionKindReportHeader
10 ExcelexportOptions.ConstantColWidth = 20
11 ExcelexportOptions.ConvertDatesToStrings = True
12 ExcelexportOptions.StartPageNumber = 1
13 ExcelexportOptions.EndPageNumber = 5
14 ExcelexportOptions.ExcelTabHasColumnHeadings = True
15 ExcelexportOptions.ExportPageAreaPairType = CrExportPageAreaKindEnum.crExportPageAreaKindForEachPage
16 ExcelexportOptions.ExportPageBreaks = True
17 ExcelexportOptions.MaintainRelativeObjectPosition = True
18 ExcelexportOptions.ShowGridlines = False
19 ExcelexportOptions.UseConstantColWidth = True
20
21 exportOptions.FormatOptions = ExcelexportOptions
22
23 myBytes = rcd.PrintOutputController.ExportEx(exportOptions)
24 Else ' PDF Format
25 myBytes = rcd.PrintOutputController.Export(CrReportExportFormatEnum.crReportExportFormatPDF)
26 End If
Again, changing line 06 to
exportOptions.ExportFormatType = CrReportExportFormatEnum.crReportExportFormatTabSeparatedText
produces results.
I am using Crystal Reports 2008 v1
Similar Messages
-
Smartview Addin upgrade and APS
We are on EPM 11.1.2.600 and APS version is 11.1.2.102 as is the Smartview addin. Business is looking at the feature set in later releases of the Smartview addin, specifically Smart Query and some of the VBA extensions of later versions.
We are currently an old Essbase addin shop, with plans to go to Smartview in the near future, so I am not as 'up to speed' on Smartview. My question is if we upgrade to the latest and greatest version of Smartview do I need to upgrade the APS server also? I downloaded 11.1.2.5.x and was able to connect to Essbase and planning without issues but I want to make sure all features/functionality is available. Thanks.May I know which is your APS server , its recommended to use Web logic for latest version . May be there can be in compatibility if its web sphere !!
-
Start SmartVIew Addin with VBA
Hi,
I need to activate the Addin of SmartView via VBA code from an Excel Worksheet.
So far I created a worksheet and added the module SmartViewVBA to the VBA-Project.
I wrote a program to start the addin:
Sub Open_SMARTVIEW()
AddIns.Add Filename:="C:\Oracle\SmartView\Bin\HsTbar.xla"
AddIns("Oracle Hyperion Smart View for Office, Fusion Edition").Installed = True
End Sub
This added the HSTbar.xla to my VBA-projects. I also got the tool bar activated by this.
In the extras / addins I see that the SmartView Addin is activated. Nevertheless all SmartView Buttons do not react when I click on them and I am missing the SmartView menu bar.
Has anybody an idea or hint, what needs to be done in addition?
Best regards,
HelgeSmart View is a com add-in so you cannot unload it this way you would need to use code to change the 'connect' state of the com add-in:
Function LoadSV(enable As Boolean)
Dim oAin As AddIn
Dim comAin As COMAddIn
For Each oAin In Application.AddIns
Debug.Print oAin.Name
If oAin.Name = "HsTbar.xla" Then
Debug.Print oAin.Installed
oAin.Installed = enable
End If
Next
For Each comAin In Application.COMAddIns
Debug.Print comAin.Description
If comAin.Description = "Oracle Hyperion Smart View for Office, Fusion Edition" Then
Debug.Print comAin.Connect
comAin.Connect = enable
End If
Next
End Function
This will vary based on your smart view version and OS. In fact in windows 7 you would need to be running Excel as an admin and this in unlikely. Is there some reason you are needing to unload SV in VBA? -
Excel running within IBM FSR Disables Smartview addin
Is anyone using smartview within IBM Cognos FSR? We are experiencing frequent errors when Excel Disables the HFM addin. It does nto happen when running excel outside of FSR.
I enabled the COM Add-in, but I still get the same error.
I then tried this,
1. I disabled all Excel and Com add-ins.
2. Removed the Smart view add-in from Excel using the "COM Add-ins" dialog.
3. Exited from Excel.
4. Opened Excel and added the Smart View add-in from the Excel using the "COM Add-ins" dialog. (I browsed and selected it from the file system)
5. Enabled the Smart View Com add-in.
6. I then exited from Excel.
When I open excel again the following 3 dialogs pop up.
Dialog 1 with message: "Smart View handled an unknown exception by Microsoft Office".
I press the Ok button and then I get the following dialog.
Dialog 2 with message: "Microsoft Office Excel has encountered a problem and needs to close. We are sorry for the inconvenience."
I leave the "Restart Microsoft Office Excel check box" checked and press the "Don't Send" button. I then get the following dialog.
Dialog 3 with message: " Excel experienced a serious problem with 'Oracle Hyperion smart view for office, fusion edition' add-in. If you have seen this message multiple times, you should disable this add-in and check to see if an update is available. Do you want to disable this add-in?. I select "Yes" because if I select "No" I go into a loop that repeats these 3 dialogs. -
How to retrieve sharepoint list data and show it on excel-addin using C#
Hi,
we have a sharepoint list where all students are present. we wanted to get the data from the list and show it via excel addin (VSTO) (something like save,retrieve buutons) . we have some more business logic which need to be performed before the data is retrieved
. once data is shown on excel , user modifies it and update/save the record back to sharepoint.
can you please give some samples and suggest any links to start with development.
Thanks
chaituHi chaituatp,
For this requirement, I would suggest you to get familiar with how to create VSTO applications, and how SharePoint object model works. Here are some sample code about this:
How to: Retrieve List Items using JavaScript:
http://msdn.microsoft.com/en-us/library/hh185007(v=office.14).aspx
http://msdn.microsoft.com/en-us/library/office/ee534956(v=office.14).aspx
VSTO application show data in datagridview:
http://stackoverflow.com/questions/16926275/simple-example-of-vsto-excel-using-a-worksheet-as-a-datasource
Thanks,
Qiao
Forum Support
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact
[email protected]
Qiao Wei
TechNet Community Support -
Smartview VBA - Using HypCreateConnection to connect to different Providers
Hello,
I am currently working with Smartview 11.1.1.3.500. I am trying to build some code that will allow me to switch between our production and test environments that are on different APS URLs, rather than having to go into the options and typing in the server information everytime I need to switch. It looks like the HypCreateConnection function would be the one that would allow me to do this, but I'm not sure if I'm using it correctly. I am trying to send the Prod or Test APS URL and database info into the vtProviderURL and vtServerName parameters.
HypCreateConnection(Empty, [userName], [userPass], HYP_ESSBASE, [Prod/Test APS URL], [Prod/Test Server Info], [AppName],[DB Name], [Prod/Test Name] , "Analytic Provider Services")
However it seems that despite passing the URL to the function, the connection is using the information that is saved in the "Default URL" box in the "Hyperion Provider Service URL" section, in the "Ad Hoc" tab of the Hyperion Options window, which is where I've been manually typing in the Prod or Test URL everytime I need to retrieve their respective data.
The result is that after running my code, the "Smart View Data Source Manager" indicates that the APS URL being connected to is what was saved in my options, rather than my code.
Any help would be appreciated
Edited by: 1002778 on Apr 26, 2013 9:11 AM
I just realized that this is should be in the Smart View forum. Admins, feel free to move this thread.
Edited by: 1002778 on Apr 26, 2013 1:21 PMI tried creating a connection and connecting and it is working for me. This is the macro that i used.
Sub create_connect()
sts = HypCreateConnection("Sheet2", "username", "password", HYP_ESSBASE, "http://testservername:19000/aps/APS", "testessbase", "app", "db", "App:DB", "Test Cube1")
sts = HypConnect(Empty, "username", "password", "App:DB")
End SubRegards
Celvin -
SmartView connections using load balancing
Is there a way to create a connection in SmartView to the Planning application that uses the load balancing functionality? When we log into the Planning web application we have a connection that provides load balancing between the 2 Planning servers. It appears that the only connection you can provide in SV for Planning is a direct connection to a web server like this: http(s)://<servername>:8300/HyperionPlanning/SmartView.
I did a second look at my configuration and it actually looks like Workspace is the only Smartview connection that I have load balanced. For Planning, once connected to the Hyperion Provider Service URL the Planning applications show under the Common Provider Connections. The Planning connections point to the URL of the APS.....which is just like what you use. http://servername:8300/HyperionPlanning/SmartView
Reading through the EPM High Availability Guide, it appears that it can be done for APS but it seems that might no longer support Planning:
The following list specifies supported clustering methodologies for EPM System product and components (with sublists for components) and options for removing single points of failure from the architecture and maintaining consistent performance through load balancing.
Oracle Essbase—Clustering with Oracle Hyperion Provider Services for high availability and load balancing
Note: High availability for Essbase with Provider Services does not support write-back.
See the Oracle Hyperion Enterprise Performance Management System Manual Deployment Guide.
- Essbase Administration Services—None
- Oracle Essbase Integration Services Server—None
- Essbase services
- Oracle Essbase Studio Server—None
- Essbase services—Provider Services clustering for high availability and load-balancing (read-only)
See Chapter 3, “Clustering EPM System Products with Proprietary Application Servers.”
- Provider Services Web application—Java application server clustering for high availability and load-balancing
See the Oracle Hyperion Enterprise Performance Management System Manual Deployment
Guide.
Clustering with Provider Services
If Essbase is clustered with Provider Services and no third-party tool:
- Smart View must be used rather than an Excel add-in.
- Essbase has no write-back capability and should be used for reporting only; therefore, Oracle Hyperion Planning, Fusion Edition is not supported.
- Nodes must be loaded and calculated individually. -
How can I disable Outlook 2010 addins using Group Policy
I have downloaded and imported the templates to enable me to set a GPO for disabling Outlook addins, but I am confused about how I disable things like the SharePoint addins (we do not use SharePoint so this is not needed). I have found several
posts saying to do this via a registry change, which I can easily do via GPO, but it does not say how to add keys for the different addins.
Does anyone have details of what I need to add into the registry or have a link to somewhere that gives a list of common ones I can use?Hi,
>>Does anyone have details of what I need to add into the registry or have a link to somewhere that gives a list of common ones I can use?
After searching around, I think the following article may give us some tips about how to manage application-level add-ins. To disable a specific add-in, we can try to set the value of
LoadBehavior entry to 0 in the add-in's corresponding registry key. The registry key path for a specific add-in is as follows:
HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE\Software\Microsoft\Office\application name\Addins\add-in ID
Registry Entries for Application-Level Add-Ins
http://msdn.microsoft.com/en-us/library/vstudio/bb386106.aspx#LoadBehavior
If this doesn't help, in order to get better help, it's recommended that we ask for suggestions in the following Outlook or SharePoint forums.
Outlook IT Pro Discussions
https://social.technet.microsoft.com/Forums/office/en-US/home?forum=outlook
SharePoint forums
https://social.msdn.microsoft.com/Forums/sharepoint/en-US/home?category=sharepoint
TechNet Subscriber Support
If you are TechNet Subscription user and have any feedback on our support quality, please send your feedback here.
Best regards,
Frank Shen -
Question re: error msg downloading adobe addin using Windows 7
Hello,
I found the answer, I was trying to download the adobe add in using Google chrome browser, when I should have been using safari, IE, or Foxfire. Thank you for your input.
Sent from my Cricket smartphoneYou can try using the offline Reader installer, which you can find here:
http://get.adobe.com/reader/enterprise/ -
Smartview POV using 11.1.2.1.00
is there a way to display the member name used in a POV in version 11.1.2.1.00. For example, Account is in the POV so users can select the account they want to view. however, they also want the name of the account they are using in the report so when they print it out, it would show it. 11.1.2.1.00 only have three "Hs*" functions and it doesn't allow me to get it from the POV.
Hi Shantan,
I am no Infrastructure expert but my guess is that you would have to possibly reinstall the services.
Just to get an understanding of the issue what is it you think has happened that makes you belive that the services may have been lost. In other words what was changed from when you last had them working?
Regards
Vivek
Edited by: Vivek Singha on Apr 4, 2011 4:04 PM -
Where do I start writing Office (Word & Excel) Addins using VS 2013 Community?
First, I hope that I have selected the appropriate location for this message. If not I apologize. I am hoping that posting to the VSTO community will also cover the Word and Excel development groups.
Second, a word of explanation: I am partially handicapped (unable to use my left hand easily), and 73 years of age and retired, and due to medical prescriptions unable to respond as quickly as I might desire.
Consequently I may be tardy in responding to any messages sent to me.
SUBJECT: I currently have Office 2007 (and as a limited income retiree - find it impossible to upgrade to a newer version of Office) and would like to prepare/write some add-ins of the macros (VBA for both
Word and Excel) that I have used and developed over the years. When I retired I lost the opportunity to use advanced versions of Visual Studio and have been limited to the "Express" versions of Visual Studio. With the recent release of Visual
Studio 2013 Community there appears to be the possibility that I might be able to convert my macros and such to an add-in. Unfortunately, I haven't a clue where or even how to start.
I very much would appreciate any information, directions, suggestions, and ideas which might help me find a way to get started in providing an add-in which would span the various versions of Word and Excel between 2007 and the current version. (I am currently
running Windows 8.1 but must admit I am not terribly impressed.)
I might note that my primary language for programming has been VB (as in VBA). I am not opposed to learning C# but rewriting everything would be a bit more inefficient than I would like to tackle at this point in time.
If there is some generous soul who would be kind enough to point me toward articles, samples/examples, and ideas on how I might be able to create these add-ins of my macros and such I would be deeply appreciative.
NOTE: I realized only after making the original post that I forgot to ask whether I need to obtain a copy of VSTO or whether the capabilities of VSTO had been incorporated into Visual Studio 2013 Community.
David Schrader
[email protected]
David (Whose retirement hasn't been as exciting as I was lead to believe it would be.)Hello David,
Out of the box the Community edition of VS doesn't include VSTO templates. You have to install
http://aka.ms/OfficeDevToolsForVS2013 to get them appear. In general, the Community edition corresponds to the Professional one (paid one). So, you can start developing add-ins in VB.NET. See
Create Add-ins and Customizations for Office by using Visual Studio for more information. -
Hi,
we had installed smartview in one of the users machine. Hyperion add-in doesnt appear in the ribbon. We went to the add-ins of excel options and added HsTbar.xla. But still we dont see the add in.
We also dont see HsAddin.dll in the active application add-ins in excel options. We tried to add this by going to com add ins. But we get the error "The connected state of office add-ins registered in HKEY_LOCAL_MACHINE cannot be changed".
The issue started since when the user reinstalled excel 2007.
Please advice.
Regards,
Ragav.
Edited by: ragavhere on Apr 26, 2011 7:44 PM - error while adding hsaddin.dll.Any chance it is in the Disabled Items?
Excel Options > Add-Ins > Manage > Disable Items -
SmartView Data source manager is blank
Hello
I have looked all over the net but just cant seem to find the solution for this problem.
I m trying to install Smartview addin-in for excel 2007 but after trying it so many times on different combinations like excel 2003, office 2010 nothing worked. Here is the snapshot, as you can see the panel on the right is blank and doesn't show any anything, completely blank.
The smartview version I m using is 10.1.0.238. ThanksI m trying to access Essbase and its version is 11.1.1.3.0.95 as you can see in the screenshot.
Its the correct version, i think, because the same version is working fine in the Ms excel which is installed on the server but when I try to use it on my local machine thats the error I m getting. Thanks for getting back -
Smartview BI Prompt report issue
Hi friends,
Im in obiee 11.1.1.7 where i downloaded smartview plugin for my 32 bit windows machine and established connection to the BI catalog to access the BI objects.
Now i can access the catalog objects in smartview and can created reports within the smartview and also i can see the saved report from the smartview in BI(back). Suppose if i saved a report with a prompt in bi and if i open the same prompted report in smartview(i.e) if i clicked the prompted report in smartview it is not asking for the prompt dialog box instead it is returning the below error in smart view like
Object reference not set to an instance of an object
What could be the reason behind the above error and how to fix the above issue friends.
Thanks in advance.
Regards,
SaroHi,
Can you please check by using Run Time Prompt variable for the same. Also try to disable and enable the Smartview addin. If this do not work then try with a different Smartview Version.
Soumya -
Smartview Office Error (Unable to Save)
If anyone is able to shed some light on the following issue then it would be great. As I'm sure that many of the Hyperion users have experienced this painstaking issue.
We are using Smartview for Office (Excel) and what I've notice is that when we are working in a typical excel workbook - often we experience an error where we aren't able to save the file/workbook.
Here are some of the details and setup
Application(s): Microsoft Excel 2003, Hyperion System 9 Smart View for Office
Version: 9.3.0.0.318
Build Date: Nov 30 2006 10:15:40
Files affected: Excel workbooks with and without Hyperion server connections
Types of Hyperion Applications used:
Hyperion Planning
HFM
Any help would be much appreciated.We are having the exact same issue. The issue occurs whether or not users have an active connection to Hyperion Planning via the SmartView Excel add-in. When we disable the SmartView add-in from loading on Excel startup, the issue goes away. I just logged a Service Request.
The common configuration seems to be Windows XP Professional and Excel 2003. I have an older machine with Windows 2000 Professional and Excel 2003 and I do not have a problem the Smartview addin. End users did not have the problem until they started to get new machines with Windows XP Professional. This problem will most likely continue to get worse as my company continues to upgrade to Windows XP from Windows 2000.
Here is information on the software versions:
Hyperion System 9 Smartview for Office 9.3.0.1.016
Hyperion Planning 9.3.0.1.4
Windows XP Professional Version 2002 Service Pack 2
Excel 2003 (11.8211.8202) SP3
Maybe you are looking for
-
Often times when I copy a CD into my library it will break my CD into multiple albums in my library, each with only a few songs. Usually this is because there might be songs where the artists has other artists in the song. How can I compile all of th
-
Executing batch file from Java stored procedure hang
Dears, I'm using the following code to execute batch file from Java Stored procedure, which is working fine from Java IDE JDeveloper 10.1.3.4. public static String runFile(String drive) String result = ""; String content = "echo off\n" + "vol " + dri
-
Windows 8.1 - Black Screen while online
I use FireFox all the time. Would love to know how to fix the problem of black screens. I use Windows 8.1 and the black screens only happen when I am on the internet. Been told these are called 'hangs' but they never go back to the original screen.
-
Help me diagnose my connection
Hi guys, I've noticed a 20Mbps drop in my downstream sync and I was wondering what might be causing it, I know most people will say that 60Mbps is enough but I just would like some thoughts as to why I'm experiencing the drop, ps my connection was so
-
Family member did not receive invitation to family sharing
I am attempting to set up Family Sharing. I sent an "invitation" to my husband's email address twice, but he did not receive either one. Anyone know why?