|
Hi,
I'm working with PowerPoint Object Library 12
and I need to check if a file with a "ppt" suffix was created in PP 2003.
The "ppt" itself is not enough to know what I need,
because it is possible that the file was created in PP 2007 and saved as PP 2003 with a PPT suffix.
Thanks,
Ophir
|
|
|
|
|
|
Thank you for the reply!
Any idea how do I get this magic number form a ppt file?
I opened the ppt file in notepad to have a look if there is anything obvious in the beginning of the file, but no luck there.
Thanks
|
|
|
|
|
Voting 1 for a message that helps you will not encourage cp members to help you.
|
|
|
|
|
Sorry,
I'm new to the group.
I Clicked 1 by mistake and then clicked 5 to fix it.
Thanks
|
|
|
|
|
ophirmi wrote: and then clicked 5 to fix it.
Perhaps you didn't as the rating is still 1.
As for powerpoint files, I am not sure if they have magic numbers. You can create several files and see if they have some common header or use google to find information about it.
|
|
|
|
|
Hi all
I have a Parent form with a calendar and a child form with a schedule on it. When i double click on a date it will show me the schedule from inside the parent form. i want it create a tab in the parent form whenever it opens.
Please help
|
|
|
|
|
If your application is using the MDI environment then tabpages may not be what you are looking for (I can't really tell based on the wording of your question).
If, however, you are creating a stanard WinForms application, then you should be able to manually code a TabControl, Adding TabPages to that TabControl and then adding a usercontrol to that TabControl. For information on how to do this, just use a google. If you still have problems after using Google then you can always post back with specific questions.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Please do not post the exact same question in the forums. Especially if it happens on the same day or week of first posting. It just aggravates the forum dwellers.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Look at his record; earlier this month he listed the same question four times. He has been told several times NOT to post more than once.
Blog link to be reinstated at a later date.
|
|
|
|
|
I do recall pointing it out, in a nice manner in the past. Some folks just don't get it.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
There have been so many of them lately I can't keep track. It seems to go in waves. Might have to restart my "list."
Blog link to be reinstated at a later date.
|
|
|
|
|
maybe you can add tab container, and if you create new child like :
FormChild form1 = new FormChild(); // form Child is configured Child form by you
create new tab page too:
TabPage tab1 = new TabPage();
and then attach your new Child form at that page like:
form1.MdiParent = MyParentForm;
form1.Parent = tab1 ;
I try something like this on many tabbed application, but I don't try at calendar like yours.
No one can prevent me to learn something
|
|
|
|
|
Hi!
I'm part-way through making a control that utilises tab to switch between different panels. I have the code working that when the user clicks on a tab at design-time, it switches to the corresponding panel through the override WndProc in the ControlDesigner class.
I have another option though, using the DesignerActionList and DesignerActionListCollection, where I have an "Add tab" option in the Smart-tag.
In design time, it does actually add the tab. But, each tab is linked directly to a custom panel I made that should get added to the form too.
So when I click "Add tab", it invalidates my control so it writes the tab text on the top, but when I run the application it is promptly removed.
I clicked on my custom panel collection to see whether the tab is added to a collection inside the control when "Add tab" is clicked, and it is. But the problem is, it's simply not adding the control to the form's designer code.
public void AddTab()
{
StylusOption STOpt = new StylusOption();
int i = this.dtc.OptionTabs.Count;
while(this.dtc.ParentForm.Controls["StyleOption" + i] != null)
i++;
STOpt.Name = "StyleOption" + i;
this.dtc.ParentForm.Controls.Add(STOpt);
this.dtc.ParentForm.CreateControl();
this.dtc.OptionTabs.Add((StylusOption)this.dtc.ParentForm.Controls[this.dtc.ParentForm.Controls.Count - 1]);
this.dtc.Invalidate();
this.UIScu.HideUI(this.dtc);
}
That's the current code I have. StylusOption is the name of the control i'm trying to add, StylusBar is the control i'm adding it to, and this.dtc is the StylusBar i've set the handler to work with.
In the code, i've attempt to add the control via this.dtc.ParentForm.Controls.Add(STOpt); but even that doesn't work. I can't figure out how to add the StylusOption to the actual form to remember. If anyone can help, i'd appreciate it a lot.
An example of how i'd like it to work is like the TabControl, where if you click Add Tab, it creates a new TabPage in your form so you can edit any details there.
Thanks
modified on Wednesday, October 29, 2008 11:33 AM
|
|
|
|
|
It seems like you might have to manually serialize the objects that get created when the smart tag is utilized. An article that I wrote for CP might be able to help you with regards to full design-time feature support: Targeting Design-Time Events of UserControls[^]. It doesn't cover serializing specifically, but it still may be able to jog your memory with regards to finding a solution.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
I gave it a read through. It did give me a little reminder of somethings I had missed, but unfortunately I can't get it to work :\
Serializing the controls? Hmm, I understand the [Serializable()] ComponentModel, but how to implement it into a declaration from within the ControlDesigner functions I don't know D:
Thanks.
|
|
|
|
|
hi all,
Listview sorting ,with out using "IComparer Class " ,please help me.
|
|
|
|
|
What's wrong with using the IComparer class?
Simon
|
|
|
|
|
His homework assignment specifies to do it another way I presume.
|
|
|
|
|
Yeah, I suspected as much.
Although I'll give him the benefit of the doubt. Maybe he's got a cruel boss. "Write me an XML parser without using anything from the System.Xml namespace, or Strings, or a computer"
Simon
|
|
|
|
|
hi,
we can add another Icomparer class for List view Sorting ,
private void Form1_Load(object sender, EventArgs e)
{
var y = from x in dcontext.CONFIG_CITies
orderby x.str_city descending
where x.bool_active == true
select new { Code = x.int_cityID, CityName = x.str_city };
int i = 0;
foreach (var lst in y)
{
listView1.Items.Add(lst.Code.ToString());
listView1.Items[i].SubItems.Add(lst.CityName);
i++;
}
int j=0;
arr = new string[y.Count()];
foreach (var asd in y)
{
arr[j] = asd.CityName+","+asd.Code;
j++;
}
}
private void listView1_ColumnClick(object sender, ColumnClickEventArgs e)
{
listView1.Columns[1].ListView.Sorting = SortOrder.Descending;
if (listView1.Columns[1].ListView.Sorting == SortOrder.Descending)
{
listView1.Items.Clear();
string[] y;
Array.Sort(arr);
string x;
int j = 0;
for (int i = 0; i < arr.Count(); i++)
{
x = arr.ElementAt(i);
y = x.Split(',');
listView1.Items.Add(y[0]);
listView1.Items[j].SubItems.Add(y[1]);
j++;
}
}
}
i tried this above sample code ,but it is also not working .Please help me.
|
|
|
|
|
Good day,
Any idea how to get what the msagent character is hearing?? Any property/method like the speak but could do the opposite. "speech to text"
Many thanx guys
All generalizations are wrong, including this one!
(\ /)
(O.o)
(><)
|
|
|
|
|
You would have to look into a third-party component for interpreting the sounds that get inputted through microphones, etc on the computer. I do not believe .NET does this natively. Look into SDKs for devices that can already do what you are asking.
Regards,
Thomas Stockwell
Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
Visit my Blog
|
|
|
|
|
Hi All,
I’m looking for a good Unit tester that can test both the UI and the business object models. We are using the DevExpress expressApps framework.
I am aware of NUnit, MBunit, XUnit and TestDriven.net but I’m not sure what ties in the best with DevExpress.
Thanks,
|
|
|
|
|
Have you tried asking at the devexpress forums?
Kevin
|
|
|
|