Can anyone comment on this? Since it's nowhere documented yet, i wonder if I had set the params correctly, or possibly an API defect?   -Yu

Chen, Yu wrote:
Christian or anyone,

I assume that those properties in your draft doc need to be feed into FilterData, and they are specific to export filter "impress_html_Export", is my understanding correct I had tried with the following code, but the result is just an empty html file, do you see anything obviously wrong (or defect in API)??    Thanks, Yu

       PropertyValue[] exportProps = new PropertyValue[3];
        exportProps[ 0 ] = new PropertyValue();
        exportProps[ 0 ].Name = "Overwrite";
        exportProps[ 0 ].Value = Boolean.TRUE;
        exportProps[ 1 ] = new PropertyValue();
        exportProps[ 1 ].Name = "FilterName";
        exportProps[ 1 ].Value = exportFilterName;      
               
        // for WebCast exporting...             
        PropertyValue[] dataProps = new PropertyValue[6];
        dataProps[0] = new PropertyValue();
        dataProps[0].Name = "PublishMode";
        dataProps[0].Value = new Long(2);
        dataProps[1] = new PropertyValue();
        dataProps[1].Name = "Format";
        dataProps[1].Value = new Long(1);      
        dataProps[2] = new PropertyValue();
        dataProps[2].Name = "IndexURL";
        dataProps[2].Value = "mpc.html";
        dataProps[3] = new PropertyValue();
        dataProps[3].Name = "WebCastCGIURL";
        dataProps[3].Value = "mpc-listener.html";
        dataProps[4] = new PropertyValue();
        dataProps[4].Name = "WebCastTargetURL";
        dataProps[4].Value = "mpc-presenter.html";
        dataProps[5] = new PropertyValue();
        dataProps[5].Name = "WebCastScriptLanguage";
        dataProps[5].Value = "mpc-perl.pl";

               
        exportProps[2] = new PropertyValue();   
        exportProps[2].Name = "FilterData";
        exportProps[2].Value = dataProps;           
       
        try{
            xComponent = initDocument(fullSourceFilePath, importProps);
            XStorable xStorable = (XStorable) UnoRuntime.queryInterface(XStorable.class, xComponent);
            xStorable.storeToURL(storeURL, exportProps);
            System.out.println("Saved to: " + fullTargetFilePath);
        }catch(IllegalArgumentException e_args) {
            System.out.println("Not of the specified filter type, ignore.");
            e_args.printStackTrace();
            return;
         ....


Christian Lippka wrote:
Hi Yu,

sorry for the late reply. Where working hard on the upcoming beta
release

Chen, Yu wrote:
  
Hello, I am working on a program that automates the HTML/WebCast 
exporting...  Is it achievable??
    
Yes, you can use the html export, please see the documentation in
the sdk on how to use export filters. The name of this export filter
is "impress_html_Export".

  
Now I have the followings from Common.properties,/ for portion  
component.group[Filter].group[HTML].group[Export], /but I don't see any 
filterData parameters on how to configure WebCast exporting.  Any one 
have any insights?  Am I looking into the proper properties files, or is 
webcast exporting even supported yet in SO API?
    

Yes, I'm afraid theire not documentet yet. I have submitted an issue
to myself for this. I have put you on the cc of issue 41395 so you will
be informed on any changes.

Since it make take some time until I fully document all properties,
I made a draft of all available properties, maybe that helps you already.

Regards,
Christian

service ???
{
	/** 	0 html
		1 frames
		2 webcast
		3 kiosk
	*/
	[property] long PublishMode;

	/**
	*/
	[property] string IndexURL;

	/**
		0 gif
		1 jpg
	*/
	[property] long Format;
		
	/**
	*/
	[property] string Compression;

	/**
	*/
	[property] long Width;

	/**
	*/
	[property] long UseButtonSet;

	/**
	*/
	[property] boolean IsExportNotes;

	/**
	*/
	[property] boolean IsExportContentsPage;

	/**
	*/
	[property] string Author;

	/**
	*/
	[property] string EMail;

	/**
	*/
	[property] string HomepageURL;

	/**
	*/
	[property] string UserText;

	/**
	*/
	[property] boolean EnableDownload;

	/**
	*/
	[property] long BackColor;

	/**
	*/
	[property] long TextColor;

	/**
	*/
	[property] long LinkColor;

	/**
	*/
	[property] long VLinkColor;

	/**
	*/
	[property] long ALinkColor;

	/**
	*/
	[property] boolean IsUseDocumentColors;

	/**
	*/
	[property] long KioskSlideDuration;

	/**
	*/
	[property] boolean KioskEndless;

	/**
	*/
	[property] string WebCastCGIURL;

	/**
	*/
	[property] string WebCastTargetURL;

	/**
	*/
	[property] string WebCastScriptLanguage;

};
  

--
.signature.html     All the best,
    Yu
    MySun Portal Development

     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Confucius said, "To attack extremes is harmful indeed."
      Confucius said, "To attack extremes is harmful indeed."

--
.signature.html     All the best,
    Yu
    MySun Portal Development

     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Confucius said, "To attack extremes is harmful indeed."
      Confucius said, "To attack extremes is harmful indeed."

<<image/gif>>

<<inline: od0216.gif>>

Reply via email to