Access output question

Hi,
I'm new at CF. I have an access database that is taking in
form data. That
part I got working fine, but what I'd like to know is there a
way to use cf
(6.1) to extract the data and format it into either a word
document, or
excel spreadsheet, then either email it and/or dump it into a
directory on
the server?
Thanks

I did this a few years back when we had 6.1. It may have not
been the best way but it worked. You first need to create a
template document. Create it in MS Word or whatever but it needs to
be saved as a .rtf file instead of a .doc (6.1 couldn't write to a
.doc file or something but it didn't matter because all you have to
do is change the extension after you're finished.) Format the
document a required then everywhere you want to insert data from
Access add a unique variable in the form of %variableName%.
Next in you cfm file you have to query the data. Then using
cffile read the template file into memory, something like
<cffile
action="Read"
file="#TemplatePath#"
variable="RTF">
Now replace the placeholder variables you created in the
template with the data, like so:
<cfset RTF = Replace(RTF, "%variableName%",
queryname.datacolumn)>
Finally, I suggested a new default filename for document with
<cfheader name="Content-Disposition"
value="filename=Letter.doc">
and then set the content-type so Word is invoked
<cfcontent
type="application/msword"><cfoutput>#RTF#</cfoutput>
This of course opened Word on the Client's computer and wrote
all the information to the document which would be saved to
wherever they wanted as letter.doc unless they specified otherwise.
If you want it to write to a folder on the server just skip the
last two lines above and use cffile again to write the RTF variable
back to a file
younameit.doc to whatever path you want. You can then attach
it to an email or have a page link displayed on screen.
It's been a while since I wrote this but I quite sure that
how I did it. Hope it helps.

Similar Messages

  • Trying to access output on bridge

    I am unable to access output on bridge

    I'm having problems with that too. It didn't come as standard on Adobe CC so i got directed to where you get the info to install it.  I followed the the instructions very carefully https://helpx.adobe.com/bridge/kb/install-output-module-bridge-cc.html
    but I still can't find it when I reopend Bridge

  • EPub Output Questions

    We recently upgraded to FM 12, and I am playing around with the ePub output function. I have two questions:
    1. We use track text edits to show our audience recent changes to our publications. When I publish to ePub, it essentially accepts all of our edits (we lose the visibility - i.e. different colors/strikethrough). Any thoughts on how to keep our tracked edits showing in the ePub?
    2. We are having issues with anchored frames. One anchored frame contains an image (a jpeg, I believe), and it is not carrying over into the ePub (i.e. it is blank where the anchored frame/image should be). The other anchored frame we have contains a flowchart with hypertext markers linking to various URLs. None of the links are carrying over into the ePub. Thoughts?
    Any help is always greatly appreciated!

    2. Anything different about the JPG that you're using? From what application was it created (or is it a camera image) and what are it's specifics?
    I also don't think that image maps are supported in ePub, especially jumps to URLs or external files (as there's no guarantee that an eReader device can access those). You could try to create simple numbered callouts on a test graphic and then add a list of numbered hyperlinks after the image to see what ePub will support.
    You might want to have a look at some of Scot Prentice's (Leximation) presentations on ePubs and their limitations. You can find the links to his papers and presentations at: Leximation: About Scott Prentice

  • Complier output question

    I've been working on a java assignment that requires me to write a command line program which will read data from a text file, store the data in a vector and then save the vector to another file in a serialized form. I have written this program using the Kawa complier software.
    I have, what I believe to be, a working program; it complies without reporting any errors, but when I try to run the program, I get the following message in the complier output window.
    'Exception in thread "main"'
    Can someone tell me what this means?
    Thanks.

    Thanks for the suggestions, but I found a solution for it after posting the question. Another problem has come up now though.
    As I stated, the program is supposed to read the data from a text file, store it in a vector, and output it to another file in serialized form.
    The input file consists of many records of computers and peripherals. Each record uses four lines of the input file, and is displayed like this:
    Description (String)
    Price (float)
    VAT Price (float)
    Quantity (integer),
    Now I think the output file is supposed to look the same as the input file, but the one my program generates doesn't. My program code is as follows:
    import java.util.*;
    import java.io.*;
    import java.lang.*;
    class TextToVector
         public static void main(String [] args) throws IOException
              try
              Vector v = new Vector(); //creates the vector
              String inFile = new String ("C:/My Documents/V3/Data/stocklist.txt ");     //Informs the program of the name, type & location of the source file
              FileOutputStream outFileStream = new FileOutputStream("C:/My Documents/V3/outfile.dat ");     //Instructs the program where to create the output file, what type of file it should be & what to name it
              //the command paths used in these lines can be modified to read/send a file from/to
              //where ever the user wants, the user must also set these identical paths in
              //the "Interpreter Options" for this to work correctly
              ObjectOutputStream objOutStream = new ObjectOutputStream(outFileStream);
              objOutStream.writeObject(v);     //writes the object to the vector
              objOutStream.flush();                     //purges the objOutStream
              outFileStream.close();                     //closes the objOutStream
              catch (IOException e)
              System.out.println("Exception Writing File ");
              System.exit(1);
    public Vector readRecord(String inFile, Vector v) throws IOException
              String inString = new String(" ");
              String D = " ";
         float P = 0.0f;
         float V = 0.0f;
         int Q = 0;
              int count=0;
              BufferedReader buffReader = null;     //enures the BufferedReader is empty before beginning to read the source file
              buffReader = new BufferedReader(new FileReader (inFile));     //used to read & record each line of the source file
    try
         while((inString = buffReader.readLine()) !=null)
         count++;
         if(count==1)
         inString = buffReader.readLine();
         D = inString;
         if(count==2)
         inString = buffReader.readLine();
         P = (Float.valueOf(inString)).floatValue();
         if(count==3)
         inString = buffReader.readLine();
         V = (Float.valueOf(inString)).floatValue();
              if(count==4)
         inString = buffReader.readLine();
         Q = (Integer.valueOf(inString)).intValue();
         if(count==5)
         //System.out.println("Description " + D + " Price " + P + " VATPrice " + V + " Quantity " + Q);
         StockItem record = new StockItem(D,P,V,Q);
         v.add (record);
         count=0;
    buffReader.close();
    return v;
    catch(IOException e)
    System.out.println(e.toString());
    return v;
    class StockItem implements Serializable
         private String D;
    private float P;
    private float V;
    private int Q;
         StockItem()
         D = " ";
         P = 0.0f;
         V = 0.0f;
         Q = 0;
         StockItem(String Description, float Price, float VATPrice, int Quantity)
         D = Description;
         P = Price;
         V = VATPrice;
         Q = Quantity;
         public String getDescription()
    return D;
    public float getPriceValue()
    return P;
    public float getVATPriceValue()
    return V;
    public int getQuantityValue()
    return Q;
    Can anyone see anything wrong with this? I'd appreciate any suggestions. Thanks.

  • Air Output Question

    I've been playing around with the free trial of RH8 and I
    have some questions regarding the Air output:
    1. If I add a comment, is there a way I can edit it? I tried,
    but so far haven't been able to do so (I would think that I would
    in case there's a typo or something).
    2. Also, is there a way to show which topic a comment applies
    to. Say I decide to set my comments to "Show All," is there a way
    to see what topics each comment applies to?

    Hi Moranis,
    To answer your queries.
    1. Edit is not there. Currently you can add and delete
    comments.
    2. You can sort the comments by topic after you do show all.
    sharona27lily,
    Let me answer your queries.
    Comments by different users are managed on a shared network
    location. End user whoever is giving comments on the AIR output
    doesn't need anything else. In fact RH8 is needed for producing AIR
    output. Commenting will be done without RH8.
    Let me know if you have more queries.
    Vivek.
    Adobe Systems.

  • Tomcat output question

    hi all
    i think this is a simple (and quite stupid) question, but i don't know ho to solve my problem
    i work on two computer (windows 2k), one where i have tomcat installed not like a service, the other with tomcat installed like a service.
    when i write some servlet or jsp page i use to debug it through System.out.println() method to get the output. when i work on the 1st machine i can read the output directly by the prompt, but the problem arrives on the other machine, when no prompt is opened running tomcat.
    is there a way (log file and so on) to get my application's output running under tomcat? the version is 4.1.18
    thanx a lot
    sandro

    Hi. the solution is quite simple.
    Go to your TomcatHome (where you installed it) and look for a folder called log. To check your System.out.println stuff on your tomcat as windows service just take a look to an archive called stdout.txt or something similar (can't remember the exact name)
    DFF

  • DOM output question

    Hi all,
    I have the following question about writing a DOM (Document) out to a stream. But first.. a bit of background on the framework...
    I have the following classes:
    Listener.class -> sends InputStream to -> Parser.class
    Parser.class -> sends DOM (Document) to -> Formatter.class
    What I then want is the
    Formatter.class -> send a stream -> Writer.class
    Writer.class to do its funky stuff.
    The problem I am having is trying to work out what input/output stream combination to use and what XML helpers to do it.
    I am using Java 1.4 and Xerxes2 classes only...
    So the question is:
    1. What should the Formatter.class pass to the Writer.class?
    2. What should I use to create the stream?
    Ideally I want an InputStream passed to the Writer.class
    Cheers,
    Alex.

    I don't quite follow your framework, but then I didn't try too hard because if you want to get data from a DOM into a file or some other output, you use a javax.xml.transform.Transformer. Approximately like this:Transformer t = TransformerFactory.newTransformer();
    t.transform(new DOMSource(someNode), new StreamResult(someWriter));

  • HD to SD final output question

    Hello Forum,
    I have just completed Jeff Bellune’s excellent HD to SD tutorial called “hd2sd - High Quality Scaling From HD to SD”. For weeks I have been trying in vain to downscale my 1920 x1080i AVI-8bit YUV HD footage for output to PAL DVD without much luck, resulting in terrible output quality, but for anyone experiencing the same problem I would like to let you know that the quality of the conversion with Jeff's method is absolutely amazing. http://bellunevideo.com/tutlist.php Thanks for the post Jeff you are a star!
    But I have one small problem. In the final process when using VirtualDub to open your AviSynth script file and then saving it out to a Lagarith AVI file.
    The process works as described with great results however the final output file is exported at an output size of 720x576 - 1.250 (5:4) aspect ratio. (Size data extracted from GSpot) The problem is when I import this into Encore the footage does not fill the whole screen.
    My to the forum question is does anyone know how I can change the output file size in VirtualDub to a (16.9) aspect ratio so that when imported into Encore the footage takes up the whole screen in a (16:9) widescreen format.
    Can VirtualDub be used to do this and if so does anyone know the exact settings to be used?
    Any assistance with this will help me greatly.
    Thanks in advance.
    Rex.

    Thank you Jeff
    You are a brilliant person, thank you very much as you solved my long standing and draining problem in one answer!
    The output result is second to none as a matter of fact I can’t even tell the difference from the original footage!
    Everything is fine now but while the Big man himself is about I wonder if you could possibly answer these 3 questions?
    1) I am using Premiere CS5.5, Should I have used the Maximum render quality setting when exporting my MPEG2 file from premiere (this wasn’t mentioned in the CS4 tutorial)
    2).My original source footage used in my test project is 1920 X1080i (1.0) 50Hz Pal - and I have exported 3 versions, one Lower field first, one upper field first and one Progressive no fields. Using the Interpret Footage techniques from your advice I created 3 separate Encore projects in each field setting the thing is I can’t tell the difference between them in my test DVDs. (Q. which field setting do you recommend me use for my final project output to Pal DVD (Note Encore Pal Project settings make reference to Lower field first).
    2) Could I re-import the exported VirtualDub avi file back into premiere. Then edit my project adding effects and titles and when the project is complete export the finished project into Encore either by uncompressed AVI or MPEG2-DVD?. If this is possible will I lose much quality on export? And would you know how I could Interpret the Footage to PAL Widescreen (1.4587).in premiere? (I ask this as it would be much easier to edit with these smaller files as my original files are very resource consuming)
    Again I would be most grateful if you have some advice on these questions as I am a newbie to HD editing but embracing the challenge.
    Thanks again.
    Rex.

  • Class Access & Package Question - Please Help

    Hi,
    I have a question regarding how to access a class in an abnormal directory structure.
    Here's the type of directory structures:
    -Documenter
    -com
    -xyz
    -business
    -AppBase
    -com
    -xyz
    -util
    I have a class called Hash that is in the util directory and I want to access it from a class in the business directory. How can I do that? Any help would be appreciated.

    Thanks, I should have mentioned that WebApp is the same parent directory for the Documenter & AppBase directories:
    -c:\WebApp
    -Documenter
    -com
    -xyz
    -business
    -c:\WebApp
    -AppBase
    -com
    -xyz
    -util
    Can I still just make sure the that the classpath contains the above directories? Thanks in advance.

  • QUICKTIME OUTPUT QUESTIONS (4 dumb ones but I don't know)

    I need to output my project file as an uncompressed 4.2.2. 10 bit SD quicktime of my 89 minute edit (using that to transfer to digibeta at an outside studio). I'm on fcstudio 2.
    Here is the dumbness...
    As I'm going to take it to a transfer place where I notice the people working go blank if you mention color space, bit rate, up-convert issues...should I in advance include on my quicktime I bring them:
    1. the 1.85 matte output on picture
    this is a 4:3 sd dv sourced picture. Outputting the file is double the memory and I've had issues nesting to output in order to matte with my memory when I output..."out of memory" when memory seems to be there is an issue on the apple boards and seems to come up sometimes, sometimes not ..but I don't want to render my file TWICE in order to have a file with a matte on nor do I want someone else to render the file again with a matte on it.
    2. bars and tones
    How many seconds MINIMUM do I need of them anyway?
    And if I'm going to BOTHER reusing this output to create an mpeg 2 file (or should I not bother and just use a quicktimes settings self contained output for the mpeg 2?) is this ANOTHER reason to NOT put on the bars and tones? Must I should just be making a bunch of different outputs?
    3. a countdown with tones or click
    Does final cut have choices of countdowns? I don't see it in the fcp6 effects choices am I not looking in the right place? (I'll check the manual)
    4. Is there a source for film fbi warning logos without being forced to go somewhere to author a dvd because they have it? anyone have a website to get this off of?
    5. Does it matter if I use the quicktime settings as is and have my settings on my project show the compressor as uncompressed 10 bit or should i just skip exporting it to quicktime settings and instead just go right to compressor?
    6. If I'm going to be using another compression to transfer to mpeg2s down the road, do I need to bother including chapter markers on the output I'm using to transfer because after that goes on digibeta, the digibeta is going to be upresed to hdsr as a widescreen then downconverted back to sd as one of the formats.
    Thanks

    To be honoust: I do not understand all your questions.
    But the main question here is I think:
    How is this outside studio putting the film to Digibeta.
    If they are using Final Cut Pro for that, you could setup (a copy of) your timeline as 10-bit Uncompressed. And give that to them, AS WELL AS ALL YOUR FOOTAGE. So this implies that your project needs to be well organised and all on the removable drive your going to take with you.
    If not, there are other ways.
    Making a 10 bit timeline and export with current settings might also help.
    Or applying the matte can be done different than nesting for instance.
    You can create a matte in Photoshop for instance. Or download my free letterboxer Genterator plugin at http://www.lasserij.nl/fcp or use the one of Andy Mees. It makes it possible to render parts to prevent your macjine running out of memory.
    Your MPEG 2 questions are a little vague to me. As well as "film fbi warning logos". What are those?
    About bars and tones. Depends on where you live and who is going to broadcast your film. Every TV station can provide you with their 'delivery-specs' (specifications). films usually start 01:00:00:00 or at 10:00:00:00 (I always forget which of them is UK and which is USA; Here in Holland we just use a starting TC of 00:02:00:00, which is very unusual in the rest of the world, I think). But you also need to consider the loudness of the Tone. Is it -12 dB, -14dB, -18dB, -20 dB? And at what level does the mix need to be done (Or is it mixed extarnally?)
    In other words: Find out what you need exactly (again: delivery-specs), before starting to think about how to output.
    Rienk

  • Yamaha DTX522 e-drums output question

    Hi all - I am considering buying a Yamaha DTX522 electronic drum kit to record with however i'm confusing myself with actually HOW to do it, given the outputs on the Yamaha module. I am a newbie so please bear me and correct me i'm wrong. I currently have an old Presonus firewire FireBox (they don't even make these anymore) interface, and Logic Express on a Mac Mini. I understand i can either record by using the Audio Outs (1/4") of the yamaha module, into the Firebox. Doing it this way i'd have to be happy with all the settings/sounds on the yamaha module and it would be recorded as one track. However if i wanted more control over each of the drum pads (sounds, volume, etc) and track each drum pad indivudually, i could use MIDI out from the Yamaha module, into the MIDI IN on the Firebox and track through Logic Express using some sort of drum VST. Is this correct?
    My question is regarding the outputs on the Yamaha module. I see it has the regular Audio Outs, however i'm not sure what "USB TO HOST" is. I don't see MIDI OUT. Does anyone know what USB TO HOST does? I've asked suppliers and they don't really give a clear answer. My main goal is to be able to record each drum pad individually (like using MIDI out to the Firebox to Logic). Would i be able to do the same thing using this USB TO HOST output? I don't understand how i would even connect a USB cable to the Firebox if that's what I should do and if that allows individual tracking at all. Thanks!!!!

    Many thanks for the reply.
    Currently all pads work correctly apart from the kick and the snare. The snare for example has no audio assigned to it, if I was to transpose wouldn't the other parts of the drum kit then match up incorrectly? I also want to have the correct setup when recording, rather than just at the playback stage so I can hear exactly what is being recorded.
    I'm basically looking for some step-by-step instructions that I can try in order to fix it, I used to understand logic a lot better but after not using it for years I'm back to trial and error with things.

  • Variable accessibility: newbie question

    My next newbie question:
    The following two classes are in two separate files in the same a folder testClass2:
    package JavaDemos.testClass2;
    import java.awt.*;
    public class Sketcher {
        static SketchFrame window;
        static int widthXXX;
        public static int getwidthXXX() {
            return widthXXX;
        public static void main(String[] args) {
            window = new SketchFrame("Sketcher");
            widthXXX=1000;
            System.out.println("output: width = " + widthXXX);
            window.setVisible(true);
            window.specialReport();
    package JavaDemos.testClass2;
    import javax.swing.*;
    public class SketchFrame extends JFrame {
        public SketchFrame(String title) {
            setTitle(title);
            setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
        public void specialReport(){
            System.out.println("number " + widthXXX);
            //     System.out.println("number " + Sketcher.getwidthXXX());
    }They don't compile.
    I get the following error message:
    JavaDemos/testClass2/SketchFrame.java [23:1] cannot resolve symbol
    symbol : variable widthXXX
    location: class JavaDemos.testClass2.SketchFrame
    System.out.println("number " + widthXXX);
    ^
    1 error
    Why isn't widthXXX directly accessible from SketchFrame?
    Thank you again in advance for any help.

    Why isn't widthXXX directly accessible from
    SketchFrame?Because it's a class variable of another class. You have to refer to it as Sketcher.widthXXX.

  • Java visit microsoft access database question

    I want to visit microsoft access database,like follows:
    String dirverClass="sun.jdbc.odbc.JdbcOdbcDriver"; String url="jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)}; DBQ=C:\\apache-tomcat-5.5.27\\webapps\\Test\\db.mdb"; String content=""; try{   Class.forName(dirverClass);   Connection conn=DriverManager.getConnection(url);   Statement stmt = conn.createStatement();   String sql="select * from mytab"; ResultSet rs = stmt.executeQuery(sql); while(rs.next()){       content=rs.getString("zd1"); }
    My question is whether I must install microsoft access database?
    Thanks

    Far as I know and have been able to determine a MS Access ODBC driver comes with every windows install going back to about windows 98. Might be 95 as well.
    I haven't looked at some of the more exotic ones like the 64 bit versions nor the mobile versions.

  • Access Database Question

    I've been searching the web, but haven't seemed to ask the
    right questions or used the correct terminology to return what I
    need.
    I want to make an online db that allows users to login and
    update their information and submit directly for viewing. I have
    about 20 individuals that would likely logon once a month to update
    their information. They probably would have 50-60 pieces of info to
    update.
    What would you suggest me to use for a db and app server that
    integrates well with DW? I have worked extensively with Access, but
    I've never integrated a mdb file with the web. Would my end users
    need to have client license and ODBC setting to update?
    If someone could point me in the right direction I have no
    problem learning, I just am lost as to which road to take.

    "kathycmiller" <[email protected]> wrote in
    message
    news:f3v8j7$269$[email protected]..
    > I want to make an online db that allows users to login
    and update their
    > information and submit directly for viewing. I have
    about 20 individuals
    > that
    > would likely logon once a month to update their
    information. They
    > probably
    > would have 50-60 pieces of info to update.
    If that's all the traffic you'll have, then Access might
    actually work.
    Normally I'd say, "if you care about your data, then DON'T
    use MS Access."
    > What would you suggest me to use for a db and app server
    that integrates
    > well
    > with DW? I have worked extensively with Access, but I've
    never integrated
    > a
    > mdb file with the web. Would my end users need to have
    client license and
    > ODBC
    > setting to update?
    No, none of that would be necessary.
    I would suggest using SQL Server 2005 Express. It's a free
    version of
    Microsoft's excellent flagship DBMS. There are rather
    generous restrictions
    (no more than 25 users simultaneously on a Web site, no more
    that 2GB of
    RAM, no more than 2 processors, no more than 4GB of data), so
    it works well
    for a lot of people who would normally look at Access.
    Throw away what you know about Access, though. It will only
    get you in
    trouble with a real database system.
    > If someone could point me in the right direction I have
    no problem
    > learning, I
    > just am lost as to which road to take.
    Well, check your host. Your host may offer plans that contain
    space on a
    SQL Server 2000 or 2005 installation for a reasonable price.
    If not, then
    you'll have to find another solution as the database must be
    installed on
    the server. If you host your own server, then great. :)

  • Db_stat output question (last column value?)

    Hi,
    Searched everywhere, can not find this mentioned anywhere. What are the meanings of the columns in the db_stat -C output, for example:
    Locks grouped by lockers:
    Locker Mode Count Status \--------------- Object \------------
    1 dd= 0 locks held 2 write locks 0 pid/thread 20910/1121282384
    1 READ 1 HELD 840055011:840055011 handle 2
    1 READ 1 HELD 840055011:840055011 handle 0
    4 dd= 0 locks held 0 write locks 0 pid/thread 20910/1121282384
    5 dd= 0 locks held 2 write locks 0 pid/thread 20910/1121282384
    5 READ 1 HELD 840055038:840055038 handle 2
    5 READ 1 HELD 840055038:840055038 handle 0
    I take this to indicate:
    Locker 1 has two READ locks on 840055011, which is an open handle
    Locker 4 had been declared, but is now empty, awaiting its call to duty
    Locker 5 has two READ locks on 840055038, again, an open handle
    The pid and thread information are self-describing I believe.
    My questions are, what would the difference be between the two different READ locks in, say, locker 1, one line ends w/ 2, the other w/ 0. Is this a problem in my code, could I possibly have opened the same handle twice?
    Additionally, I know the database handle is being named 840055011 but is listed as "840055011:840055011", is this expected, or again, might I have an issue. I'm fairly sure this is simply naming and probably arbitrary.
    If there is a source for the db_stat output that I have missed, by all means, please let me know, I've tried my best to RTFM, but couldn't find many M's.
    FYI: transactional environment using the Java binding (not JE)
    Thank you

    Hi,
    brianmckenna wrote:
    Searched everywhere, can not find this mentioned anywhere. What are the meanings of the columns in the db_stat -C output...I think this should answer your questions:
    Deadlock debugging - http://www.oracle.com/technology/documentation/berkeley-db/db/programmer_reference/lock_deaddbg.html
    Thanks,
    Bogdan Coman

Maybe you are looking for