Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
 
  HOME    TRACKER    Visual Basic




VB Automation Of Powerpoint To Insert Shockwave Flash Objects


I am (seriously) going mental using VB (VB6 or VB.Net) to automate the process of placing a Shockwave Flash Object on a Powerpoint slide to play a .swf file.

This is what I have got so far:

    Dim objPP As PowerPoint.Application
    Dim objPres As PowerPoint.Presentation
    Dim objSlide As PowerPoint.Slide

    Set objPP = New PowerPoint.Application
    objPP.Visible = msoTrue
    Set objPres = objPP.Presentations.Add(msoTrue)
    Set objSlide = objPP.Presentations.Item.Slides.Add(Presentations.Item.Slides.Count, LayoutBlank)

As you can see I need some direction from this point. Can anyone please let me know if they can help me as soon as possible?

I have searched the web for an example on how to do this, but have been unsuccessful. Anyone?



 




View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread
Shockwave Flash Objects.
How do you get your movie to load and play and only loop when check1 is checked??????
Thanx for your help.

::: HELP ::: How To Insert Shockwave Flash In VB? I Add Companent And Then ?
i see only white background and i try to set movie properties to misc/logo.swf and try to play it show movie not load ... how to set it ?

Flash - How Do I Play A Movie Using The Flash Shockwave Control?
I loaded the control on the form but how do I put in the flash file? Does the file name and path go into the Movie Property? How do I get it to load a new page when the movie is done playing?

Can I add Flash buttons? If so how would I go about doing this? Can I have just one flash movie with say 3 buttons that each do something different or do I need to have 3 flash movies with each button on it's owen? If 3 in one would I need to but different code into flash or could I code different events in VB?

Shockwave Flash!
hi... it's me again..... can someone explain to me how to use the Shockwave Flash.... if im not mistaken, it can be use to play flash files, im i right? anyone please help me!! send me any example or coding...... really appreciate anyone help....

Shockwave And Flash
hi,

I've inserted the components of shockwave flash and shockwavectrl, and i've read some of the posts about shockwave and flash and they all go on about .swf files. This is my code


VB Code:
Private Sub Form_Load()    With Form1        .ShockwaveFlash1.Movie = App.Path & "Home.swf"        .ShockwaveFlash1.Play     End WithEnd Sub


Nothing is appearing when this code is run so i can only assume that there is no .swf file there.

I have published the flash file so how do you get the .swf file?

Shockwave Flash In VB...
I have recently embedded a SWF movie into a form when the movie plays in run time I need to click on it in order to activate some other function...Only I cant. Ive tried placing invisible command buttons etc over the top of the movie only still I cannot click on the movie and inturn activate some thing....Help!!!

Flash/shockwave ??????????
does anybody know if it is possible to assign flash movie variables to vb variables

can it be done/anybody got it working ::?

Shockwave Flash
Happy new year everyone...
does anyone know how to play A swf file with the help of the shockwave flash component?
how do I use the "ShockwaveFlash1.LoadMovie " method.
thnx in advance
nir

Shockwave Flash
Is there any way of playing a Shockwave Flash Object in a VB program. If you need an Active X control can somebody please tell me where i can find it.
Thank you

ShockWave Flash OCX
I need to know about all properties of Shockwave Flash OCX, I am trying to use it in my vb6 application.

Shockwave Flash
Hello,

I have a problem after adding a flash movie into the Shockwave Flash activeX. There is a large piece of object frame surrounding my movie frame which is causing a problem. To compromise the desired size of my movie frame, I have to drag the flash object larger such that it is now blocking my other text labels on the form. I try to "Send to Back" by right clicking the mouse on the object but doesn't work. Is there any way to reduce the outer unwanted frame or at least make it sit right behind to prevent blocking? Appreciate for any valuable advice, thanks.:confused

Shockwave Flash
I want to make a screen saver with sockwave, but I can't end the application using the keyboard.

This is the code that I used.

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
If KeyCode = vbKeyEscape Then
Unload Me
End If
End Sub

Thanks for your help.

Shockwave Flash
Hi
I'm Making a Tansparent Form in VB6 and i want to add Shockwave Flash to it which has Transparent BackGround too..
Now here is the Deal..if i make the flash transparent on the transparent form it shows the background of the flash movie Gray..if i don't make the form Transparent than is fine..
Can someone help/tell me how can i do both transparent without having that gray background in Shockwave flash!!!
Here is the example http://members.nbci.com/jafang217/

Amazing : Shockwave Flash In Vb
I am Using Shockwave flash in vb

I am having two controls of Flash which are the buttons created in flash

If I am using tab on keybord and one of the flash button gets focus then using tab again the focus get stuck up.

-----------------------

In short once flash control button gets the focus it never pass the focus to other component using the tab key on keybord

Shockwave And Flash Components
Hi,
I am faced with another strange problem, as i try to spice my program with flash..
last time when i was workin' with system i could insert the componets like shockwave player and flash movie player into the component tool bar.. then i got a servere problem and i had to to reinstall my win-95 and now it is such a strange situation that i can seem to find flash componets atall although i have flash 5 in my system..
further more, as can anyone tell me please what is the difference if i insert a shockwave component to a form instead of movie ? How can i configure it and make sure that it start to play rightaway as my splash screen appear..
please help me, as there is very little info. i can find in the previous posts about flash on this forum and my assignment is due in couple of days and i want to spice my project with fLaSh
thanks,
Ali

Shockwave Flash Control
I have loading a movie into a shockwave flash control on my form. My problem is how to unload that movie so that the control is empty. I loaded the movie by just setting the movie property to the location of a .swf file.

Autosize The Shockwave Flash
Hi,

I was searching for the option which would enable my swf file to be opened in the window in its full size. To put in a simple way .. I want to adjust the size of the form and the flash control according to the size of the loaded swf file. I have been trying hard since a day now .. any help would be really great ... has anyone faced this ???

thanks in advance...

-Putta

Control Like Shockwave Flash?
Is there a control like Shockwave Flash? But allows you to view text and images that aren't flash? And allows you to view variables in the flash movie.

Shockwave Flash In VB Question...
i import a flash button to VB. I want to how to link that button to other VB event..let say when i click that button it will open another form.
can tell me the code??

Another Shockwave Flash Problem
Hi,

I need to play several movies (.swf files) on a vb6 form. I used the flash ocx and it works fine for the first movie. The problem is how i am going to be able to load the next movie right after the first one has finished?

Please help me.

Shockwave Flash Dependency
I'm creating a setup and it tells me that it has no dependency information for swflash.ocx...

what can I do about this?


thnx,
squirrelly1

Shockwave Flash Problem
How to make shoackwave flash play continuously.
example i have 2 (.swf) and i want the first one to play finish, then the next one start playing.

Shockwave Flash In VB Question...
I have made a menu in macromedia flash 4 for a VB5 program I am writing.

I have a problam with the flash menu in vb. It works fine, but my problam is I want to click on the menu flash buttons for vb to do a command. I used a lable as a button and put it over the flash menu. But the flash program will not do the animation because the lable is in the way. If I move the lable the animation will work fine, but I won't be able to click on a buttton!


Is there any way I can have animation flash and still be able to click over the flash button to send a command to vb?

thanks you.

Shockwave Flash Plugin
I am making a screen saver and I want to use a flash movie for the animation, but that plug in has no mouse over event which I need to unload my screen saver, when the mouse is moved, is there another way to unload a screen saver when the mouse is moved apart from the mouse over even?

Shockwave Flash Control.........
Hi,

Im using the shockwave Flash control in my form to play a .swf(ShockWaveFile) file. I've made the control fullscreen size.

How do I detect when the mouse has been moved/clicked or a key pressed over this control? It doesns't seem to have a keypress or mouseover event as other controls.

I need to figure this out coz Im using it to create a screensaver.

Thanx

[Edited by rammy on 09-11-2000 at 01:34 AM]

ShockWave Flash Control
Does anyone know how to use the shockwave Falsh Control, Ive heard Great things about it but Don't have a clue how to work it

Printing Shockwave Flash
I tried using the Form1.PrintForm command but the image is blurry, does anyone know how to set up a print button in VB 6.0 to print a Shockwave Flash object?

Shockwave Flash Problem
Hi, i have a shockwave flash component on the form called swf_holder.

In that i load my movie.

The problem i have is how can i get the variables from flash into the visual basic?

I have this code so far:
CODEDim theScore2 As IShockwaveFlash, theScore As String

swf_holder.GetVariable (theScore)
MsgBox "The Score is: " & theScore

Shockwave Flash Problem
Hi, i have a problem, i have a shockwave control called swf_holder and was wondering how you can make the movie that is in that control goto a specific scene. Is this possible? I know you can go to a specific frame, just wondering how to goto a scene.

Also, how do you call functions from the vb to the flash movie and how do fscommand(); work?

Any ideas??


Regards,

Martin

Computing Help And Info:
http://www.webrevolt.biz

Shockwave Flash Control
Hey everyone. I was working with shockwave flash control to load a flash file from the internet and do some .GetVariable functions on it but loading the file is too much just to do a couple GetVariable. The user wants to load the file in their browser whatever it may be then the program will get the windows handle and then I want to run GetVariable to the window. Is this possible?

Thanks!

VB:help On Controlling Shockwave Flash
hi! how can i control flash file using shockwave flash., i tried to determine whether the flash is finish on playing but i got no answer., and how can i pause the flash. i use the components of shockwave flash(flash8b.ocx)

Shockwave Flash Control...
I would like to get some code to play a macromedia flash 4 movie with the Shockwave Flash control, any ideas?

VisualBlind

Shockwave Flash Question
Hi all.
I have an swf file in my program which starts playing when a button is pressed.
I'd like it to play up to a point, I don't want it to play till the end. How do I stop it at a certain frame or after a given time?

Shockwave Flash Control Properties
Can anyone please explain me the properties of the shockwave flash control i want to use it in my interface

Shockwave Flash Click Problem
I made a button in flash and put it in my project. I want to be able to click on the flash button and the program does something.

The problem is, the flash9 control doesnt have a mouseclick event.
How can I make this work?

Playing Shockwave Flash Files
Does anyone know if it's possible to play Shockwave Flash animation inside of VB? I have played animated gif's by using the Web Browser control, but it doesn't work with flash files. I can call Internet Explorer from VB and play flash files that way but it kind of defeats the purpose.

Shockwave Flash Component Directory
can someone give the shockwave flash component directory (where the flash9b.ocx is located), that visual studio target to. thanks

Embed Shockwave Flash Into VB6 Form
Hi guys,

I am looking to embed a shockwave flash movie into a form. Which do I use?
Shockwave ActiveX Control or Shockwave Flash? Capture attached.

Shockwave Flash Control In Windows 98 And NT
I put a flash movie in a visual basic form.
The only piece of code i use is

Private Sub Form_Load()
mov.Movie = App.Path & "lines.swf"
End Sub

the frames per second rate of the flash movie is 100 fps.

in windows NT the flash movie plays (through the vb application) as through the standalone flash player.
in windows 98 (and using the exact same vb project) the flash movie frames per second rate drops by at least 50%.

and something weird also happens: in windows 98, when the user moves the mouse, the frames per second rate starts
increasing ! The more the user moves the mouse the faster the flash movie plays !

why is this happening?
any ideas would be much appreciated

Playing Shockwave Flash Animation
Does anyone know if it's possible to play Shockwave Flash animation inside of VB? I have played animated gif's by using the Web Browser control, but it doesn't work with flash files. I can call Internet Explorer from VB and play flash files that way but it kind of defeats the purpose.

Rich Text Box Working With Shockwave Flash
hello everyone,

i now have a rich text box with transparent backgound and i wish to
display it on top of a flash.

but the problem is when i change the rich text box background to
transparent using this code (SetWindowLong RichTextBox1.hWnd,
GWL_EXSTYLE, WS_EX_TRANSPARENT), it will HIDE behind the flash file and
cannot be seen.

but the same code works on graphic files. *weird* :S

anyone have any idea to solve this?

thanks

Guys! Plsss Help Me..... {compile To Shockwave Flash}
hi guys! im kinda new to this site (and grateful to be part of it).. and i was hoping if anyone could help me with my problem?

is it possible a utility made out of VB can be compiled to SWF format?? how??

im currently doing thesis.. and its about how to make a tutorial event capturer utility..one of my requirements is to record any activity present and compile it to shockwave flash..


is it possible?? plss help me.. im in need! plsss.. any kind of information will be much appreciated.. tnx in advance!

Calling Functions In Shockwave Flash Code
Hi
how can I call functions in Shockwave Flash code , while am using the ShockwaveFlash ActiveX control !?

PLZ HLP THX

Shockwave Flash Compnent In Embedded Visual Basic V3.0 ?
hello..

Any idea where we can get this ? (if it exists..)

I know it's available in VB 6 Pro and .NET
but in embedded VB3.0 ??

thanks..

ActiveX Flash In PowerPoint To Advance Frame
I'm trying to advance to the NextFrame using custom made Flash buttons (just for the look), rather than the Action buttons in PPT.  Is there any VB I can use to give the Flash button the "next frame" direction when clicked?

Thanks,
EB

PowerPoint Automation
I have a large amount of tabular data which I wish to export to PowerPoint.
In Word, as the table gets bigger, it pushes newer rows onto the next page,
whereas in PowerPoint the entire table is viewed on a single slide whether it fits or not.
Is it possible
1. to split the table if it is possible to somehow know the slide size?
2. reduce font size when the table is created?
3. Is it possible to tile objects in PowerPoint?

...via macros.
If anyone has VB code related to these queries do help me out.
Thanks

PowerPoint Automation From VB
Hi everyone,
I wrote this application/utility in vb 6.0 which distills Power Point
Applications into PDF's. My problem is that when I finish distilling
the file and try to close power point I get the following message.

"PowerPoint is currently printing. Quitting will cancel all pending
print jobs. Do you want to quit anyway?"

Now I know that the file has already been converted to a ".ps" and
distilled into a ".pdf " because it doesn't matter which option I
choose (Yes or Cancel) my application just moves onto the next file
because it has successfully distilled the current file. Is there a
way to quit PowerPoint without any prompts or alerts like we do for
Excel.

This is the code I'm using:

Private Function fDistillPPT(sPath As String, sFile As String) As
Boolean
Dim oPPT As Object
Dim oTest As New PowerPoint.Application

Set oPPT = CreateObject("PowerPoint.Application")

With oPPT
.Visible = 1
.Presentations.Open FileName:=sPath

.ActivePresentation.PrintOut , , sTargetPath & Replace(sFile,".ppt", ".ps")
Sleep (2000)
.Presentations.Item(1).Windows(1).Activate
.Presentations.Item(1).Windows(1).Close
.Presentations.Application.Activate

.Presentations.Application.Quit
End With


Call DistillAFile( _
sTargetPath & Replace(sFile, ".ppt", ".ps"), _
sTargetPath & Replace(sFile, ".ppt", ".pdf"), _
"Print")

Kill sTargetPath & Replace(sFile, ".ppt", ".ps")
If Len(Dir(sTargetPath & Replace(sFile, ".ppt", ".log"))) <> 0 Then
Kill sTargetPath & Replace(sFile, ".ppt", ".log")
End If
Sleep (2000)
Set oPPT = Nothing
fDistillPPT = True
Exit Function
fDistillPPTErr:
Exit Function
End Function

Any suggestions would be greatly appreciated.
Thanks in advance

Powerpoint Automation
Hi All
I was trying to print the powerpoint files through my program.
the program opens the file, sets the print options, prints it and closes it..
the program has no error, but the line to close the file get executed while the file is printing. How can I wait all the slides in the file get printed and then quit MS PowerPoint?

It there any way that not to show the MS PowerPoint Window? I tried
[COLOR = red]
Dim ppt As Object
Dim p As Presentation

set ppt = CreateObject("Powerpoint.application")
ppt.Visible = False
set p = ppt.Presentations.Open(fileName)

[/COLOR]

But the above code doesn't work.. it has run time error..
if I take the line ppt.visible out, I can't open the file/ presentation.

Please tell me how I can set the code so the MS PPT window won't show and don't quit untill all the slides in the presentation get printed.

thank you

Copyright © 2005-08 www.BigResource.com, All rights reserved