Save weblog with source code

Hi,
Does anyone an easy way of downloading weblogs with source codes?
If I select all/copy&paste into Microsoft Word 2000 (SP3), the source codes get this "nice" frame, where they are scrollable. When I save it and open it again, the source code is not scrollable, so I can only diplay the part of it:-(
Is there a way of avoid it from my side?
I know from the composer side it can be done, as foir example Sergei did in his weblog:
/people/sergey.korolev/blog/2005/03/14/the-time-for-me-to-have-a-badi-of-my-own
Or is it planned to change this annoying scrollable code frame?
Thanks,
Peter

Printing of Weblogs
Take a look at that thread for some possible help.
As for the "annoying scrollable code frame" well we've been doing it for awhile now and nobody has been complaining too loudly.
If the thought of everyone is to be rid of the textarea then I suppose I wouldn't have a problem using the styles instead.

Similar Messages

  • -- On-save RPT file, source code is emptied --

    Dear,
    I have converted a C# project to the latest CR2010 for VS 2010
    I have 1 RPT file and each time I want to save it, the source code (behind) is emptied.
    For example, my report named by 'crpPV.rpt' has a code-behind C# file crpPV.cs.  That .cs file is emptied when I save the rpt file in Visual Studio 2010.
    This behaviour only happens for this certain rpt-file in my project. For all other RPT-files in the same project, I don't have any problems (with editing/running).
    Can someone help me locate the issue with this report?
    When I try to run the application and show the report, the application crashes ( could not load the report...)
    For all other reports, everything works well. 
    Can anyone help me with this?
    Thank you in advance!
    Best regards,
    Jens

    Can you answer my last question? How do you load the .rpt file in code?
    Are you using it as a ReportDocument or as a strongly-typed report?
    ReportDocument Code
    string filename = "c:\folder\myreport.rpt"
    ReportDocument boReportDocument = new ReportDocument();
    boReportDocument.Load(filename);
    Strongly Typed Report
    MyReportName boReport = new MyReportName();

  • Help With Source Code

    Heya,
    I have a small problem with my source code and I can't seem to figure out where the problem is.
    Description of problem:
    String getTracks(String artist) in class TrackList displays the tracks in an album in numerical order. For instance:
    The tracks are:
    1. xxxxxxxxxx
    2. xxxxxxxxxx
    3. xxxxxxxxxx
    4.
    The problem is, an additional number would appear after all the tracks have been displayed. In this case, 3 tracks are displayed and a redundant number (4.) appears below. And if there are 4 tracks to be displayed, a (5.) would appear and so on. Does anybody know where the source of the problem is?
    My source code for class TrackList is as follows:
    import java.util.ArrayList;
    public class TrackList
    private ArrayList trackList;
    public TrackList()
    trackList = new ArrayList();
    public void add(String artist, String album, String tracks)
    trackList.add(new Artist(artist,album,tracks));
    public void remove(String artist)
    for (int n = 0 ; n < trackList.size() ; n++)
    Artist a = (Artist)trackList.get(n);
    if (a.getArtist().toLowerCase().equals(artist.toLowerCase()))
    trackList.remove(n);
    public String getAlbum(String artist)
    for (int n = 0 ; n < trackList.size() ; n++)
    Artist a = (Artist)trackList.get(n);
    if (a.getArtist().toLowerCase().equals(artist.toLowerCase()))
    return a.getAlbum();
    return "";
    public String getTracks(String artist)
    String tracksToReturn = "";
    int trackNumber = 1;
    for (int n = 0 ; n < trackList.size() ; n++)
    Artist a = (Artist)trackList.get(n);
    if (a.getArtist().toLowerCase().equals(artist.toLowerCase()))
    tracksToReturn += trackNumber + ". " + a.getTracks() + "\n";
    trackNumber++;
    return tracksToReturn;
    public void writeToFile(FileOutput file)
    for (int n = 0 ; n < trackList.size() ; n++)
    Artist a = (Artist)trackList.get(n);
    file.writeString(a.getArtist());
    file.writeNewline();
    file.writeString(a.getAlbum());
    file.writeNewline();
    public void readFromFile(FileInput file)
    String artist = file.readString();
    String album = file.readString();
    String tracks = file.readString();
    while (!file.eof())
    add(artist,album,tracks);
    artist = file.readString();
    album = file.readString();
    tracks = file.readString();
    Not sure if this other class has an impact on this. It's class Catalogue. Look at void TrackList(String artist).
    public class Catalogue
    private KeyboardInput in;
    private TrackList trackList;
    public Catalogue()
    in = new KeyboardInput();
    trackList = new TrackList();
    public void go()
    boolean quit = false;
    while (!quit)
    System.out.println("\nCatalogue");
    System.out.println("1. Search artist, album and tracks");
    System.out.println("2. Add new artist, album and tracks");
    System.out.println("3. Remove artist, album and tracks");
    System.out.println("4. Save entry to a file");
    System.out.println("5. Add an entry from a file");
    System.out.println("6. Quit");
    System.out.print("\nSelect an option from the menu: ");
    int option = in.readInteger();
    switch (option)
    case 1 :
    searchForEntry();
    break;
    case 2 :
    addEntry();
    break;
    case 3 :
    removeEntry();
    break;
    case 4 :
    saveList();
    break;
    case 5 :
    loadList();
    break;
    case 6 :
    quit = true;
    break;
    default :
    System.out.println("\nThat option is invalid. Please try again.");
    public void addEntry()
    System.out.println("\nAdd entry to catalogue");
    System.out.print("Enter the artist's name: ");
    String artist = in.readString();
    System.out.print("Enter the artist's album: ");
    String album = in.readString();
    System.out.println("Enter the track names and enter when done: ");
    int trackNumber = 1;
    String tracks;
    do
    System.out.print("Enter track " + trackNumber + ": ");
    tracks = in.readString();
    trackList.add(artist,album,tracks);
    trackNumber++;
    while (!tracks.equals(""));
    public void removeEntry()
    System.out.println("\nRemove entry from catalogue");
    System.out.print("Enter the artist's name: ");
    String artist = in.readString();
    trackList.remove(artist);
    public void searchForEntry()
    System.out.println("\nSearch catalogue");
    System.out.print("Enter the artist's name: ");
    String artist = in.readString();
    String album = trackList.getAlbum(artist);
    if (album.equals(""))
    System.out.println("\nThere were no matches for your search. Please try again.");
    else
    System.out.println("The album is: " + album);
    boolean quit = false;
    while (!quit)
    System.out.println("\nSelect an option: ");
    System.out.println("1. Display the tracks for this album");
    System.out.println("2. Back");
    int option = in.readInteger();
    switch (option)
    case 1 :
    trackList(artist);
    break;
    case 2 :
    quit = true;
    break;
    default :
    System.out.println("\nThat option is invalid. Please try again.");
    public void trackList(String artist)
    String tracks = trackList.getTracks(artist);
    if (tracks.equals(""))
    System.out.println("\nThere were no tracks entered for this album.");
    else
    System.out.println("\nThe tracks are:");
    System.out.println(tracks);
    public void saveList()
    System.out.println("\nSave catalogue to a file");
    System.out.print("Enter the file name: ");
    String fileName = in.readString();
    FileOutput out = new FileOutput(fileName);
    trackList.writeToFile(out);
    out.close();
    public void loadList()
    System.out.println("\nAppend catalogue from a file");
    System.out.print("Enter the file name: ");
    String fileName = in.readString();
    FileInput fileIn = new FileInput(fileName);
    trackList.readFromFile(fileIn);
    fileIn.close();
    public static void main(String[] args)
    Catalogue catalogue = new Catalogue();
    catalogue.go();
    Thank you very much indeed!
    Sincerely,
    e360

    This is not about JavaHelp technology. Please use another forum, thank you.
    /M

  • Siri responding with source code :-)

    Hi!
    Yesterday I asked Siri about the weather forecast for my city and it revealed some of its source code.
    One more argument I have for my fellow developers not to use the "question mark" notation for IFs because it's confusing and very often it does not what it was supposed to do. ;-)

    Printing of Weblogs
    Take a look at that thread for some possible help.
    As for the "annoying scrollable code frame" well we've been doing it for awhile now and nobody has been complaining too loudly.
    If the thought of everyone is to be rid of the textarea then I suppose I wouldn't have a problem using the styles instead.

  • Eclipse - debug step is not synchronise with source code.

    Hi,
    I have an web application witch run on tomcat, when Idebug the application, the debug steps are not synchronize with the source code. Same thing when I change the code , after making the jar file and putting it in the WEB-INF/lib of the web application, the modifications didn't take place. It seem that the old code always remains. I looked at the compile class in the jar file and the modifications have been taken in to account.
    what can cause this kind of behavior ? I relaunch tomcat many times without succes ?
    any help ? thanks a lot.

    Can it be the case that you compile your JAR optimized, i.e. without debug information? Then your classes are also without debug information.
    This sounds very likely as a refresh problem. Be sure that both source files in Eclipse and class files in Tomcat have the same version (e.g. with simple system.out).

  • LoadExternalModule throws error (-7 Unknown file extension) when working with source-code.

    Utility library function LoadExternalModule (admittedly marked as obsolete - but key to one of our older software)
    fails with error code (-7 Unknown file extension.)  in CVI 2012SP1 and 2013 Version 13.0.0(647) on Win7
    The suggested alternative Win32 API GetProcAddress doesn't work with source or obj files (so isn't an alternative at all)
    The Target-Settings to "Enable LoadExternalModule" are already checked.
    Any suggestions ?
    This code-snipped shows the behavior :
    // File "Main.c"
    #include <utility.h>
    int main(void)
    void (*funcPtr) (void);
    int moduleID;
    int status;
    // Library-Function-Error : -7 Unknown file extension.
    moduleID = LoadExternalModule ("Test.c");
    funcPtr = GetExternalModuleAddr (moduleID, "test_function", &status);
    (*funcPtr) ();
    return 0;
    // File "Test.c"
    void test_function(void)

    Hi,
    Thanks for teh inf regarding the LoadExternal Module,
    Using the LoadExternalmodule as you mentionned requires using a .obj file but this lead me to an issue getting a Control value from an .obj file called from a dll
    When using the LoadExternalModule function in CVI 2013, we can no longer use a .c file. Instead we have to use an .obj file.
    My issue is that' impossible for me to get a control value from an .iur managed by the .obj witchi is called by a dll. 
    Otherwise it's impossible for me to get the control vale when calling the .obj from a dll.
    Any suggestions Amigos
    Thanks

  • WebLogic Server Source code???

    Hello all,
    I want to investigate how RequestManager works and I cannot find any location where I can download the source code. Can you help me?
    I'm interested what happens if an "OutOfMemoryError: cannot create native thread" is thrown from the createThreadAndExecute() method. Does the thread in which RequestManager die? Is the server able to handle any requests after this error? How weblogic handles these kind of errors?
    Thanks in advance,
    Flo

    Weblogic is not open sourced.So there is no way you will get the source code. The best thing to do in this case would be to contact the support . If you would like to do some in-depth investigation you can try some decompiler tools on the jar files in server/lib.

  • Parse Timestamp with source code

    Somebody help me, how can i convert Date to Timestamp. i want to parse
    the Timestamp. but the parse method only return Date.
    Please help.
    Here are the source code
    Date mydate;
    String myString;
    Timestamp myTime = new Timestamp(mydate.getTime());
    myString = DateFormat.getDateTimeInstance().format(myTime);
    try {
    DateFormat df = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.SHORT,Locale.US);
    myTime = df.parse(myString);
    catch (ParseException e) {}
    best regards
    Nau

    I little chnage your example
    String myString;
    java.util.Date mydate = new java.util.Date();
    Timestamp myTime = new Timestamp(mydate.getTime());
    System.out.println("before " + myTime);
    myString = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.FULL, Locale.US).format(myTime);
    try {
    DateFormat df = DateFormat.getDateTimeInstance(DateFormat.SHORT, DateFormat.FULL, Locale.US);
    myTime.setTime(df.parse(myString).getTime());
    System.out.println("after " + myTime);
    } catch (ParseException e) {
    e.printStackTrace();
    or yous form
    String myString;
    java.util.Date mydate = new java.util.Date();
    Timestamp myTime = new Timestamp(mydate.getTime());
    System.out.println("before " + myTime);
    myString = myTime.toString();
    myTime = Timestamp.valueOf(myString);
    System.out.println("after " + myTime);

  • Make PDF with source code area

    Hi, would it be possible to make a PDF is copy-able source code areas? In these areas I would like to keep syntax highlighting and other things like the font preserved? Would InDesign be the place to accomplish this creation? Thanks

    Certainly a PDF can have any document layout, font, colour you want.  You'd use whatever app you'd normally use to prepare this sort of document. InDesign perhaps, but Word is popular too.
    WARNING though: if you are planning to disribute code for people to copy/paste/reuse, then PDF IS NOT THE WAY TO DO IT. Include source samples as well as the book pages.

  • How to separate "random" code into their own place. (with source code)

    Hi, i can't seem to figure out how use random to separate the letters and how you would select the individual code from the menu and display it. I know a major part of the code is missing, so any help will be greatly appreciated.
    Here are my instructions.
    thanks
    1.     Allow the user to select the number of characters in the password (at least up to 14).
    2.     Create a randomly generated password from the character sets selected by the user.
    3.     Check the strength of three passwords of different length from each menu option with the password checker. Tabulate the strength of your 12 passwords (see instructions below).
    4.     Re-read the Strong Passwords: How to Create and Use Them article and write a short paragraph giving your opinion about the effectiveness of randomly generated passwords vs. memorable passwords (see instructions below).
    5.     Follow the 3 steps in the article to create two strong, memorable passwords and test them with the password checker. Report your memorable passwords, what they stand for, and their strength (see instructions below).
    I also have to select from the menu that I types in the code.
    * Write a description of class Password here.
    * @author (your name)
    * @version (a version number or a date)
    import java.util.Scanner;
    import java.util.Random;
    public class Password
        public static void main(String[] args)
            Scanner in = new Scanner(System.in);
            Random randomGenerator = new Random();
            int randomInt = randomGenerator.nextInt(26);
            int randomInt1 = randomGenerator.nextInt(13);
            String[] letters= {"A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z"};
            String[] lettersLower= {"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z",};
            String[] lettersP= {"!","#","%","@","$","&","*","-","+","=","?","<",">",};
            System.out.println("                 Password Generation Menu");
            System.out.println("*************************************************************");
            System.out.println("*   [1] Lowercase Letters                                   *");
            System.out.println("*   [2] Lowercase & Uppercase Letters                       *");
            System.out.println("*   [3] Lowercase, Uppercase, and Numbers                   *");
            System.out.println("*   [4] Lowercase, Uppercase, Numbers, and Punctuation      *");
            System.out.println("*   [5] Quit                                                *");
            System.out.println("*************************************************************");
            System.out.print("Enter Selection (1-5): ");
            String first = in.next();
            System.out.print("");
            System.out.print("Password Length (1-14): ");
            int second = in.nextInt();
            System.out.print("");
            System.out.print("Password: ");
            for (int j = 0; j < second; j++) 
                System.out.print(lettersLower[randomInt]);
             int randNum = 0;
             Random randNumList = new Random();
        }

    I suggest you start by creating a function which takes all the parameters for generating a password and returns a randomly generated password. Then create a method for each of the other key functions such as checking the password strength.

  • File transfer via socket problem (with source code)

    I have a problem with this simple client/server filetransfer program. When I run it, only half the file is transfered via the net? Can someone point out to me why this is happening?
    Client:
    import java.net.*;
    import java.io.*;
         public class Client {
         public static void main(String[] args) {
              // IPadressen til server
              String host = "127.0.0.1";
              int port = 4545;
              //Lager streams
              BufferedInputStream fileIn = null;
              BufferedOutputStream out = null;
              // Henter filen vi vil sende over sockets
              File file = new File("c:\\temp\\fileiwanttosend.jpg");
    // Sjekker om filen fins
              if (!file.exists()) {
              System.out.println("File doesn't exist");
              System.exit(0);
              try{
              // Lager ny InputStream
              fileIn = new BufferedInputStream(new FileInputStream(file));
              }catch(IOException eee) {System.out.println("Problem, kunne ikke lage fil"); }
              try{
              // Lager InetAddress
              InetAddress adressen = InetAddress.getByName(host);
              try{
              System.out.println("- Lager Socket..........");
              // �pner socket
              Socket s = new Socket(adressen, port);
              System.out.println("- Socket klar.........");
              // Setter outputstream til socket
              out = new BufferedOutputStream(s.getOutputStream());
              // Leser buffer inn i tabell
              byte[] buffer = new byte[1024];
              int numRead;
              while( (numRead = fileIn.read(buffer)) >= 0) {
              // Skriver bytes til OutputStream fra 0 til totalt antall bytes
              System.out.println("Copies "+fileIn.read(buffer)+" bytes");
              out.write(buffer, 0, numRead);
              // Flush - sender fil
              out.flush();
              // Lukker OutputStream
              out.close();
              // Lukker InputStrean
              fileIn.close();
              // Lukker Socket
              s.close();
              System.out.println("File is sent to: "+host);
              catch (IOException e) {
              }catch(UnknownHostException e) {
              System.err.println(e);
    Server:
    import java.net.*;
    import java.io.*;
    public class Server {
         public static void main(String[] args) {
    // Portnummer m� v�re det samme p� b�de klient og server
    int port = 4545;
         try{
              // Lager en ServerSocket
              ServerSocket server = new ServerSocket(port);
              // Lager to socketforbindelser
              Socket forbindelse1 = null;
              Socket forbindelse2 = null;
         while (true) {
         try{
              forbindelse1 = server.accept();
              System.out.println("Server accepts");
              BufferedInputStream inn = new BufferedInputStream(forbindelse1.getInputStream());
              BufferedOutputStream ut = new BufferedOutputStream(new FileOutputStream(new File("c:\\temp\\file.jpg")));
              byte[] buff = new byte[1024];
              int readMe;
              while( (readMe = inn.read(buff)) >= 0) {
              // Skriver filen til disken ut fra input stream
              ut.write(buff, 0, readMe);
              // Lukker ServerSocket
              forbindelse1.close();
              // Lukker InputStream
              inn.close();
              // flush - sender data ut p� nettet
              ut.flush();
              // Lukker OutputStream
              ut.close();
              System.out.println("File received");
              }catch(IOException e) {System.out.println("En feil har skjedd: " + e.getMessage());}
              finally {
                   try {
                   if (forbindelse1 != null) forbindelse1.close();
                   }catch(IOException e) {}
    }catch(IOException e) {
    System.err.println(e);
    }

    Hi!!
    The problem is at this line:
    System.out.println("Copies "+fileIn.read(buffer)+" bytes");
    Just comment out this line of code and see the difference. This line of code causes another "read" statement to be executed, but you are writing only the data read from the first read statement which causes approximately half the file to be send to the server.

  • Excite Bike with source code

    I posted the game about a month ago and said I would probably eventually post the source along with it, but the server it was hosted on has been down...
    so for anybody thats interested here is the link to the "website" (excuse the horrible html, it wasn't something we concentrated on =p), just look for the links at the bottom of the page for download
    http://www.hydrous.net/~gt/excite/promotional.htm

    I know nothing about XML, and I mean nothing, But I managed to change the XML attributes in the players directory to get what I want.
    I also noticed that if you buy the towtruck for 50,000 you can re-sell it for 70,000.
    Are all of these things intended??
    It is a really nice game, keep it up.
    Last time you also mention (if I remember correctly) that this was for a university degree. How did you do??

  • SQL Developer 3 EA2 - Problem with formating plsql source code

    I'm using sql developer 3 ea2. I have played with source code formating.
    I have 2 issues with formating in source code editor.
    I have a plsql string like the following extending over several lines.
    s VARCHAR2(2000) := 'SELECT
    col1, col2, col3
    FROM table
    WHERE col4 = :var';The result after apply "format" to my sourcecode ist:
    s VARCHAR2(2000) := 'SELECT
    col1, col2, col3
    FROM table
    WHERE col4 = :var';The second is that sql developer ist camelizing the previous line if I type a whitespace in plsql sourcecode.
    How to switch that off??
    The last issue is realy annoying!
    Christian

    I am having exactly the same problem. Every time you use Format Ctrl/F7 it adds new line feeds. Code starts off as:
    command := '
    select account_status, default_tablespace, temporary_tablespace,
    to_char(created,"YYYY-MON-DD HH24:MI:SS"), profile
    from Dba_Users@@
    where username=:1' ;
    First Format Ctrl/F7 get an extra blank line:
    command := '
    select account_status, default_tablespace, temporary_tablespace,
    to_char(created,"YYYY-MON-DD HH24:MI:SS"), profile
    from Dba_Users@@
    where username=:1' ;
    Then second Format Ctrl/F7, get THREE extra lines!!! It goes exponential!!
    command := '
    select account_status, default_tablespace, temporary_tablespace,
    to_char(created,"YYYY-MON-DD HH24:MI:SS"), profile
    from Dba_Users@@
    where username=:1' ;
    So far I've only really encountered the problem with dynamic SQL, which ignores the extra line feeds.
    i am pretty sure this is a long standing SqlDeveloper Format problem, going back to V2.

  • I need C source code to capture with NI1424. Camera Megaplus ES310T

    There is no problem using Labview capturing frames. But i need to capture frames using C Builder. I would be greatfull if you supply me with source code or dll.

    If you still need it, you can download NI-IMAQ 2.5.1 from the following link: All Versions - Vision.
    I ran the installer for NI-IMAQ 2.5.1, and Borland C++ support is one of the options that shows up in the feature selection step of the installation. In order to program in Borland, make sure this option is selected. I also noticed that no Borland example programs are included with the driver.
    Your best option is to install support for Microsoft Visual C++ as well, and to take a look at how those examples were written. They should show up in the "sample" directory once installed. Unfortunately, Borland
    is not supported by the current version of IMAQ. I searched for other examples online, but did not find any.
    The library file for Borland can be found in the "C:\Program Files\National Instruments\NI-IMAQ\Lib\Borland" directory. This file will be needed when programming with Borland. Please refer to the NI-IMAQ User Manual and NI-IMAQ Function Reference for more information.
    Best Regards,
    Jesse D.
    Applications Engineer
    National Instruments

  • How can I make my source code with jar file?

    I use JDK1.6.0. I can open a class file from rt.jar and get its source code. Does this because open source JDK? I wander how I can make my jar file with source code.

    CeciNEstPasUnProgrammeur wrote:
    youhaodiyi wrote:
    But why I can read source code from rt.jar? I found there are only class files in it.I say it's highly likely that you can't and your IDE's settings rather automatically refer to the src.zip file in the JDK's directory.I see. That's true. I use eclipse as the source code reader. It may refer to the source code zip file automatically.
    Thanks all.

Maybe you are looking for