Using OBIEE Scheduler to export and save data in excel/pdf
Hi
Is it possible to use obiee scheduler and run particular reports and export the data into excel/pdf and save this file at given location on server.
env: obiee 11g/linux OS
Thanks for any ideas.
Hi,
Yes it is possible.
As per my knowledge we don't have such option but we can do one way.
Using IBOTS you can store specific report and specific time in specific location.
Note : Using JS script.
Are you going to implement this way send me your mails id will send you js script for doing this.
Re: Auto SAVE to excel -- Please refer this thread.
Create js file using the below script and add this js scrif in your ibot advanced tab.
var FSO = new ActiveXObject("Scripting.FileSystemObject");
var foldername = 'D:\IBOT'
if (FSO.FolderExists(foldername))
var fileName = foldername + "\\" +Parameter(1);
var fooFile = FSO.CopyFile(Parameter(0), fileName, true);
else
FSO.CreateFolder(foldername);
var fileName = foldername + "D:\IBOT" + Parameter(1);
var fooFile = FSO.CopyFile(Parameter(0), fileName, true);
Thanks,
Satya
Similar Messages
-
How to export sql table data to Excel/PDf using Storedprocedure?
Hi ,
I have one table in sqlserver2008R2 that named "Customer" so that table hold the 1 Lac rows. Now I want send this table data to Excel/pdf with Columns using Storedprocedure.
I have tried this using xp_cmdshell so This is not working for me.
finally i want to get data in Excel and pdf also.
Please guide meYou can actually run an Excel Macro to grab the data from the SQL Server DB. Below are some samples.
Sub ADOExcelSQLServer()
' Carl SQL Server Connection
' FOR THIS CODE TO WORK
' In VBE you need to go Tools References and check Microsoft Active X Data Objects 2.x library
Dim Cn As ADODB.Connection
Dim Server_Name As String
Dim Database_Name As String
Dim User_ID As String
Dim Password As String
Dim SQLStr As String
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
Server_Name = "Excel-PC\SQLEXPRESS" ' Enter your server name here
Database_Name = "Northwind" ' Enter your database name here
User_ID = "" ' enter your user ID here
Password = "" ' Enter your password here
SQLStr = "SELECT * FROM dbo.Orders" ' Enter your SQL here
Set Cn = New ADODB.Connection
Cn.Open "Driver={SQL Server};Server=" & Server_Name & ";Database=" & Database_Name & _
";Uid=" & User_ID & ";Pwd=" & Password & ";"
rs.Open SQLStr, Cn, adOpenStatic
' Dump to spreadsheet
With Worksheets("sheet1").Range("a1:z500") ' Enter your sheet name and range here
.ClearContents
.CopyFromRecordset rs
End With
' Tidy up
rs.Close
Set rs = Nothing
Cn.Close
Set Cn = Nothing
End Sub
Sub ADOExcelSQLServer()
Dim Cn As ADODB.Connection
Dim Server_Name As String
Dim Database_Name As String
Dim User_ID As String
Dim Password As String
Dim SQLStr As String
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
Server_Name = "LAPTOP\SQL_EXPRESS" ' Enter your server name here
Database_Name = "Northwind" ' Enter your database name here
User_ID = "" ' enter your user ID here
Password = "" ' Enter your password here
SQLStr = "SELECT * FROM Orders" ' Enter your SQL here
Set Cn = New ADODB.Connection
Cn.Open "Driver={SQL Server};Server=" & Server_Name & ";Database=" & Database_Name & _
";Uid=" & User_ID & ";Pwd=" & Password & ";"
rs.Open SQLStr, Cn, adOpenStatic
With Worksheets("Sheet1").Range("A2:Z500")
.ClearContents
.CopyFromRecordset rs
End With
rs.Close
Set rs = Nothing
Cn.Close
Set Cn = Nothing
End Sub
Sub TestMacro()
' Create a connection object.
Dim cnPubs As ADODB.Connection
Set cnPubs = New ADODB.Connection
' Provide the connection string.
Dim strConn As String
'Use the SQL Server OLE DB Provider.
strConn = "PROVIDER=SQLOLEDB;"
'Connect to the Pubs database on the local server.
strConn = strConn & "DATA SOURCE=(local);INITIAL CATALOG=NORTHWIND.MDF;"
'Use an integrated login.
strConn = strConn & " INTEGRATED SECURITY=sspi;"
'Now open the connection.
cnPubs.Open strConn
' Create a recordset object.
Dim rsPubs As ADODB.Recordset
Set rsPubs = New ADODB.Recordset
With rsPubs
' Assign the Connection object.
.ActiveConnection = cnPubs
' Extract the required records.
.Open "SELECT * FROM Categories"
' Copy the records into cell A1 on Sheet1.
Sheet1.Range("A1").CopyFromRecordset rsPubs
' Tidy up
.Close
End With
cnPubs.Close
Set rsPubs = Nothing
Set cnPubs = Nothing
End Sub
Finally, you can run a SProc in SQL Server, from Excel, if you want the SProc to do the export.
Option Explicit
Sub Working2()
'USE [Northwind]
'GO
'DECLARE @return_value int
'EXEC @return_value = [dbo].[TestNewProc]
' @ShipCountry = NULL
'SELECT 'Return Value' = @return_value
'GO
Dim con As Connection
Dim rst As Recordset
Dim strConn As String
Set con = New Connection
strConn = "Provider=SQLOLEDB;"
strConn = strConn & "Data Source=LAPTOP\SQL_EXPRESS;"
strConn = strConn & "Initial Catalog=Northwind;"
strConn = strConn & "Integrated Security=SSPI;"
con.Open strConn
'Put a country name in Cell E1
Set rst = con.Execute("Exec dbo.TestNewProc '" & ActiveSheet.Range("E1").Text & "'")
'The total count of records is returned to Cell A5
ActiveSheet.Range("A5").CopyFromRecordset rst
rst.Close
con.Close
End Sub
Sub Working()
'USE [Northwind]
'GO
'DECLARE @return_value int
'EXEC @return_value = [dbo].[Ten Most Expensive Products]
'SELECT 'Return Value' = @return_value
'GO
Dim con As Connection
Dim rst As Recordset
Set con = New Connection
con.Open "Provider=SQLOLEDB;Data Source=LAPTOP\SQL_EXPRESS;Initial Catalog=Northwind;Integrated Security=SSPI;"
Set rst = con.Execute("Exec dbo.[Ten Most Expensive Products]")
'Results of SProc are returned to Cell A1
ActiveSheet.Range("A1").CopyFromRecordset rst
rst.Close
con.Close
End Sub
Knowledge is the only thing that I can give you, and still retain, and we are both better off for it. -
I have an mac air and an iMac 5k - pages runs on both. I use pages on my air and save all my documents to iCloud drive. I can see the documents on my iMac but some won't open in pages which is bizarre? They will open if I change it to open with preview but then all I can do is read it - I can't add to the document - All I want is to be able to see all my documents on all my devices and to be able to have them sync so I can add to the documents from any of my devices. I also have an iPhone 6 and an iPadair2 but I would be happy just to have the iMac and macair sync for starters. I have folders within folders in my documents,. The folders which contain pdf's and individual files open OK . The one I am having difficulty with is the file which I use for ongoing correspondence - in other words it is quite long - I keep adding to it ( by copying letters in and letters out so I can see a sequential history of what has been going on by scrolling down ) in date order so that it could be 1 - 100 pages long - but I don't think the size is a problem. I don't understand why some folders can open and others not . Has anyone any suggestions please. I have been trying to get this to work for months since iCloud drive came in. It has got much better but it is still not good enough - or maybe it's me?
All I can suggest is that you open that file on the MBA and save it as a new file, then see if you can open the new one on the iMac.
-
I've attached a VI that I am using to acquire amplitude from Spectrum analyzerse. I tried to connect amplitude ouput to the VI Write Characters To File.vi and Write to Spreadsheet File.vi. Unfortunately when I run continual this VI without interruption, labview ask me many time to enter a new file name to save a new value.
So, How can I do to aquire and save date in the same time and in the same file when I run continual my VI for example during 10 min.
Thank you in advance.
Regards,
Attachments:
HP8563E_Query_Amplitude.vi 37 KBHi,
Your VI does work perfectly. Unfortunately this not what I want to do. I've made error in my last comment. I am so sorry for this.
So I explain to you again what I want to do exactly. I want to acquire amplitude along road by my vehicle. I want to use wheel signal coming from vehicle to measure distance along road. Then I acquire 1 amplitude each 60 inches from spectrum analyzer.
I acquire from PC parallel port a coded wheel signal coming from vehicle (each period of the signal corresponds to 12 Inches). Figure attached shows the numeric signal coming from vehicle, and the corresponding values “120” and “88” that I can read from In Port vi.
So I want to acquire 1 time amplitude from spectrum analyser each 5
period of the signal that I am acquiring from parallel port.
So fist I have to find how can I count the number of period from reading the values “120” and “88” that I am acquiring from In Port (I don’t know the way to count a number of period from reading values “120” and “88”).
Here is a new algorithm.
1) i=0 (counter: number of period)
2) I read value from In Port
3) If I acquire a period
i= i+1 (another period)
4) If i is multiple of 5 (If I read 5 period)
acquire 1 time amplitude and write to the same
file this amplitude and the corresponding distance
Distance = 12*i). Remember each period of signal
Corresponds to 12 Inches).i has to take these
values: 5,10,15,20,25,35,40,45,50,55,60............
5) Back to 2 if not stop.
Thank you very much for helping me.
Regards,
Attachments:
Acquire_Amplitude_00.vi 59 KB
Figure_Algorithm.doc 26 KB -
Best way to export and import data from an iPhone app?
How do people here prefer to export and import data from an iPhone app?
For example, suppose your app creates or modifies a plist. It might be nice to provide that plist to the user for separate backup and later allow them to re-import it.
How do people do that? Email the plist to an address? If so, how would one later get it back in?
Is there a common way people do this kind of thing?
Thanks,
dougOr maybe the best approach for this is some sort of file synchronization feature? Is there a way of having files from the app's filesystem automatically get stored on the computer's filesystem when synchronizing and vice-versa?
doug -
Re: [SunONE-JATO] Re: Using an object to store and display data
Personally, I think there is little or no value to creating a "domain"
object that itself relies on a JATO QueryModel internally, but hides that
fact and requires use of BeanAdapterModel.
It would be more appropriate (and much less work, and more scalable) to just
derive a QueryModel subclass and add the domain-specific behavior to the
model. In other words, what's the point of creating an object that hides
JATO inside it when you're running in JATO to begin with? Now if the domain
object were doing plain JDBC, and thus trying to be JATO independent, that
would be different. However, you could still implement the Model interface
on the object (or use BeanAdapterModel) to integrate it seamlessly with the
View tier.
Todd
----- Original Message -----
From: "grschroeder" <grschroeder@y...>
Sent: Wednesday, July 31, 2002 12:00 PM
Subject: [SunONE-JATO] Re: Using an object to store and display data
Craig,
I think it all finally makes sense. First, your assumption is
correct regarding the process flow. The ViewBean will interact with
a custom Javabean which will then in turn interact with a SQL Model
to access the database. So now let me make sure I understand what I
need to do. Basically the custom Javabean will have a method to get
the SQLModel. I would then invoke the setValue method on the
SQLModel and call the appropriate execute method( e.g.,
executeUpdate, etc. ) just like I would do from a ViewBean. Does
this sound correct?
Thanks,
Greg
--- In SunONE-JATO@y..., "Craig V. Conover" <craig.conover@s...>
wrote:
Greg,
see below...
grschroeder wrote:
Thanks for the help Craig. I looked at the sample code that makes
use of the BeanAdapterModel. Basically it looks like it allows a
view to interact with a bean the same way it would interact with
any
other model. That part I think I understand.
This is correct.
The part I'm a little
unclear on still is how to interface this BeanAdapterModel( which
is
a very basic model ) that I now have with a query model toactually
interact with the database.
Not sure what you mean by "interface this BeanAdapterModel ... witha
query model". Does this mean that you have a ViewBean the interactswith
a custom JavaBean via the BeanAdpterModel wrapper, and from the
JavaBean you are interacting with the SQL Model?
So it looks like this: ViewBean > BeanAdapterModel(Custom JavaBean)
SQL Model > RDBMS
That's what I am reading anyway. Please explain this to me.
Would I need to make direct JDBC calls
from my custom model instead of letting JATO dynamically create
the
calls for me?
If my assumptions above are correct, then the custom JavaBean cansimply
use the SQL Model in exactly the same manner as the ViewBean,otherwise,
if no SQL Model is involved, then yes, you need to handle JDBCdirectly,
which is fine, if you do it "right" (connection pooling, result set
handling, etc.).
Thanks,
Greg
--- In SunONE-JATO@y..., "Craig V. Conover" <craig.conover@s...>
wrote:
I think the best approach would be to treat your Domain Objects
(DO) as
the Database (the enterprise tier) from JATO's perspective. You
could
create custom models that interface with our DO's and then the
JATO
Views could easily bind to the custom DO models just like anyother
model. This should eliminate the need for pushing data/objectsfrom
>
view
to model to database.
There is a JATO class called BeanAdapterModel that might be just
what
you need, however, I am not experienced with using it. Maybe
someone
else on my team or in the community could better explain how to
use
>
this
class.
craig
grschroeder wrote:
Venki,
Thanks for the response. Actually, I'm not sure if I can answer
all
of your questions because those are some of the same questions
that
we're trying to answer ourselves. Basically, what we're trying
to
>do
is incorporate our domain object model into the JATO framework.
My
thinking was that one way we could accomplish this was by
storing
>a
Javabean object in the HTTPSession to represent an object in the
domain model, and that the Viewbean and JATO Model could get and
set
data from there. If you have a better suggestion of how to
accomplish this, I'm definitely open to hearing it.
Thanks,
Greg
--- In SunONE-JATO@y..., Venki <heyvenki@y...> wrote:
OK grschroeder , first let me get this straight:
0. Are you going to pass this object to the model, or are u
going
>
to pass the session object to the model?
1. Is there any specific reason for this approach you are
taking?
2. Will there be a notification from the object u havementioned
>to
have the model persist the data?
3. What about the reverse case, when the model refreshes the
data,
how are you going to refresh you object?
4. The JavaBean Object that u are talking about, is it your own
object or is it implementation of an existing JATO interface?
~Venki
grschroeder wrote:I'm fairly new to JATO, but I think I now
have
>a
basic understanding
of how Viewbeans and Models interact. However, I want to
incorporate
the use of a Javabean object that will be stored in the HTTP
session
and will act as the connection between the Viewbean and Model
instead
of having the Viewbean and Model interact directly with each
other.
Basically I would like to have the Model set data in the object
stored in the session so that the Viewbean can pull it out to
display
it. And vice versa, once the user modifies the data and is
ready
>
to
persist it, I would like to have the Viewbean set data in the
object
stored in the session so that the Model can pull it out to
store
>it
in the database. I'm not sure what the best approach would be
to
accomplish this. Any help you could give would be greatly
appreciated.
Thanks,
Greg
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
Service.
Venki
IT Solutions
#6, Pycrofts Garden Road, Nugambakkam, Chennai - 600 006
91-44-4925740(Home) 91-44-8212877(Work)
* Luck is what happens when Preparation meets Opportunity.
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
>To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jspPersonally, I think there is little or no value to creating a "domain"
object that itself relies on a JATO QueryModel internally, but hides that
fact and requires use of BeanAdapterModel.
It would be more appropriate (and much less work, and more scalable) to just
derive a QueryModel subclass and add the domain-specific behavior to the
model. In other words, what's the point of creating an object that hides
JATO inside it when you're running in JATO to begin with? Now if the domain
object were doing plain JDBC, and thus trying to be JATO independent, that
would be different. However, you could still implement the Model interface
on the object (or use BeanAdapterModel) to integrate it seamlessly with the
View tier.
Todd
----- Original Message -----
From: "grschroeder" <grschroeder@y...>
Sent: Wednesday, July 31, 2002 12:00 PM
Subject: [SunONE-JATO] Re: Using an object to store and display data
Craig,
I think it all finally makes sense. First, your assumption is
correct regarding the process flow. The ViewBean will interact with
a custom Javabean which will then in turn interact with a SQL Model
to access the database. So now let me make sure I understand what I
need to do. Basically the custom Javabean will have a method to get
the SQLModel. I would then invoke the setValue method on the
SQLModel and call the appropriate execute method( e.g.,
executeUpdate, etc. ) just like I would do from a ViewBean. Does
this sound correct?
Thanks,
Greg
--- In SunONE-JATO@y..., "Craig V. Conover" <craig.conover@s...>
wrote:
Greg,
see below...
grschroeder wrote:
Thanks for the help Craig. I looked at the sample code that makes
use of the BeanAdapterModel. Basically it looks like it allows a
view to interact with a bean the same way it would interact with
any
other model. That part I think I understand.
This is correct.
The part I'm a little
unclear on still is how to interface this BeanAdapterModel( which
is
a very basic model ) that I now have with a query model toactually
interact with the database.
Not sure what you mean by "interface this BeanAdapterModel ... witha
query model". Does this mean that you have a ViewBean the interactswith
a custom JavaBean via the BeanAdpterModel wrapper, and from the
JavaBean you are interacting with the SQL Model?
So it looks like this: ViewBean > BeanAdapterModel(Custom JavaBean)
SQL Model > RDBMS
That's what I am reading anyway. Please explain this to me.
Would I need to make direct JDBC calls
from my custom model instead of letting JATO dynamically create
the
calls for me?
If my assumptions above are correct, then the custom JavaBean cansimply
use the SQL Model in exactly the same manner as the ViewBean,otherwise,
if no SQL Model is involved, then yes, you need to handle JDBCdirectly,
which is fine, if you do it "right" (connection pooling, result set
handling, etc.).
Thanks,
Greg
--- In SunONE-JATO@y..., "Craig V. Conover" <craig.conover@s...>
wrote:
I think the best approach would be to treat your Domain Objects
(DO) as
the Database (the enterprise tier) from JATO's perspective. You
could
create custom models that interface with our DO's and then the
JATO
Views could easily bind to the custom DO models just like anyother
model. This should eliminate the need for pushing data/objectsfrom
>
view
to model to database.
There is a JATO class called BeanAdapterModel that might be just
what
you need, however, I am not experienced with using it. Maybe
someone
else on my team or in the community could better explain how to
use
>
this
class.
craig
grschroeder wrote:
Venki,
Thanks for the response. Actually, I'm not sure if I can answer
all
of your questions because those are some of the same questions
that
we're trying to answer ourselves. Basically, what we're trying
to
>do
is incorporate our domain object model into the JATO framework.
My
thinking was that one way we could accomplish this was by
storing
>a
Javabean object in the HTTPSession to represent an object in the
domain model, and that the Viewbean and JATO Model could get and
set
data from there. If you have a better suggestion of how to
accomplish this, I'm definitely open to hearing it.
Thanks,
Greg
--- In SunONE-JATO@y..., Venki <heyvenki@y...> wrote:
OK grschroeder , first let me get this straight:
0. Are you going to pass this object to the model, or are u
going
>
to pass the session object to the model?
1. Is there any specific reason for this approach you are
taking?
2. Will there be a notification from the object u havementioned
>to
have the model persist the data?
3. What about the reverse case, when the model refreshes the
data,
how are you going to refresh you object?
4. The JavaBean Object that u are talking about, is it your own
object or is it implementation of an existing JATO interface?
~Venki
grschroeder wrote:I'm fairly new to JATO, but I think I now
have
>a
basic understanding
of how Viewbeans and Models interact. However, I want to
incorporate
the use of a Javabean object that will be stored in the HTTP
session
and will act as the connection between the Viewbean and Model
instead
of having the Viewbean and Model interact directly with each
other.
Basically I would like to have the Model set data in the object
stored in the session so that the Viewbean can pull it out to
display
it. And vice versa, once the user modifies the data and is
ready
>
to
persist it, I would like to have the Viewbean set data in the
object
stored in the session so that the Model can pull it out to
store
>it
in the database. I'm not sure what the best approach would be
to
accomplish this. Any help you could give would be greatly
appreciated.
Thanks,
Greg
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
Service.
Venki
IT Solutions
#6, Pycrofts Garden Road, Nugambakkam, Chennai - 600 006
91-44-4925740(Home) 91-44-8212877(Work)
* Luck is what happens when Preparation meets Opportunity.
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
>To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp
To download the latest version of JATO, please visit:
http://www.sun.com/software/download/developer/5102.html
For more information about JATO, please visit:
http://developer.iplanet.com/tech/appserver/framework/index.jsp -
Using XML extraction from Oracle and XSLT data transformation
Hi
How can transfer data ie: Using XML extraction from Oracle and XSLT data transformation with java application?
usually i use to do querying sql, getting data from table assinging to model class then send it to UI. how can i go for XML extraction form oracle?
thanksSorry, I don't understand what exactly you want to do. And I'm under the impression that you might not know exactly what you want to do as well. Could you explain a bit more detailed what you want to achieve?
-
Png blurry/pixelated after i used the vanishing point filter and save as a VSP file?
Hi,
Why are my png blurry/pixelated after i used the vanishing point filter and save as a VSP file? And i'm using a high res picture. I'm using PS CC.
I got some screenshots.
This the result of the png
Thanx in advanceAs I posted before, I would use it more if it had some of the functionality I need. I need to be able to change the opacity of the image I'm pasting so I can see EXACTLY where my overlaid image will register with the bottom image. VP seems to require a ton of processing and I wonder if maybe the software is handing off some of this work to the graphics card for calculating. Maybe this would explain that apparently not many people have run into an error that gets embedded in the file. Although my G5 is Apple stock, not super-modified.
craig -
Hi,
I want to save data in Excel? But how?
Can somebody send me a VI?
Thank youIf you want to do excel formatting and really have full functionality in Excel without having to buy the reports toolkit, you can use the Excel ActiveX controls. If you have Excel installed you can use ActiveX references to do anything you want excel to do for you. Use an automation reference and select the Excel class. I forget what its called, but you should be able to find what does what without too much problem. You just use methods from the reference. It takes a bit of work to figure out what everything does, but I have written huge formatting vi's that open excel, format cells, run macros, and save files in excel and then close excel when its done. It all depends on how fancy you want to get.
-Devin
I got 99 problems but 8.6 ain't one. -
Hi!
Don´t know if I doing this to complex, but I would like to work in an online pdf, and be able to save data - and on open i load the xml file.
flow
1) start form - lets say it has 10 fields
2) fill out 5 fields and save data - export/submit it to a script that can save an xml on webserver
3) on open, the pdf form opens with data. Could also be that an xdp was uploaded, which had a ref to pdf.
Is there a better way - come with your surgetions! I would like the server-site script to be PHP, which a have a little experince with..
Look forward to those clever ideas :)
Thomas Groenbaek - DenmarkNo, you have to do it by creating duplicate and then renaming. In the Documents list, tap the Edit button, select the file, and tap the "Duplicate selected document" icon at the top, second from the left.
To rename: Edit > select file > Rename (icon to the left of the trash can) -
Hello. May I ask: I am using Acrobat 6.0.2, and having trouble formatting a PDF created from multiple (jpeg) files. Each page is formatted to A4 size, portrait. But when I create the PDF, each sheet appears as tiny, in the middle of a huge white page. I cannot seem to find any controls to adjust this. Any advice appreciated.
Thanks CtDave, for the further info. Unfortunately, those suggestions are not working, which is strange.
....Until last week, I used to make multi-page PDFs straight from Photoshop: File > Automate > Make PDF. One simply choses the files, orders them, and creates a PDF. (Resolution doesn't matter; 300 DPI is no problem.) However, my new Photoshop CS5 does not have the option in Automate.
What I've done, seeing as Acrobat is letting me down, is use Bridge (new to me) to create the PDF. It worked without a problem, but seems like more work than the old PS method. I will download a newer version of Acrobat to see if that makes any difference.
.....Also, thanks Test Screen Name: I agree with you that jpeg is irrelevant, and that one can make a PDF from Photoshop (Print > Save As - pdf). But that only works for SINGLE PAGE pdf, not multiple pages as far as I can tell.
Kind regards,
Prince Nuada -
Can I use Visual Basic to covert form user data from multiple .pdf files to a single .csv file? If so, how?
You can automate Acrobat using IAC (InterApplication Communications), as documented in the Acrobat SDK. Your program could loop through a collection of PDFs, load them in Acrobat, extract the form data from each, and generate a CSV file that contains the data.
Acrobat can also do this with its "Merge Data Files into Spreadsheet" function, but this is a manual process. -
Can i use pandrive with iPad, i want to access word, excel, pdf files on iPad via pandrive
You cannot use pendriver.
Have a look at the following:
http://itunes.apple.com/sg/app/quickoffice-pro-hd-edit-office/id376212724?mt=8&l s=1
http://itunes.apple.com/sg/app/office2-hd/id364361728?mt=8&ls=1
http://itunes.apple.com/sg/app/documents-to-go-premium-office/id317107309?mt=8&l s=1
http://itunes.apple.com/sg/app/polaris-office/id513188658?mt=8&ls=1 -
How to extract the data into Excel / PDF from SAP
Hi,
We have spool number of a report output.
We want to extract the data into Excel / PDF from SAP directly...
Plz guide...Hi ,
Please check this [Thread|HOW TO DOWNLOAD SAP OUTPUT TO EXCEL FILE;. Hope your problem will be solved.
You can check [this also.|http://wiki.sdn.sap.com/wiki/display/sandbox/ToConvertSpoolDataintoPDFandExcelFormatandSenditinto+Mail]
Thanks,
Abhijit -
Using SharedObjects to load and save data
Hello, i am having troubles with using shared objects to save and load data for my highscore feature of my game i am developing in actionscript 3. This is my main code.
I am trying to update a dynamic text field that acts as an high score function
[as]
package
// initialize;
import flash.display.MovieClip;
import flash.utils.Timer;
import flash.events.TimerEvent;
import flash.ui.Mouse;
import flash.events.KeyboardEvent;
import flash.ui.Keyboard;
import flash.events.Event;
import flash.media.SoundChannel;
import flash.net.SharedObject;
import flash.text.TextField;
import flash.display.Stage;
import flash.events.ProgressEvent;
public class Game extends MovieClip
public static var _stage:Stage;
static var so:SharedObject;
static var ship:MovieClip;
static var healthMeter:HealthMeter;
static var score:Score;
static var highScore:HighScore;
static var enemyShipTimer:Timer;
static var gameOverMenu:GameOverMenu;
static var startMenu:StartMenu;
static var helpMenu:HelpMenu;
static var startButton:StartButton;
static var returnButton:ReturnButton;
static var helpButton:HelpButton;
static var pauseButton:PauseButton;
static var playButton:PlayButton;
static var mainMenuButton:MainMenuButton;
public var currentValue:Number;
public var loadingProgress:LoadingProgress;
public function Game()
loadingProgress = new LoadingProgress();
loadingProgress.x = 550;
loadingProgress.y = 500;
addChild( loadingProgress );
loaderInfo.addEventListener( Event.COMPLETE, onCompletelyDownloaded );
loaderInfo.addEventListener( ProgressEvent.PROGRESS, onProgressMade );
public function showMenuScreen():void
_stage = this.stage;
Key.initialize(stage);
ship = new Ship();
healthMeter = new HealthMeter();
var score:Score = new Score();
var highScore:HighScore = new HighScore();
so = SharedObject.getLocal("scores");
if (so.data.score)
highScore.bestScore.text = so.data.score.toString();
else
highScore.bestScore.text = "0";
addChild(score);
addChild(highScore);
gameScore.visible = false;
bestScore.visible = true;
healthMeter.x = 2.5;
healthMeter.y = 576;
gameOverMenu = new GameOverMenu();
gameOverMenu.x = 217;
gameOverMenu.y = 244;
addChild(gameOverMenu);
gameOverMenu.visible = false;
helpMenu = new HelpMenu();
helpMenu.x = 480;
helpMenu.y = 312;
addChild(helpMenu);
helpMenu.visible = false;
returnButton = new ReturnButton();
returnButton.x = 54;
returnButton.y = 52;
addChild(returnButton);
returnButton.visible = false;
gameOverMenu.playAgainButton.addEventListener("mouseDown", newGame);
startMenu = new StartMenu();
mainMenuButton = new MainMenuButton();
startButton = new StartButton();
helpButton = new HelpButton();
startMenu.x = 151;
startMenu.y = 111;
startButton.x = 93;
startButton.y = 426;
helpButton.x = 631;
helpButton.y = 386;
mainMenuButton.x = 656;
mainMenuButton.y = 483;
addChild(mainMenuButton);
mainMenuButton.visible = false;
stage.addChildAt(startMenu, 0);
addChild(startButton);
addChild(helpButton);
startMenu.visible = true;
startButton.visible = true;
helpButton.visible = true;
startMenu.visible = true;
startButton.addEventListener("mouseDown", newGame);
helpButton.addEventListener("mouseDown", helpGame);
mainMenuButton.addEventListener("mouseDown", mainMenu);
returnButton.addEventListener("mouseDown", mainMenu2);
pauseButton = new PauseButton();
pauseButton.x = 896;
pauseButton.y = 63;
pauseButton.addEventListener("mouseDown", PauseGame);
playButton = new PlayButton();
playButton.x = 896;
playButton.y = 63;
addChild(playButton);
playButton.visible = false;
playButton.addEventListener("mouseDown", PlayGame);
static function gameOver()
scoreF();
mainMenuButton.visible = true;
healthMeter.visible = false;
pauseButton.visible = false;
gameOverMenu.visible = true;
enemyShipTimer.stop();
for (var i in EnemyShip.list)
EnemyShip.list[i].kill();
ship.takeDamage(-ship.maxHealth);
function newGame(e:Event)
addEventListener(Event.DEACTIVATE, PauseGame);
bestScore.visible = false;
gameScore.visible = true;
addChild(pauseButton);
addChild(healthMeter);
addChild(mainMenuButton);
enemyShipTimer = new Timer(750);
enemyShipTimer.addEventListener("timer", sendEnemy);
addChild(ship);
healthMeter.visible = true;
startMenu.visible = false;
mainMenuButton.visible = false;
startButton.visible = false;
healthMeter.visible = true;
pauseButton.visible = true;
playButton.visible = false;
gameOverMenu.visible = false;
helpButton.visible = false;
ship.visible = true;
ship.x = 367;
ship.y = 542;
enemyShipTimer.start();
currentValue = 0;
updateDisplay();
function mainMenu(e:Event)
removeEventListener(Event.DEACTIVATE, PauseGame);
bestScore.visible = true;
gameScore.visible = false;
removeChild(mainMenuButton);
removeChild(ship);
healthMeter.visible = false;
startMenu.visible = true;
mainMenuButton.visible = false;
startButton.visible = true;
healthMeter.visible = false;
pauseButton.visible = false;
playButton.visible = false;
ship.takeDamage(ship.maxHealth);
gameOverMenu.visible = false;
helpButton.visible = true;
returnButton.visible = false;
function mainMenu2(e:Event)
bestScore.visible = true;
gameScore.visible = false;
healthMeter.visible = false;
startMenu.visible = true;
mainMenuButton.visible = false;
startButton.visible = true;
healthMeter.visible = false;
pauseButton.visible = false;
playButton.visible = false;
gameOverMenu.visible = false;
helpButton.visible = true;
returnButton.visible = false;
helpMenu.visible = false;
function PauseGame(e:Event)
enemyShipTimer.removeEventListener("timer", sendEnemy);
stage.frameRate = 0;//
pauseButton.visible = false;
playButton.visible = true;
function PlayGame(e:Event)
enemyShipTimer.addEventListener("timer", sendEnemy);
stage.frameRate = 30;//
pauseButton.visible = true;
playButton.visible = false;
function helpGame(e:Event)
startMenu.visible = false;
startButton.visible = false;
helpButton.visible = false;
helpMenu.visible = true;
returnButton.visible = true;
function sendEnemy(e:Event)
var enemy = new EnemyShip();
stage.addChildAt(enemy, 0);
addToValue(1);
function addToValue( amountToAdd:Number ):void
currentValue = currentValue + amountToAdd;
updateDisplay();
static function scoreF():void
if (so.data.score)
if (getFinalScore()>so.data.score)
so.data.score = getFinalScore();
so.flush();
else
so.data.score = getFinalScore();
so.flush();
function updateDisplay():void
if (currentValue>Number(highScore.bestScore.text))
scoreF();
highScore.bestScore.text = currentValue.toString();
TextField(gameScore.getChildByName("scoreDisplay")).text = currentValue.toString();
TextField(bestScore.getChildByName("bestScore")).text = highScore.bestScore.text;
loadingProgress.percentDisplay.text = currentValue.toString();
static function getFinalScore()
_stage;
return;
gameScore.currentValue;
public function onCompletelyDownloaded( event:Event ):void
gotoAndStop(3);
showMenuScreen();
public function onProgressMade( progressEvent:ProgressEvent ):void
setValue( Math.floor( 100 * loaderInfo.bytesLoaded / loaderInfo.bytesTotal ) );
public function setValue( amount:Number ):void
currentValue = amount;
updateDisplay();
[/as]
when i run this, it crashes with this error.
TypeError: Error #1009: Cannot access a property or method of a null object reference.
at Game/updateDisplay()[C:\Users\Ben\Desktop\SFUR\Game.as:329]
at Game/setValue()[C:\Users\Ben\Desktop\SFUR\Game.as:356]
at Game/onProgressMade()[C:\Users\Ben\Desktop\SFUR\Game.as:351]
help would be greatly appreciated.
if you need any more details please ask.
Line 329: if (currentValue>Number(highScore.bestScore.text))
Line 356: updateDisplay();
Line 351:
setValue( Math.floor( 100 * loaderInfo.bytesLoaded / loaderInfo.bytesTotal ) );
-BenOk, i have changed my classes a bit to try and fix the issue. I found a tutorial online called MJW avoider game or something and so i split some of my code in to seperate classes. But now the score doesnt update. I have fixed the loading issue (hopefully) i can access the main menu etc... but the highscore doesnt show at all after a game. Here are my classes.
Document class (Game.as)
package
// initialize;
import flash.display.MovieClip;
import flash.utils.Timer;
import flash.events.TimerEvent;
import flash.ui.Mouse;
import flash.events.KeyboardEvent;
import flash.ui.Keyboard;
import flash.events.Event;
import flash.media.SoundChannel;
import flash.net.SharedObject;
import flash.text.TextField;
import flash.display.Stage;
import flash.events.ProgressEvent;
public class Game extends MovieClip
public static var _stage:Stage;
static var so:SharedObject;
static var ship:MovieClip;
static var healthMeter:HealthMeter;
static var score:Score;
static var enemyShipTimer:Timer;
static var gameOverMenu:GameOverMenu;
static var startMenu:StartMenu;
static var helpMenu:HelpMenu;
static var startButton:StartButton;
static var returnButton:ReturnButton;
static var helpButton:HelpButton;
static var pauseButton:PauseButton;
static var playButton:PlayButton;
static var mainMenuButton:MainMenuButton;
public var currentValue:Number;
public var loadingProgress:LoadingProgress;
static var highScore:HighScore;
public function Game()
loadingProgress = new LoadingProgress();
loadingProgress.x = 550;
loadingProgress.y = 500;
addChild( loadingProgress );
loaderInfo.addEventListener( Event.COMPLETE, onCompletelyDownloaded );
loaderInfo.addEventListener( ProgressEvent.PROGRESS, onProgressMade );
public function showMenuScreen():void
removeChild( loadingProgress );
_stage = this.stage;
highScore = new HighScore();
ship = new Ship();
healthMeter = new HealthMeter();
var score:Score = new Score();
so = SharedObject.getLocal("scores");
if (so.data.score)
highScore.bestScore.text = so.data.score.toString();
else
highScore.bestScore.text = "0";
addChild(score);
addChild(highScore);
gameScore.visible = false;
bestScore.visible = true;
healthMeter.x = 2.5;
healthMeter.y = 576;
gameOverMenu = new GameOverMenu();
gameOverMenu.x = 217;
gameOverMenu.y = 244;
addChild(gameOverMenu);
gameOverMenu.visible = false;
helpMenu = new HelpMenu();
helpMenu.x = 480;
helpMenu.y = 312;
addChild(helpMenu);
helpMenu.visible = false;
returnButton = new ReturnButton();
returnButton.x = 54;
returnButton.y = 52;
addChild(returnButton);
returnButton.visible = false;
gameOverMenu.playAgainButton.addEventListener("mouseDo wn", newGame);
startMenu = new StartMenu();
mainMenuButton = new MainMenuButton();
startButton = new StartButton();
helpButton = new HelpButton();
startMenu.x = 151;
startMenu.y = 111;
startButton.x = 93;
startButton.y = 426;
helpButton.x = 631;
helpButton.y = 386;
mainMenuButton.x = 656;
mainMenuButton.y = 483;
addChild(mainMenuButton);
mainMenuButton.visible = false;
stage.addChildAt(startMenu, 0);
addChild(startButton);
addChild(helpButton);
startMenu.visible = true;
startButton.visible = true;
helpButton.visible = true;
startMenu.visible = true;
startButton.addEventListener("mouseDown", newGame);
helpButton.addEventListener("mouseDown", helpGame);
mainMenuButton.addEventListener("mouseDown", mainMenu);
returnButton.addEventListener("mouseDown", mainMenu2);
pauseButton = new PauseButton();
pauseButton.x = 896;
pauseButton.y = 63;
pauseButton.addEventListener("mouseDown", PauseGame);
playButton = new PlayButton();
playButton.x = 896;
playButton.y = 63;
addChild(playButton);
playButton.visible = false;
playButton.addEventListener("mouseDown", PlayGame);
static function gameOver()
scoreF();
mainMenuButton.visible = true;
healthMeter.visible = false;
pauseButton.visible = false;
gameOverMenu.visible = true;
enemyShipTimer.stop();
for (var i in EnemyShip.list)
EnemyShip.list[i].kill();
ship.takeDamage(-ship.maxHealth);
function newGame(e:Event)
addEventListener(Event.DEACTIVATE, PauseGame);
bestScore.visible = false;
gameScore.visible = true;
addChild(pauseButton);
addChild(healthMeter);
addChild(mainMenuButton);
enemyShipTimer = new Timer(750);
enemyShipTimer.addEventListener("timer", sendEnemy);
addChild(ship);
healthMeter.visible = true;
startMenu.visible = false;
mainMenuButton.visible = false;
startButton.visible = false;
healthMeter.visible = true;
pauseButton.visible = true;
playButton.visible = false;
gameOverMenu.visible = false;
helpButton.visible = false;
ship.visible = true;
ship.x = 367;
ship.y = 542;
enemyShipTimer.start();
currentValue = 0;
updateDisplay();
function mainMenu(e:Event)
removeEventListener(Event.DEACTIVATE, PauseGame);
bestScore.visible = true;
gameScore.visible = false;
removeChild(mainMenuButton);
removeChild(ship);
healthMeter.visible = false;
startMenu.visible = true;
mainMenuButton.visible = false;
startButton.visible = true;
healthMeter.visible = false;
pauseButton.visible = false;
playButton.visible = false;
ship.takeDamage(ship.maxHealth);
gameOverMenu.visible = false;
helpButton.visible = true;
returnButton.visible = false;
function mainMenu2(e:Event)
bestScore.visible = true;
gameScore.visible = false;
healthMeter.visible = false;
startMenu.visible = true;
mainMenuButton.visible = false;
startButton.visible = true;
healthMeter.visible = false;
pauseButton.visible = false;
playButton.visible = false;
gameOverMenu.visible = false;
helpButton.visible = true;
returnButton.visible = false;
helpMenu.visible = false;
function PauseGame(e:Event)
enemyShipTimer.removeEventListener("timer", sendEnemy);
stage.frameRate = 0;//
pauseButton.visible = false;
playButton.visible = true;
function PlayGame(e:Event)
enemyShipTimer.addEventListener("timer", sendEnemy);
stage.frameRate = 30;//
pauseButton.visible = true;
playButton.visible = false;
function helpGame(e:Event)
startMenu.visible = false;
startButton.visible = false;
helpButton.visible = false;
helpMenu.visible = true;
returnButton.visible = true;
function sendEnemy(e:Event)
var enemy = new EnemyShip();
stage.addChildAt(enemy, 0);
addToValue(1);
static function scoreF():void
if (so.data.score)
if (getFinalScore()>so.data.score)
so.data.score = getFinalScore();
so.flush();
else
so.data.score = getFinalScore();
so.flush();
function updateDisplay():void
if (currentValue>Number(highScore.bestScore.text))
scoreF();
Game.highScore.bestScore.text = currentValue.toString();
TextField(gameScore.getChildByName("scoreDisplay")).te xt = currentValue.toString();
loadingProgress.percentDisplay.text = currentValue.toString();
static function getFinalScore()
_stage;
return;
gameScore.currentValue;
public function addToValue( amountToAdd:Number ):void
currentValue = currentValue + amountToAdd;
updateDisplay();
public function onCompletelyDownloaded( event:Event ):void
gotoAndStop(3);
showMenuScreen();
public function onProgressMade( progressEvent:ProgressEvent ):void
loadingProgress.setValue( Math.floor( 100 * loaderInfo.bytesLoaded / loaderInfo.bytesTotal ) );
Counter Class (Counter.as)
package
import flash.display.MovieClip;
public class Counter extends MovieClip
public var currentValue:Number;
public function Counter()
reset();
public function addToValue( amountToAdd:Number ):void
currentValue = currentValue + amountToAdd;
updateDisplay();
public function setValue( amount:Number ):void
currentValue = amount;
updateDisplay();
public function reset():void
currentValue = 0;
updateDisplay();
public function updateDisplay():void
LoadingProgress class (LoadingProgress.as)
package
import flash.text.TextField;
public class LoadingProgress extends Counter
public function LoadingProgress()
super();
override public function updateDisplay():void
super.updateDisplay();
percentDisplay.text = currentValue.toString();
There not all my classes, but they are the classes where the errors are coming from.
Please remember i am an actionscript noob
Thanks again, Nacho
Maybe you are looking for
-
Guide me to override the af:query component QueryListener property
Hi All, If any one have sample application to override the af:query component query lisenere proprety, please share. I have the following requirement in search criteria. Field 1 Field 2 Field 3 Field 4 Field 5 Find Button Result section Validations o
-
How to "close" applications and not use data
Is it possible to "close" applications so to not use any data/internet at all, for example with safari? Or is it when you click the "home" button, it closes?
-
Going through all the nodes children (JTree)
Hello all, I'm detecting clicks on a JTree, and I want a method that goes from that node to the end of the tree (all the leaves). The method will be invoked if the node has children of course, I want to do this recursively but I don't know how. Can a
-
PDF: Adobe Interactive forms pops up SAVE AS dialouge box after modification
Hi, We have developed Adobe Interactive form uisng Adobe LiveCycle Designer. After creating pdf, whenever I change data in the interacvie form, it is poping up "Save As" dialouge box everytime user saves data. So User is replacing the same file again
-
I have a few issues going on with CS5 and hope someone can lend advice.. First, I am usiing CS5 with Windows 7 Professional 8GB RAM. All of my video files reside on an external GRaid drive. For over a year now, I have been using this setup and no