Error embedding .swf in Windows Form C#
Hi, I am trying to develop a Windows Form application that loads a .swf file either from a server or the local computer. I have followed the tutorial outlined here (http://www.adobe.com/devnet/flash/articles/stock_history03.html). I am include the Shockwave Flash Object and drag and drop an instance of the object on my Form. It builds successfully, but when I run the application it crashes immediately.
Here is the line of code it crashes on which is in the Form designer file:
((System.ComponentModel.ISupportInitialize)(this.axShockwaveFlash1)).EndInit();
It throws this error:
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
** axShockwaveFlash1 is the name of the object I am using
I have installed the latest versions of Shockwave Player and Flash Player as of 5/5/09.
I am developing in Visual Studio 2008 on a Windows Vista Business 64-bit machine. I have the target platform as x86.
Last note, when I close the IDE I get another error which only came up after adding the Shockwave Object COM to the toolbox. The error says "This program requires a missing Windows component". When I search for a solution it says to download latest version of Flash (already done )
Thanks in advance!!
hellooo,...
i have the same trouble as mentioned
rmills0920 wrote:
Here is the line of code it crashes on which is in the Form designer file:
((System.ComponentModel.ISupportInitialize)(this.axShockwaveFlash1)).EndInit();
It throws this error:
Class not registered (Exception from HRESULT: 0x80040154 (REGDB_E_CLASSNOTREG))
** axShockwaveFlash1 is the name of the object I am using
I have installed the latest versions of Shockwave Player and Flash Player as of 5/5/09.
I am developing in Visual Studio 2008 on a Windows Vista Business 64-bit machine. I have the target platform as x86.
can you help us for this situation,...
Similar Messages
-
Embedded SWF in PDF, "form" text transfer to said SWF
Thanks in advance for your help.
{ also posted in the Flash Professional forum }
How to have a SWF (embedded in PDF) load a form text field: "value" ?
Objective: given;
~ SWF is embedded in a PDF
~ form field in PDF = "name1"
Coding task;
how to script the SWF's text field so that it can use the PDF's form text field
while embeded in the PDF (that has a form field / "value").
many thanks
Dale
Fremont, CAActionScript in the SWF has direct access to the Acrobat JavaScript model through the ExternalInterface object.
Read this blog:
http://pdfdevjunkie.host.adobe.com/RMA1_acrossTheBridge.shtml
Thom Parker
The source for PDF Scripting Info
pdfscripting.com
The Acrobat JavaScript Reference, Use it Early and Often
Then most important JavaScript Development tool in Acrobat
The Console Window (Video tutorial)
The Console Window(article) -
Object Referenced Error When calling the Windows Form during Runtime
Hi,
I am getting Object reference errors when running windows form during runtime. In debugging mode in MS Visual studio 2005, I am not getting this error. I'm calling the window form from menu and called the window in a thread as suggested in one of forums . I don't see anyone in the forum mentioned this problem I have. Any help would be deeply appreciated. Below are the error and code samples.
ERROR Message
Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at Project1.Loadxml.Loadxml_Load(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ContainerControl.WndProc(Message& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
Edited by: Albert Tio on Feb 16, 2011 9:55 AMHere is the code.
Option Strict Off
Option Explicit On
Friend Class GetEvents
Public WithEvents SBO_Application As SAPbouiCOM.Application
Public SboGuiApi As SAPbouiCOM.SboGuiApi
Public oForm As SAPbouiCOM.Form
Public oDBDataSource As SAPbouiCOM.DBDataSource
Public oCompany As SAPbobsCOM.Company
Public RS As SAPbobsCOM.Recordset
Public oPrev_Bank As String, oPrev_AcctType As String
Public oLoadXml As Loadxml
Public Sub SetApplication()
'Dim SboGuiApi As SAPbouiCOM.SboGuiApi
Dim sConnectionString As String
SboGuiApi = New SAPbouiCOM.SboGuiApi
' by following the steps specified above, the following
' statment should be suficient for either development or run mode
sConnectionString = Environment.GetCommandLineArgs.GetValue(1)
' connect to a running SBO Application
SboGuiApi.Connect(sConnectionString)
' get an initialized application object
SBO_Application = SboGuiApi.GetApplication()
End Sub
Public Sub SetCompany()
Dim ret As Long
Dim MsgStr As String
Dim Cookie As String
Dim ConnStr As String
Try
oCompany = New SAPbobsCOM.Company
Cookie = oCompany.GetContextCookie
ConnStr = SBO_Application.Company.GetConnectionContext(Cookie)
'//before setting the SBO login context make sure the company is not connected
If oCompany.Connected = True Then
oCompany.Disconnect()
End If
ret = oCompany.SetSboLoginContext(ConnStr)
If Not ret = 0 Then
Exit Sub
End If
ret = oCompany.Connect
Catch ex As Exception
SBO_Application.MessageBox(ex.Message)
End Try
MsgStr = ""
If Not ret = 0 Then
oCompany.GetLastError(ret, MsgStr)
SBO_Application.MessageBox(MsgStr)
Else
End If
End Sub
Public Sub New()
MyBase.New()
' set SBO_Application with an initialized application object
SetApplication()
SetCompany()
AddMenuItems()
End Sub
Private Sub SBO_Application_MenuEvent(ByRef pVal As SAPbouiCOM.MenuEvent, ByRef BubbleEvent As Boolean) Handles SBO_Application.MenuEvent
Dim myThread As New System.Threading.Thread(New System.Threading.ThreadStart(AddressOf LoadXmlMainThread))
Try
If (pVal.MenuUID = "MySubMenu") And (pVal.BeforeAction = False) Then
'SBO_Application.MessageBox("My sub menu item was clicked")
'// Create a form to be launched in response to a click on the
'// new sub menu item
myThread.SetApartmentState(System.Threading.ApartmentState.STA)
myThread.Start()
'Loadxml.ShowDialog()
End If
Catch ex As Exception
SBO_Application.MessageBox("1." & ex.Message)
End Try
'If (pVal.MenuUID = "MyGoToMenu") And (pVal.BeforeAction = False) Then
' SBO_Application.MessageBox("My GoTo Menu was clicked")
'End If
'If (pVal.MenuUID = "MySecondGoToMenu") And (pVal.BeforeAction = False) Then
' SBO_Application.MessageBox("My Second GoTo Menu was clicked")
'End If
End Sub
Private Sub LoadXmlMainThread()
'Dim lLoadxml As New Loadxml
Try
oLoadXml = New Loadxml
oLoadXml.WindowState = FormWindowState.Maximized
oLoadXml.ShowInTaskbar = True
oLoadXml.TopMost = True
oLoadXml.Activate()
Application.Run(oLoadXml)
Catch ex As Exception
SBO_Application.MessageBox("2." & ex.Message)
End Try
End Sub
Private Sub AddMenuItems()
'// Let's add a separator, a pop-up menu item and a string menu item
Dim oMenus As SAPbouiCOM.Menus
Dim oMenuItem As SAPbouiCOM.MenuItem
Dim i As Integer '// to be used as counter
Dim lAddAfter As Integer
Dim sXML As String
'// Get the menus collection from the application
oMenus = SBO_Application.Menus
'Save an XML file containing the menus...
'sXML = SBO_Application.Menus.GetAsXML
'Dim xmlD As System.Xml.XmlDocument
'xmlD = New System.Xml.XmlDocument
'xmlD.LoadXml(sXML)
'xmlD.Save("c:
mnu.xml")
Dim oCreationPackage As SAPbouiCOM.MenuCreationParams
oCreationPackage = SBO_Application.CreateObject(SAPbouiCOM.BoCreatableObjectType.cot_MenuCreationParams)
oMenuItem = SBO_Application.Menus.Item("43520") 'moudles'
Dim sPath As String
sPath = Application.StartupPath
'sPath = sPath.Remove(sPath.Length - 3, 3)
If sPath.EndsWith("\") = False Then
sPath = sPath & "\"
End If
'// find the place in wich you want to add your menu item
'// in this example I chose to add my menu item under
'// SAP Business One.
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_POPUP
oCreationPackage.UniqueID = "MyMenu01"
oCreationPackage.String = "Unbridle Menu"
oCreationPackage.Enabled = True
oCreationPackage.Image = sPath & "unbridle.bmp"
oCreationPackage.Position = 15
oMenus = oMenuItem.SubMenus
Try ' If the manu already exists this code will fail
oMenus.AddEx(oCreationPackage)
'// Get the menu collection of the newly added pop-up item
oMenuItem = SBO_Application.Menus.Item("MyMenu01")
oMenus = oMenuItem.SubMenus
'// Create s sub menu
oCreationPackage.Type = SAPbouiCOM.BoMenuType.mt_STRING
oCreationPackage.UniqueID = "MySubMenu"
oCreationPackage.String = "Unbridle Monitoring"
oMenus.AddEx(oCreationPackage)
Catch er As Exception ' Menu already exists
'SBO_Application.MessageBox("Menu Already Exists")
End Try
End Sub
End Class
Public Class Loadxml
'Inherits System.Windows.Forms.Form
Public sBPpath As String
Public sGLpath As String
Public sBillpath As String
Public bRun As Boolean
Private Sub Loadxml_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Me.TextGL.Text = System.Configuration.ConfigurationSettings.AppSettings("GLAcctDownloadPath").ToString()
Me.TextBP.Text = System.Configuration.ConfigurationSettings.AppSettings("BPAcctUPloadPath").ToString()
Me.TextBill.Text = System.Configuration.ConfigurationSettings.AppSettings("BillUPloadPath").ToString()
Me.NotifyIcon1.Visible = False
End Sub
End Class -
Crystal Report Windows Forms Viewer Error in 1 Workstation after upgrade of PL
Hi all,
We just upgraded SAP from 8.82 PL02 to 8.82 PL15.
Afterwards, in just 1 workstation, Crystal Reports layouts have Crystal Report Windows Forms Viewer error I attach.
Before the upgrade this error did not happen.
No permissions or authorizations were changed in the workstation.
The Crystal Reports layouts remain working fine in server and in the other workstations.
In the workstation following are installed:
- Operating System Windows 7;
- Microsoft .NET Framework 4.5;
- SAP Crystal Reports runtime engine for. NET Framework;
- Crystal Report 2008 Runtime SP6;
- Microsoft SQL Server 2008 R2 Native Client.
All, but the operating system, are equal to the other workstations.
User has edit access to SAP folders, temp and access to the attach path.
We already uninstalled SAP client and client agent and re-installed it but with no avail.
Can anyone help me?
Thanks in advance.
Best regards,
Pedro MarianoHi San Xu,
Thank you for your input.
However I'm facing problem with each software is suitable.
I installed SAP Crystal Reports for SAP Business One (CR 2011 V14.0.4.738), but with no avail.
Thanks in advance.
Best regards,
Pedro Mariano -
Crystal Report Windows Forms Viewer - No Error Popup
Similar to this post: Error message that says "No Error" from CR Viewer, I have just upgraded by Application to .net 4.0 and Crystal Reports 2010. The report viewer works fine the first time a report is loaded, but when I change the parameters on the report, and put the updated report back into the report viewer, I get the message shown above. The report does not change its parameters and the updated report is not displayed. The code in question is setting the date parameters for the report. The user can select new date parameters from the form that encloses the report viewer. The code subclasses the Report Object code to add additional functions through interfaces. The IDateRange interface provides a starting and ending date range for the report using a property on the report class as follows:
Public Property EndingDate() As Date Implements IDateRange.EndingDate
Get
Return _endingDate
End Get
Set(ByVal value As Date)
_endingDate = value
Me.SetParameterValue("EndingDate", value)
End Set
End Property
In addition, the immediate Window shows the following message:
A first chance exception of type 'System.Runtime.InteropServices.COMException' occurred in CrystalDecisions.CrystalReports.Engine.dll
The code in the Report Viewer looks like this, see line marked in blue for when pop-up appears:
''' <summary>
''' Sets the report period and displays it.
''' </summary>
''' <param name="Report">The Report.</param>
''' <param name="Refresh">if set to <c>true</c> force a refresh.</param>
Private Function PFSetReportPeriod(ByVal Report As Object, Optional ByVal Refresh As Boolean = True) As Boolean
Dim fld As FormulaFieldDefinition
Dim bRefresh As Boolean = False
Dim rpt As ReportClass = CType(Report, ReportClass)
Try
If CRV.ReportSource IsNot Nothing Then
rpt = CType(CRV.ReportSource, ReportClass)
End If
If TypeOf rpt Is IDateRange Then
With DirectCast(rpt, IDateRange)
. StartingDate = dtpFromDate.Value
. EndingDate = dtpToDate.Value
End With
SetTitleLine2(DirectCast(Report, ReportClass), bRefresh)
bRefresh = True
Else
If TypeOf rpt Is ReportClass Then
fld = rpt.DataDefinition.FormulaFields("FromDate")
If Not fld Is Nothing Then
fld.Text = "Date(" & dtpFromDate.Value.Year & "," & dtpFromDate.Value.Month & "," & dtpFromDate.Value.Day & ")"
bRefresh = True
End If
fld = rpt.DataDefinition.FormulaFields("ToDate")
If Not fld Is Nothing Then
fld.Text = "Date(" & dtpToDate.Value.Year & "," & dtpToDate.Value.Month & "," & dtpToDate.Value.Day & ")"
bRefresh = True
End If
SetTitleLine2(rpt, bRefresh)
End If
End If
If Refresh And bRefresh Then
If dtpToDate.Value <> CDate(dtpToDate.Tag) OrElse _
dtpFromDate.Value <> CDate(dtpFromDate.Tag) Then
System.Windows.Forms.Application.DoEvents()
If CRV.Visible Then CRV.ReportSource = rpt ' The popup appears when this statement is executed.
If CRV.Visible = True Then CRV.Refresh()
dtpToDate.Tag = dtpToDate.Value
dtpFromDate.Tag = dtpFromDate.Value
Return True
End If
End If
Catch ex As Exception
DisplayException(ex)
End Try
Return False
End FunctionProblem has been resolved. I downloaded Support Pack 8 (v.13.0.8.1216) from this location. I then applied the fix from the entry above:
With CRV ' Report Viewer Control
If .Visible Then
If .ParameterFieldInfo IsNot Nothing Then .ParameterFieldInfo.Clear()
.ReportSource = rpt
.Refresh()
End If
End With
And no more annoying "No Error" messages. -
Error message when displaying a report in a windows form
Hi,
use Cr 2008.SP3 Fixpack 3.5,
Visual Studio 2008 prof. editon version 9.0.30729.1 SP,
:NET Framework 3.5 sp1
vb.net 2008
when displaying a report in a Windows form sometimes the following error message appears
System.NullReferenceException: Object reference not set to an instance of an object
bei CrystalDecisions.Windows.Forms.PageControl.OnMouseMove(MouseEventArgs e)
bei System.Windows.Forms.Control.WmMouseMove(Message& m)
bei System.Windows.Forms.Control.WndProc(Message& m)
bei System.Windows.Forms.ScrollableControl.WndProc(Message& m)
bei System.Windows.Forms.ContainerControl.WndProc(Message& m)
bei System.Windows.Forms.UserControl.WndProc(Message& m)
bei CrystalDecisions.Windows.Forms.PageControl.WndProc(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
bei System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
The rest of the error message is in german:
************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.
Zum Beispiel:
<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>
Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.
Thank you
OttoCan you define "sometimes" a bit more?
Is it after a number of runs of a report?
Is it on a particular report?
Is it after you do certain operations on the report (paging, zooming, dill down, print, etc., etc.)?
Can you duplicate the issue if you isolate the report to a new test app?
Did you happen to notice if the issue existed prior to FP 3.5?
Is this on your dev computer or a client computer?
OS?
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup
Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports] -
Transparent Windows Forms in Windows Embedded Compact 7
I am looking for a solution to make the background of a Windows Forms in a Windows Embedded Compact 7 device transparent. These approaches have failed:
- override void OnPaintBackground with empty code block
- using the open source project AlphaMobileControlsSorry, I thought that article had more detail. Now I look at it again it's rather less useful than I thought.
bitblt is copying pixels.
https://msdn.microsoft.com/en-us/library/aa452879.aspx
The way this would have to work ( afaik ) is you copy some proportion of the bits out the rectangle behind your window.
If you want low opacity rather than completely transparent you would merge them with whatever colour you want the background to look a bit like.
You'd be painting a picture onto the background in the onpaint.
If your user moves the "transparent" window then you need to copy the background from the new location.
If it were me I'd push back on the requirement.
Hope that helps.
Recent Technet articles:
Property List Editing;
Dynamic XAML -
I got this error when I tried to drop a TestStand Engine class onto my main form in VisualStudio.NET.
Compiler errors occurred when generating a Windows Forms wrapper for ActiveX control 'AxNationalInstruments.TestStand.Interop.API'
The error message went on to say that it saved the source in ./obj/AxInterop.TS.cs so I added that to the project. When I try to build it, I get this error:
The designer must create an instance of type 'System.Windows.Forms.AxHost' but it cannot because the type is declared as abstract.
I am using TestStand 3.0 evaluation, Version 7.1.3088 of Microsoft Development Environment 2003, and .NET Framework 1.1 Version 1.1.4322 SP1.
Is this aximp.exe problem?
Can someone suggest how to fix this?
Thanks,
JeffTestStand installs pre-built interop wrappers for the TestStand engine and all the TestStand UserInterface controls. You can find them in \API\DotNet\Assemblies\CurrentVersion\.
However, the best thing to do is usually to add the ApplicationMgr control to your .NET form and then call form.axApplicationMgr1.GetEngine() to get the engine. Doing this automatically adds references to the interop assemblies to your project. You can find this control in the TestStand tab of your .NET toolbox when you have a form active.
Ideally, you should start with the .NET simple operator interface examples which are in \OperatorInterfaces\NI\Simple\CSharp\ and \OperatorInterfaces\NI\Simple\VB.Net\
- James -
"Compiler errors occurred when generating a Windows Forms wrapper...
"Compiler errors occurred when generating a Windows Forms wrapper for ActiveX control 'AxNationalInstruments.TestStand.Interop.API'."
Sorry, I accidentally hit enter as I was composing this post. Please see my full post at:
http://forums.ni.com/ni/board/message?board.id=330&message.id=5633 -
Passing parameter to stored procedure from windows form getting error
I've written a procedure which shows the data in a table according to the table flag selected from the windows form. My code is:
--- stored procedure ------
CREATE PROC [dbo].[PROC_SELECT_TABLES]
@TBL_FLAG INT
AS
BEGIN
SET NOCOUNT ON;
IF (@TBL_FLAG = 1)
SELECT * FROM MHT_APPUSER ;
IF (@TBL_FLAG = 2)
SELECT * FROM MHT_ISA11 ;
IF (@TBL_FLAG = 3)
SELECT * FROM MHT_ISA22 ;
SET NOCOUNT OFF;
END
GO
Now, the module for calling the above procedure
namespace DAL;
public class DisplayData
SqlLayer layer = new SqlLayer();
public int tblFlag { get; set; }
public DataTable GetData(int tblFlag)
SqlParameter[] p = new SqlParameter[1];
p[0] = new SqlParameter("@tblFlag", this.tblFlag);
return layer.ExecuteDataSet("PROC_SELECT_TABLES", p).Tables[0];
Now the SQL LAYER, containing the ExecuteDataSet and database connection code:
namespace DAL;
public class SqlLayer
// sql connection code
public DataSet ExecuteDataSet(string commandText, SqlParameter[] sqlParameter)
SqlCommand cmd = new SqlCommand(commandText, this.conn);
cmd.CommandType = CommandType.StoredProcedure;
cmd.Parameters.AddRange(sqlParameter);
SqlDataAdapter sda = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
sda.Fill(ds);
return ds;
Now the windows form layer:
using DAL;
namespace BookKeepingSystem
public partial class DisplayDataForm : Form
DisplayData view = new DisplayData();
private void GetData()
view.tblFlag = 3;
DataTable dt = view.GetData(view.tblFlag);
dgvDisplayData.DataSource = dt;
public DisplayDataForm()
InitializeComponent();
private void DisplayData_Load(object sender, EventArgs e)
GetData();
private void btnExit_Click(object sender, EventArgs e)
Application.Exit();
When I run the code I got the error:
"Unhandled exception has occurred in your application...
Procedure or function 'PROC_SELECT_TABLES' expects parameter @TBL_FLAG, which was not supplied"
I can not figure what is missing with my code. Please can any one point out please.
Thank You!!!Try something like this for starting -- do just this procedure to see if it works first.
private DataTable GetDataTable(SqlConnection conn1)
SqlDataAdapter daS1 = new SqlDataAdapter();
daS1.SelectCommand = new SqlCommand();
daS1.SelectCommand.Connection = conn1;
if (conn1.State == ConnectionState.Closed) conn1.Open();
daS1.SelectCommand.CommandType = CommandType.StoredProcedure;
daS1.SelectCommand.CommandText = "yourStoredProcedureName";
daS1.SelectCommand.Parameters.Add("@ParamName", SqlDbType.Int, 4);
DataSet DS1 = new DataSet();
daS1.Fill(DS1, "tbl1");
return DS1.Tables["tbl1"];
Note: in the CommandText part place the name of your stored procedure. In the Parameter part put the name of your parameter exactly as it is in the actual stored procedure. Also, (if you have not done this already) make sure your stored
procedure runs OK -- first -- test out your stored procedure in Sql Server Management Studio. If the procedure runs OK in SSMS, then try it from you app. Just create a simple form with one button . Place GetDataTable() code under
the button and call it something like this:
private void button1_Click(object sender, EventArgs e)
int i = GetDataTbl().Rows.Count;
Console.WriteLine("i is {0}", i);
Rich P -
Could not load file or assembly 'CrystalDecisions.Windows.Forms Error
Hello All,
I have created a Crystal Reports .Net Executable and it runs fine on the PC that it was built on. However, when I copy the exe application to another system and try to run it, I get the following error message:
System.InvalidOperationException was unhandled
Message="An error occurred creating the form. See Exception.InnerException for details. The error is: Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified."
Source="Sample Report"
StackTrace:
at Sample_Report.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 190
at Sample_Report.My.MyProject.MyForms.get_Form1()
at Sample_Report.My.MyApplication.OnCreateMainForm() in C:\Users\saikaleya\AppData\Local\Temporary Projects\Sample Report\My Project\Application.Designer.vb:line 35
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at Sample_Report.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 78
InnerException: System.IO.FileNotFoundException
Message="Could not load file or assembly 'CrystalDecisions.Windows.Forms, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304' or one of its dependencies. The system cannot find the file specified."
Source="Sample Report"
FileName="CrystalDecisions.Windows.Forms, Version=10.5.3700.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
FusionLog="WRN: Assembly binding logging is turned OFF.\r\nTo enable assembly bind failure logging, set the registry value [HKLM
Software
Microsoft
Fusion!EnableLog] (DWORD) to 1.\r\nNote: There is some performance penalty associated with assembly bind failure logging.\r\nTo turn this feature off, remove the registry value [HKLM
Software
Microsoft
Fusion!EnableLog].\r\n"
StackTrace:
at Sample_Report.Form1.InitializeComponent()
at Sample_Report.Form1..ctor()
InnerException:
Any tips/suggestions would be greatly appreciated.
P.S. I am using Crystal Reports 2008 and Visual Studio 2008.
Thank you in advance.A couple things here:
Your application is referencing the Windows form dll for the bundled version of Cr that comes with VS.NET 2008 and NOT the Crystal Reports 2008 runtime. You need to change the references in the project to 12.xxx assuming you have Crystal Reports 2008 SP0 installed (this is needed for it to work with .NET 2008)
You need to make sure you deploy the runtimes for the appropriate version. If you get your application upgraded to use all of the CR 2008 runtimes you will then need to deploy the runtimes to the machine you are deploying to. You can do this by using the merge modules or the server install msi to get them on the machine.
Jason -
Error Crystal Report Windows Forms Viewer in Windows 8.1
As you can see from the picture I get this error when trying to load the report anyone have any suggestions?, This happens with windows 8 on windows 7 I have no problems with the application
Hi,
The error is not having connection to the database, the error is that it can not open the temporary file that Crystal Report generates before opening the report but it only gives the error when running on Windows 8, Windows 7 not same program fails.
It conect to a MySql database using. Net Framework Data Provider for MySQL in a 32 Bits -
Embeding Flash Animation in Windows Forms
Hye!
This is my first questioin on this website, because this is
my first time working with flash animations. I've made a flash
animation in Adobe Flash. Now what i want to do is embed it in
Windows Forms Application. Im using Visual C++ 2005. How can i show
a flash animation on this form.
Please Help!Hi,
the only chance I see is with a Java Bean that support Flash animations. I did search the Web a while ago when this question came up the first time, but wasn't able to find a bean that supports a recent version of Flash.
Frank -
Firefox doesn't play embedded swf
I've looked on many forums, including Firefox, with no real answer. Running Firefox 4. It just doesn't play embedded SWF. My Adobe Flashplayer is up to date, so is the plugin. The page displays properly. But the area that should be displaying a movie is just represented by a tiny square. No error message appears. The same page doesn't show the movie in IE9 either.
Now from looking at the page information, it just requires Flashplayer 6 and above for the SWF area. I do have Flashplayer 10. The plugin says Shockwave Flash player 10 is up to date. Many other pages with different types of embedded movies play properly.Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
*Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
*https://support.mozilla.org/kb/Safe+Mode
*https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
Also check that you aren't blocking cookies.
*https://support.mozilla.org/kb/Cookies
*http://kb.mozillazine.org/Cookies
Clear the cache and the cookies from sites that cause problems.
"Clear the Cache":
*Tools > Options > Advanced > Network > Cached Web Content: "Clear Now"
"Remove Cookies" from sites causing problems:
*Tools > Options > Privacy > Cookies: "Show Cookies"
Note that a reset imports cookies, so isn't really suited if cookie issues are a possible cause, unless you clear the cookies. -
Dynamically embedded swf, has it ever worked
I have to repost it. Wondering what adobe will say about it.
I have tried this for a couple of days. I created a swf object in window.onload (also tried to create it directly while the script was loaded ), then call an AS function from JS. statically embedded swf works for both IE8 and FF, FF also fine for dynamically loading. In IE, this call externalinterface.call("echo", "as returns " + b); always shows "as returns false". The callback function has never worked in other approches with dynamic creation. Anyone has good experience?
Thanks.
//js
<script language="javascript">
var containerready=false,flashready=false;
function addLoadEvent(func) {var oldonload = window.onload; if (typeof window.onload != 'function') {
window.onload = func; } else { window.onload = function() { if (oldonload) { oldonload(); } func(); }}
function embedswf(){
var a,swf="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000'";
swf+=" codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=10, 0,0,0'";
swf+=" width='215' height='318' id='testswf1' align='middle'>";
swf+=" <param name='allowScriptAccess' value='always' />";
swf+=" <param name='allowFullScreen' value='false' />";
swf+=" <param name='movie' value='testswf1.swf' />";
swf+=" <param name='quality' value='high' />";
swf+=" <param name='wmode' value='transparent' />";
swf+=" <embed src='testswf1.swf' quality='high' wmode='transparent' width='215' height='318' name='testswf1' align='middle' allowScriptAccess='always' allowFullScreen='false' type='application/x-shockwave-flash' pluginspage='http://www.adobe.com/go/getflashplayer' /></object>";
a=document.createElement("div");
a.id="swfholder";
a.innerHTML=swf;
document.body.appendChild(a);
containerready=true;
window.setTimeout(callas, 100);
} addLoadEvent(embedswf); function echo(p){ alert(p)} function callas()
// alert("callas:containerready="+containerready+";fl ashready="+flashready);
containerready=true;
if(flashready){
var a=getswf();
a&&(a.flashfunc())
return
window.setTimeout(callas, 100);
} function setflashready()
flashready=true;
function getcontainerready()
//alert("getcontainerready:g31="+containerready+";fl ashready="+flashready);
return containerready;
function getswf()
if (navigator.appName.indexOf("Microsoft") != -1)
return window["testswf1"];
else
return document["testswf1"];
} </script> //as
import flash.external.ExternalInterface; flash.system.Security.allowDomain("*"); var rtm:Timer = new Timer(500);
startTest(); function f0():void {
ExternalInterface.call("echo", "one");
function timerHandler(event:TimerEvent):void
if (isContainerReady())
rtm.stop();
rtm.removeEventListener(TimerEvent.TIMER, timerHandler);
setupCallbacks();
function startTest():void
if (ExternalInterface.available)
try
if (isContainerReady())
setupCallbacks();
else
rtm.addEventListener(TimerEvent.TIMER, timerHandler);
rtm.start();
catch(error:Error) {
trace("An Error occurred: " + error.message + "\n");
else
trace("External interface is not available for this container.");
function isContainerReady():Boolean
var b:Boolean = ExternalInterface.call("getcontainerready");
ExternalInterface.call("echo", "as returns " + b);
return b;
} function setupCallbacks():void
ExternalInterface.call("echo","setupcallback");
ExternalInterface.addCallback("flashfunc", f0);
ExternalInterface.call("setflashready");has it ever worked or is an Adobe bug? anyone knows?
Maybe you are looking for
-
IBooks not allowing Audiobooks to play in Audio reader App?
Just bought an audiobook from iTunes on my iPhone 4s. It only shows up in iBook. I need to get it to my audioreader app. I've done it before... but not sure why ibooks is the only option now. Normally I download an audiobook from iTunes and my audior
-
HANA One Management Console - Addons - logout
Hello, when I select "Addons" in the HANA One Management Console, I get logged out instantly. I tried clearing cache/cookies as well as switching browsers (Chrome, Firefox, IE10). Since it's probably hard to answer the question with this information,
-
Warnings from DB-check protocol
Hello! I have seen my DB-check-protocol with the following warnings and would like to know, whether they are critical or not? <b>BR0978W Database profile alert - level: WARNING, parameter: DB_BLOCK_CHECKSUM, value: TRUE (<> FALSE) BR0978W Database pr
-
When submitting a new issue (folio). How does this work? Do I publish in adobe dps and set to retail and then add the in-app purchase in itunesconnect? When does it show up?
-
please tell me any BAPI for Standard transaction MIRO , or should I have to use BDC instead ? PLease rep , thnx in advance